#help-archived

1 messages Β· Page 84 of 1

sturdy oar
#

it's bStats

#

the data is based on about 155,000 servers

brisk mango
#

cool

frigid ember
#

Or they dont take into account servers that support 1.8-1.15x

#

How do I teleport the player with a teleport cause

#
            PlayerTeleportEvent pte = new PlayerTeleportEvent(player, nextLocation, lastLocation, TeleportCause.UNKNOWN);
            Bukkit.getPluginManager().callEvent(pte);```
#

because that does not work πŸ˜”

pastel basin
#

isnt there a method Player#teleport(Location, TeleportCause)?

frigid ember
#

ffs 😦

cloud crater
#

^

frigid ember
#

i hate eclipse

cloud crater
#

i switched to intellj IDEA

#

abit more quicker importing

torn robin
#

IntelliJ I tried switching too but it was just really frustrating to relearn stuff I already knew how to do

#

it didn't work with my already defined maven, the source code directly didnt sync up

#

the code completion by default is case sensitive which was annoying to figure out

cloud crater
#

ah, i restarted all my work, so it was easy for me when resetting my pc.

torn robin
#

i had to relearn a lot of key binds

#

Ctrl + W doesnt by default close the window

frigid ember
#

intellij keybinds.. some of them

torn robin
#

I know it's all nitpicks it's just the few hundred small things that add up to a really annoying experience

sturdy oar
#

CNTRL + ALT + L
best combo

torn robin
#

i have no idea why intellij doesn't auto import by default

cloud crater
#

well both work just the same way really.

timber barn
#

i have no idea why intellij doesn't auto import by default
@torn robin
Wdym

torn robin
#

intelliJ doesnt even support native jar exports to a specified location

idle zodiac
#

I need to get the time an inventory has been closed for. I have an event handler, just don't know how to get the length of there not being an inventory.

torn robin
#

like Zahl the "import unambiguous imports automatically" is disabled by default

#

@idle zodiac you'd have to manually keep track of when someone closed the inventory

#

why exactly are you tracking it?

idle zodiac
#

ok

#

I need to get if an inventory has been closed for over 3 ticks, then clear an arraylist

#

thats besides the point

#

ao

sturdy oar
#

Well for example i disabled Star imports from IntelliJ because they're dumb

#

everyone should

idle zodiac
#

I get the time of when it was closed, then check if it has been 4 ticks?

sturdy oar
#

like it does import java.util.*; just for having used UUID once

torn robin
#

yeah i never saw intllij wildcard import

#

its never done that for me

#

@idle zodiac is the player able to reopen the inventory?

#

if not you could just schedule a sync task to run 3/4 ticks after

cloud crater
#

@idle zodiac is there an InventoryCloseEvent?

torn robin
#

there is yes

sturdy oar
cloud crater
#

best starting schedule time on close event. then check int

#

simple way around it

#

also why just ticks? add up to seconds with 20*4 = 4 seconds

brisk mango
#

just use Map<Player, Long> @idle zodiac

#

and put them in the map as soon as they close the inventory

#

using scheduler for this is bad

torn robin
#

what are you gonna do once they're added to the map?

brisk mango
#

check when he reopens it

#

and then get the value?

torn robin
#

i think they just want to clear the arraylist after its been closed

#

not necessarily once its been opened

#

there's not a lot of detail

brisk mango
#

Are you using Lists for contains/remove/add checks @idle zodiac

cloud crater
#

temedy explain why its "bad"

#

πŸ™‚

brisk mango
#

Because its not as efficient and reliable as using instants

cloud crater
#

simple method of removing or clear the arraylist would still work fine

brisk mango
#

yes, but using instants would be better

#

why would you use arraylist for only contains check though?

#

thats not what is an arraylist used for

sturdy oar
#

I don't think any scheduler is required here

cloud crater
#

an arraylist is to remove and add elements so it can work like that @brisk mango but yes map would be better that way

brisk mango
#

no

#

arraylist is not used for that

#

I was talking about that, you should use a Set/HashSet when only need contains/remove/add checks

#

for faster checks/methods

#

you should use an list when you need the #get method

cloud crater
#

ig

torn robin
#

yeah i agree, a hashset would be best for contains

#

iirc contains is much faster with hashsets vs lists

brisk mango
#

Remember that list can have duplicate elements, but hashset cant

wooden trout
#

Hey can somebody from staff help me? It seems like somebody has my login infos

#

and he downloaded plugins

brisk mango
#

ahoj larkyy

wooden trout
#

I have around 50-70 plugins bought

#

hoj

#

jsem nejvΓ­c na prΓ‘Ε‘ky

torn robin
#

change your credentials

wooden trout
#

can I somehow search who was it?

brisk mango
#

no

wooden trout
#

like IP address or something

cloud crater
#

change password + setup TSV

sturdy oar
#

how's the website for checking YAML called?

#

oh nvm found, it's YamlLint

cloud crater
#

theres a couple if you search up 'yaml checker'

wooden trout
#

what is "TSV"?

#

oooh got it

#

okay

cloud crater
#

two step verification

sturdy oar
worn gate
#

can anybody help me with shaped recipe ? It gives me this error each time i try to craft : java Could not pass event PrepareItemCraftEvent

manic bluff
#

full error?

brisk mango
#

Why not use Bukkit.addRecipe

sturdy oar
#

?paste

worldly heathBOT
brisk mango
#

GnanPluginListeners.java:95
GnanPluginListeners.java:84

worn gate
#

ah...

#

what does that mean ?

manic bluff
#

...

brisk mango
#

send code

manic bluff
#

class GnanPluginListeners line 95

brisk mango
#

What is doesnt work @bright meadow

#

okay but what im exactly supposed to do with it?

worn gate
#

What should i send ?

brisk mango
#

the class

#

no

#

send stack trace @bright meadow

#

yeah, stack trace.

worn gate
#
if(matrix[i] == null || !matrix[1].equals(ingredients.get(i))) {
                    return;
                }```
brisk mango
#

send full class

#

error

worn gate
sturdy oar
#

So I now have a question regarding performance. I currently have a table with 4 columns. Is the proper way to work with it to cache it when the plugin starts, instead of always reading it ?

brisk mango
#

it should be && and not 1 but i

#

yeah @sturdy oar

sturdy oar
#

Ok, I think i'll make it a singleton object

brisk mango
#

no

#

yeah.

worn gate
#

i'll try

brisk mango
#

bruh cant you just fucking copy the stack trace and send it in a bin

cloud crater
#

geez

brisk mango
#

this is not the error?

worn gate
#

bruh

brisk mango
#

i asked for the error

#

okay the just ss it whatever.

worn gate
#

it works perfectly, thx

brisk mango
#

there you go

cloud crater
#

ask for the error you get the startup code πŸ™‚

brisk mango
#

"Could not create JVM"

#

Unrecognized option -

harsh anvil
#

you have a trailing - at the end

#

remove it

silk bane
#

clearly you haven't, because if you did, there wouldn't be a dash at the end

harsh anvil
#

yes so now give us those

silk bane
#

probably because when you remove it, it actually starts the jvm

harsh anvil
#

lol

#

well you dont have a jar

manic bluff
#

you didn't include the file

harsh anvil
#

how do you expect it to know what its supposed to load

silk bane
#

when you don't have a jar πŸ˜‚

harsh anvil
#

yeah, where?

brisk mango
#

in the file?

cloud crater
#

not stated

brisk mango
#

okay im done for today

harsh anvil
#

you need to specify the location to your jar obviously

#

-jar server.jar

manic bluff
#

then type at the and of the command -jar server.jar

cloud crater
harsh anvil
#

...

#

i give up

manic bluff
#

@bright meadow post command

harsh anvil
#

its literally not

manic bluff
#

r u running the batch?

harsh anvil
#

either i'm blind or i still dont see it

#

maybe try without all the flags first

brisk mango
#

LOL

#

sure

#

didnt even test it out

#

and says didnt work

#

it was like 2 seconds

#

2 seconds

#

okay buddy youre incredible

#

im done for now

manic bluff
#

u removed the full command?

brisk mango
#

yeah sure its not in 1 second and have the time to respond

harsh anvil
#

put the -jar at the very end

manic bluff
#

just do
java -jar server.jar nogui

harsh anvil
#

no you need xms and xmx im pretty sure

silk bane
#

yes

#

that's correct

#

nothing works

#

you should give up now

harsh anvil
#

java -Xms3G -Xmx3G -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=100 -XX:+DisableExplicitGC -XX:TargetSurvivorRatio=90 -XX:G1NewSizePercent=50 -XX:G1MaxNewSizePercent=80 -XX:G1MixedGCLiveThresholdPercent=35 -XX:+AlwaysPreTouch -XX:+ParallelRefProcEnabled -jar server.jar --nogui

#

this one works fine for me

brisk mango
#

yeah just give up

harsh anvil
#

well you can remove the agentlib

brisk mango
#

@bright meadow

harsh anvil
#

thats for debugging

#

i removed it

silk bane
#

w h a t i s t h e e r r o r m e s s a g e

frigid ember
#

if only spigot didnt make you wait 15 seconds πŸ˜”

harsh anvil
#

-itotallyknowwhatimdoing i think that flag removes it

#

yeah i figured that much

manic bluff
#

e r r o r ?

#

do you know what pause means?

frigid ember
#

add pause on the end on a new line

worn gate
#

how can u get unbookbanned ? 🀣 testing chunk loading dupping glitch was a failure

harsh anvil
#

edit the chunk

manic bluff
#

@bright meadow add pause in new line in your batch code

harsh anvil
#

well you keep saying it doesnt do shit when clearly it should do shit lmfao

#

dont work and not doing shit are completely different things

manic bluff
#

e r r o r ?

harsh anvil
#

pause is ment to keep your window open until you press a key so you can get the error

frigid ember
#

just send the bat here

harsh anvil
#

cuz you didnt add pause

frigid ember
#

just send the whole .bat file here*

worn gate
#
pause >nul```
manic bluff
#

@worn gate don't make it harder

#

you must add PAUSE in the new line

frigid ember
worn gate
#

it isn't harder

frigid ember
#

it kinda is

#

tf is the >nul for

manic bluff
#

it outputs to nul

frigid ember
#

craftbukkit doesnt have a gui

#

remove that --nogui thing

worn gate
#

not to put a "Touch a key to continue "

#

well windows defender activates on ur bat file

#

so i'm not activating it

manic bluff
#

what version do you running?

frigid ember
#

use 1.15.2

#

it runs better

#

most should work

#

try it using a backup

#

and

#

are u using spigot or paper

#

try optimizing paper.yml

#

helps a lot, most of the times

#

by.. well.. changing options to have other values

#

meh i need a new server pc

#

11.7 tps no players

#

because the dynmap is drawing shizzle

#

and the dynmap is a more optimized custom version

#

to be able to run on 2gb ram

#

lol

#

i run on 4

#

non

#

optimization fixes das

#

oof.

ancient ridge
#

a very useful tool for diagnosing lag

cloud crater
#

Tracks what plugins and world entities are overloading TPS, ticks per %. A useful tool

crimson sandal
#

Does anyone know if the recipe book can be used with a custom workbench inventory?

sturdy oar
#

I have a question that isn't really answered in the documentation

#

when is that 'may' called. How would I know if the web request will be made or not

crimson sandal
#

I think it's if the player hasn't already joined the server or isn't cached, it calls the Mojang API

sturdy oar
#

Is it possible to know if a player is cached?

#

I don't like making web requests because the server may get blacklisted

frigid ember
#

does anyone know when PacketPlayOutEntity is sent ?

remote socket
#

I'm not sure what to put in ps = conn.prepareStatement(); for SQLite when I want to UPDATE table_name SET variablename = ? where blockLocation = ?

#

Should I just create the string first using the variables and pass it into #prepareStatement()

tiny dagger
#

the update table for sqlite is exactly the same as for mysql

remote socket
#

That's what I have, but how do I do it using ?

#

ps = conn.prepareStatement("UPDATE " + table + " SET blockAmount" + index + " = ? WHERE blockLocation = ?");

worn gate
#

how does shaped recipe work in 1.12.2 ?

wooden trout
#

Can I somehow contact Forums Staff?

tiny dagger
#

you replace the ? with the preparedstatement's setInt setString etc

sturdy oar
#

Oh since we're talking about this

#

I needed help exactly for parametrized queries

#

Where i CANNOT put the ? operator

#

like can I also use it for columns?

glad shale
#

Hey, is Spigotmc website down ? It keeps saying 500, 502 and 520 Errors

worthy lava
#

For me to

cunning frigate
#

@glad shale yes

worthy lava
#

Question, how do i set/get banner patterns?

fiery mountain
#

again...

worthy lava
#

Nevermind, i found BannerMeta. Sorry.

silent crypt
glad shale
#

yes

silent crypt
#

ah okay

sturdy oar
#

yeah it's having a lot of trouble lately

glad shale
silent crypt
#

i thought my sh***y isp is broken again

#

okay then

#

any ETA when it's up?

timber barn
#

no

glad shale
#

Looks up again for me

earnest kestrel
#

yeah

#

its down again

tiny dagger
#

how long would it take till the ddos idiots stop/run out of money? πŸ€”

frigid ember
#

my protocol lib plugin, crashes timeout on any version above or 1.13
would i have to try and disable every listener until it doesnt or

tough cloak
#

Do you have any stacktrace ?

frigid ember
#

Nope

#

the only thing that works is the chat

#

but then you get timed out

#

so it doesn't crash per say

#

but times out the player, rare occasions times out the server

sick citrus
#

how long would it take till the ddos idiots stop/run out of money? πŸ€”
@tiny dagger
Everyone needs to stop thinking people are just casually DDOSsing random servers for absolutely no reason.

#

It takes a lot of very expensive resources to do such an attack. The people that are able to do it will not do it for free.

earnest kestrel
#

Some people actually do that (idk if this is the case now), but my servers got ddos the other day randomly (OVH mitigation is great ;D)

sick citrus
#

No one is gonna DDOS a website for just the pleasure of it.

#

Some people actually do that (idk if this is teh case now), but my servers got ddos the other day randomly (OVH mitigation is great ;D)
@earnest kestrel
No it didn't.

chrome edge
#

Is it possible to execute some method in main thread during async?

sick citrus
#

You might have received a notification about it but it definitely didn't.

frigid ember
#

i also love the fact that it means that all the server versions think they're outdated

sick citrus
#

Is it possible to execute some method in main thread during async?
@chrome edge schedule a sync task

earnest kestrel
#

My servers did haha, I checked logs and OVH notified me.

chrome edge
#

I did but that doesn't work

sick citrus
#

My servers did haha, I checked logs and OVH notified me.
@earnest kestrel it didnt.

cunning frigate
#

@sick citrus more sad is that new DDoS attacks got more advanced

vernal spruce
#

dude there are alot of ddosing going on rn

chrome edge
#

Why are there 2 bukkit runnable in spigot library?

vernal spruce
#

as you need only some bucks to do it

earnest kestrel
#

Alright @sick citrus this is ridiculous

sick citrus
#

I receive tons of those notifications with just normal traficm

vernal spruce
#

it can happen at any time on anything..

#

kids tend to go jelous so they spend 5$ to ddos you for some time..

chrome edge
#

@sick citrus May you give an example code? I've tried what you said but I didn't get work it. -_-

earnest kestrel
#

Let me tell you it wasn't normal traffic, I know when I get DDoS @sick citrus

sick citrus
#

You're wrong.

earnest kestrel
#

wtf alright

sick citrus
#

@sick citrus May you give an example code? I've tried what you said but I didn't get work it. -_-
It will if you do it priperkym5

#

Properly

chrome edge
#

Should sync task run in main thread? The code works but code which needs main thread doesn't execute without any error.

#

I'm trying to spawn a packet entity in sync during async. I've to check some datas on background and spawn entities.

#

            //ASYNC CODE
            
            Bukkit.getScheduler().runTask(X.plugin, () -> {

                //spawn entit code

            });

        });```
bronze marten
#

you can declare and start a sync task anywhere

#

sync, async thread

chrome edge
#

Am I doing something wrong?

bronze marten
#

thats honestly fine

chrome edge
#

I've never used bukkit scheduler before. If I made a mistake please explain me where I made.

#

It works but entity doesn't spawn

sick citrus
#

Your entity spawn code most likely is wrong somewhere then.

bronze marten
#

can you share that?

chrome edge
#

Impossible.

#

It's bukkit code

sick citrus
#

Wrong as in maybe a bad location

chrome edge
#

Let me try

#

one more time with some differences

sick citrus
#

if it's called then you know something's wrong with your spawn code.

frigid ember
#

bukkit.getlogger 😳

bronze marten
#

either plugin.getLogger or System.out lol

sick citrus
#

Aaaand idiots.

bronze marten
#

smh

frigid ember
#

or Bukkit.getConsoleSender().sendMessage() or Bukkit.broadcastMessage()

#

both of them work even better ^

bronze marten
#

mh

sick citrus
#

They don't achieve the same thing.

#

Back to the point.

bronze marten
#

get your own log4j impl 😳

#

shade the whole lib in

#

ez

sick citrus
#

Good for you

#

Β―_(ツ)_/Β―

chrome edge
#

I'm not idiot. I've already tested several times with debug comes.

sick citrus
#

And what's the result ?

#

It's that your code doesn't work, so there's definitely something you're doing wrong.

chrome edge
#

Does sync has limitation?

#

Like packets etc.

sick citrus
#

No.

chrome edge
#

Interesting. I'll try to understand how it works. Thank you for your helping.

sick citrus
#

I don't understand what's so confidential about your code that you don't want to share it.

bronze marten
#

just share your code lol

chrome edge
#

It doesn't needed. I just said everything.

bronze marten
#

:S

sick citrus
#

well if you said everything, obviously it won't work

#

because your sync task just contains a comment.

chrome edge
#

and I do not care code. I just want to learn how it works and you guys told me to use correctly

#

So there's no problem. Thanks again

torn robin
#

whatre we talking bout

sick citrus
#

Somewhere.

frigid ember
#

is 1.13.2 bad for performance; server wise

sick citrus
#

I've never had a server run better than when I switched to 1.15

#

and client-wise it's the same

bronze marten
#

how large is your server

#

bcs with many players 1.15 is unbearable

sick citrus
#

Right now ? about 120 players online average

#

peaks of 300-ish

bronze marten
#

one server?

sick citrus
#

One server. One machine.

bronze marten
#

I mean 120 ppl in the same realm?

sick citrus
#

On the same machine, playing the same game, in two different bukkit worlds

#

no bungeecord, just one Paper server

#

and it has consistent TPS

#

The machine is quite beefy, granted

#

it wouldn't run on a basic i7 with 16g of ram

bronze marten
#

interesting lol, had many ppl complaing about it

sick citrus
#

Because most server owners are cheap arses who expect their server to hold 500 players by paying 10$ a month.

#

On a VPS.

bronze marten
#

i am not talking about that kind of server owners lol

sick citrus
#

And how am I supposed to know that ?

#

Β―_(ツ)_/Β―

bronze marten
#

dont make assumptions

sick citrus
#

Be specific

#

otherwise I'll take the general case

chrome edge
#

Wow I didn't know packets can use in async...

frigid ember
#

I realised why it started to timeout the servers above 1.12 :( it was actually my loc utils

#

It would take 600ms per position packet

#

I've got it down to 13ms

tiny dagger
#

that sounds like a big improvement congrats

frigid ember
#

But.. how doesnt it affect 1.8 etc

#

πŸ˜”

oak stump
#

1.8 has less features therefore less things out carry out at a time i am guessing

frigid ember
#

How do i use the TabCompleter in Bungeecord? My code here seems to do nothing: ```public class helpListener implements Listener {

@EventHandler
public List<String> onTabComplete (CommandSender sender, Command command, String alias, String[] args){
    List<String> list = new ArrayList<>();

    if(args.length == 0) {
        list.add("string");
    }

    return list;
}

}

#

And yes i already registered the Listener: getProxy().getPluginManager().registerListener(this, new helpListener());

sick citrus
#

onTabComplete is not an event

#

you need to implement TabCompletor (completer?)

#

and override that method

#

and in the onEnable

#

setTabCompleter to that class

#

the same way you'd do with a CommandExecutor

#

protip : if your method takes one argument whose class name ends with "Event", it's probably an event. Otherwise, it most certainly won't be

frigid ember
#

This is not a interface in bungeecord

#

My IDE says that

sick citrus
#

oh sorry bungeecord

frigid ember
#

yes

#

If i use /help it displays all available commands

sick citrus
#

It's still not a listener

#

pretty sure in bungee

#

it's extends Command implemennts TabExecutor

frigid ember
#

ok

#

TabExecutor

sick citrus
#

and returns a public Iterable<String> rather than a list<String>

frigid ember
#

ok i will try that

sick citrus
#
public Iterable<String> onTabComplete(CommandSender sender, String[] args) {```
I believe
#

it's been a long time since I did bungee stuff

#

sorry if I'm wrong

#

also getProxy().getPLuginManager().registerCommand()

#

iirc

frigid ember
#

i should register a TabExecutor as a command?

frigid ember
#

register it with the command?

#

or separate

sick citrus
#

I'm not 100% sure sorry

frigid ember
sick citrus
#

...you mean disable the view bobbing ?

frigid ember
#

What do you mean

sick citrus
#

the setting in all minecraft clients ?

frigid ember
#

Where

sick citrus
#

...

frigid ember
#

I’ve never heard of view bobbing

sick citrus
#

options -> video settings -> view bobbing

#

This silence must mean it was that.

torn robin
#

i don't know one person who doesn't disable view bobbing

sturdy oar
#

what's bobbing

#

I've never touched it from the default

subtle blade
#

It makes your view bob side to side while walking

#

Also known as: the worst option set enabled by default

sick citrus
#

I never did and never really intend to

frigid ember
#

I used to play with that constantly

sturdy oar
#

I still have it ON

#

I had it for 7 years now

#

nothing wrong with it for me

marsh nova
#

terrible

#

worst setting ever

sturdy oar
#

I also have attack key inverted

#

I attack with RIGHT KEY

#

and build with LEFT KEY

dusty topaz
#
                new BukkitRunnable() {
                    int count = 0;
                    @Override
                    public void run() {
                        Bukkit.broadcastMessage("Damaging " + damager.getName() + " for " + damage + " ( count = " + count + " )");
                        damager.damage(damage, damager);
                        count++;
                        if (count >= times) {
                            cancel();
                        }
                    }
                }.runTaskTimer(getInstance(), 2L, 2);
#

Any reason this does no damage

marsh nova
#

ahh, a repeating task

#

it should do damage

#

use proper debug logging with logging levels

dusty topaz
sturdy oar
#

Sout > IntelliJ remote debugging

#

lmao

dusty topaz
#

use proper debugging isn't going to fix this

marsh nova
#

who is damager?

dusty topaz
#

avrovulcan

marsh nova
#

it may be that you are damaging yourself

#

i am not sure

dusty topaz
#

good point

marsh nova
#

whatever you do though do not use Bukkit.broadcastMessage to debug ;-;

dusty topaz
#

i'm testing some enchants on a dev server

#

before i push them to a live server

#

still does not damage

hoary parcel
#

Ah yes

#

Good old println Debugging

#

The worst kind of debugging

#

I wonder how ppl waste their time on creating actual debuggers when sout is a thing

dusty topaz
#

using breakpoints wont help me fix this lmao

#

damager.damage doesn't damage don't see how a breakpoint fixes that

bronze marten
#

sout 1
sout 2
sout 3

#

ez debug

hoary parcel
#

You can dive in and see why?

silk bane
#

you can reset if you have the audacity to spend more than 30 seconds at a breakpoint 😭

hoary parcel
#

just dont halt all threads?

#

only suspend the thread you want to suspend

silk bane
#

but things tend to run on the main thread

hoary parcel
#

keep alive doesnt πŸ˜„

#

(in paper)

umbral walrus
#

Hi everyone, I'm looking to upgrade my server to 1.15.2 and I'm wondering how to determine which version is the most stable. Should I run my own tests or do you have a way to deduce this?
Last time I updated there were lots of problems with plugins crashing and the server lagging that eventually got fixed, so I've held off on upgrading to 1.15.2 when it came out. Is there a way to do better than just trail-and-error?

torn robin
#

trial and error sounds like the best

#

plugin devs sometimes put whether or not its tested on the plugin page

wanton delta
#

which version is the most stable?

#

wdym

#

BuildTools will only give you the latest version, and its always stable

#

1.15 just doesnt have as great of performance in general, but thats not really because its unstable, just the fact of how minecraft has evolved

tulip pendant
#

Someone help me develop my server please I'm looking for a dev please help me dm me if your interested

wanton delta
#

?services

#

stupid

worldly heathBOT
wanton delta
#

there u go

#

(i was calling not cafebabe stupid)

#

(that mayve came off differently lol)

high aurora
#

so, BuildTools.jar is the jar to go to use Spigot then? πŸ™‚

wanton delta
#

its how you get spigot

high aurora
#

thank you sir, i was confused for a second ^^

umbral walrus
#

Thanks @wanton delta. I'll go run some tests myself, then πŸ™‚
I'm only using three plugins, one of which is my own, so it should not be that much work. I was just wondering if there were specific builds of Spigot to avoid.

onyx creek
#

where can i buy mcmmo?

frozen kiln
#

Do any of you guys know whether or not I could create custom entities with resource packs on spigot without replacing another entity?

frigid ember
#

How can i autofill the chat writing box of a player?

wanton delta
#

do you mean when you press tab?

frigid ember
#

@wanton delta No by clicking text in the chat.

#

When i click "/command args" it appears in the writing box.

wanton delta
onyx creek
#

uhmm

#

i,m kinda a noob but i download the source code ?

#

for mcmmo

#

i tought you needed yo pay for it.

frigid ember
#

You want to compile the jar yourself?

onyx creek
#

I want it in my have it in my server

#

I want to have it in my server*

frigid ember
#

Self compiled versions are not tested. They might contain issues.

onyx creek
#

But can i buy mcmmo somewhere

frigid ember
#

@wanton delta is the action i need SUGGEST_COMMAND?

wanton delta
#

yes

frigid ember
#

ok thx

tall crystal
#

What would be the best way to go about having a proxy talk with a server and or is there something better than a SocketServer

wanton delta
#

something like redis?

tall crystal
#

mostly trying to avoid using plugin messages

wanton delta
#

i think youre looking for redis

tall crystal
#

But wouldn't that require a specific server or am I thinking about it wrong?

wanton delta
#

you would need to have a redis server correct

#

but its just something that runs in the background

#

its not like a spigot server or bungee proxy

tall crystal
#

cause were using minecraft server hosts until we buy ourselves an actual server

wanton delta
#

mhm

#

in that case i wouldnt know of an alternative

tall crystal
#

you think a socket server would be alright at least for now

wanton delta
#

i personally dont have experience with that

#

i dont know why youre avoiding plugin messages?

tall crystal
#

the requirement to have a player on the server you want mostly

wanton delta
#

we dont support version protocols

#

but the most common direction would be with ViaVersion/ViaBackwards

patent bay
#

can someone help me with this https://www.spigotmc.org/threads/minecraft-clear-special-items.439201/

wanton delta
#

Like i said, we dont support version protocols so youre asking the wrong people

tall crystal
#

I think theres a line somewhere in bungeecords configs that states the info

wanton delta
#

@patent bay are you using DispatchCommand?

patent bay
#

no whats dispatch command?

#

just using built in console, not making a plugin

tall crystal
#

ok that might just be a waterfall only thing then

frigid ember
#

I think you dont need Protocol Lib if you are using Waterfall.

#

You can directly set the version in the waterfall.yml file

patent bay
silk cape
#

help

#

my grass

#

do not expand

#

randomtickspeed is on 1000 and still does not work

#

other plants are extremly fast

tall crystal
#

@patent bay I tested the very last one it the list that you said failed and that one work fine on my end

patent bay
#

paste me the commands u used?

tall crystal
#
/give Colink02 prismarine_shard{display:{Name:"[{\"text\":\"♆ Rare Gem ♆\",\"italic\":false,\"color\":\"dark_gray\",\"bold\":true}]"},Enchantments:[{id:"vanishing_curse",lvl:1}]}

/clear Colink02 minecraft:prismarine_shard{display:{Name:"[{\"text\":\"♆ Rare Gem ♆\",\"italic\":false,\"color\":\"dark_gray\",\"bold\":true}]"}}```
patent bay
#

are you sure ur running basic mc with no plugins affecting it? it says no items found for when i do it on the console and i'm using latest spigot version

wet bronze
#

Does anybody know how to download a server's resource pack? Like not how to download it ONTO a server but to physically download a server's resource pack. There's a folder in .minecraft called server-resource-pack but they aren't .zip files they're just blank files.

tall crystal
#

Those are cached files

#

if you just rename it and add .zip it will open like a normal zip file just make sure your extensions are on

#

@wet bronze

#

@patent bay Just tested it in singleplayer and works fine

patent bay
#

thanks @tall crystal i just had to add minecraft: to the start of the commands , must of had an interferring plugin then. The below works now:


minecraft:clear chris_61 minecraft:prismarine_shard{display:{Name:"[{\"text\":\"♆ Rare Gem ♆\",\"italic\":false,\"color\":\"dark_gray\",\"bold\":true}]"}} 30```
tall crystal
#

hmm interesting

torn robin
#

essentials give

tall crystal
#

essentials is annoying... I wrote my own plugin just for that reason xD tired of all commands being overrided

torn robin
#

yeah essentials is really annoying when you're used to the default mc commands

#

like tp

tall crystal
#

yeah

dim cape
#

is there some kind of prioirty to premium resources being approved? I'm seeing premium resources being approved that were first uploaded yesterday, but mine that was uploaded wednesday hasnt been approved

subtle blade
#

In order. No priority

#

afaik date changes to approval date

dim cape
#

oh ok

#

thanks

gusty comet
#

my motivation to write plugins was to avoid essentials

subtle blade
#

Well that's a +

frigid ember
blissful verge
#

Is site not working?

#

Oh yeah it isnt

frigid ember
#

not for me

gusty comet
#

yeah its not

blissful verge
#

oof

gusty comet
#

how tf can you send images

subtle blade
#

Direct image upload

frigid ember
#

Does 1.13+ do everything async or something

worthy lava
#

No FatalPacket

#

So i have a banner as an ItemStack, how do i turn this into a block? A banner block that is placed?

#

Meaning colors and patterns would be carried over from the ItemStack, but how do i do that?

bronze marten
#

I think if you can set a block in the world as banner, can you cast that block to a banner?

#

then set their meta?

#

get the state of the block and cast it to banner @worthy lava

fluid garden
#

Hey, I am currently trying to make a pvp bot, and for that I created an entity player. It moves, it triggers entity damage events and works perfectly. The only problem i have (and can't solve) is, that I can't add velocity to the npc, as it weirdly doesnt get velocity in the EntityDamageByEntityEvent. What i tried: getting the bucket entity and setting its velocity; setting velocity changed to true and motX, Y, Z to the vectors values. Results: No errors - no movement. Thanks in advance

frigid ember
#
        for (int i = 0; i < worldMap.colors.length; i++) {
            worldMap.colors[i] = 0;
        }

        worldMap.decorations.clear();
        map.setWorld(player.getWorld());
        map.setCenterX(player.getLocation().getBlockX());
        map.setCenterZ(player.getLocation().getBlockZ());

        if (player.getItemInHand().getType() == Material.MAP
            && player.getItemInHand().getDurability() == map.getId()) {// update cursors
            worldMap.a(((CraftPlayer) player).getHandle(), CraftItemStack.asNMSCopy(player.getItemInHand()));
        }

        Items.FILLED_MAP.a(((CraftWorld) map.getWorld()).getHandle(), ((CraftPlayer) player).getHandle(),
            worldMap);// more efficient than the updater (shows the area around the player only, not
                  // all loaded chunks)
        // mapUpdater.update(map);

        super.render(map, canvas, player);
worthy lava
#

@bronze marten Set their meta? Explain

#

Im trying to get meta of an banner item, and set that data to a banner block

#

Ik how to cast it and such. I have already done that.

bronze marten
#

it has setBaseColor, setPatterns

worthy lava
#

So i set the basecolor and setpattern from the item meta

bronze marten
#

yeah

subtle blade
#

base colour is deprecated

#

all banners have their own type

#

Patterns and what not, however, are done on BannerMeta, yes

bronze marten
#

yeah BLUE_BANNER etc

worthy lava
#

Ok gotcha

#

And how do i set banner meta? Like update it?

hoary parcel
#

I love how the map decoration constants are all named differently than vanilla/wiki

worthy lava
#

Wait no i got it

chrome edge
#

Could PacketPlayOutSpawnEntityLiving spawn same id entities?

frigid ember
#

How do I make a map without putting it in the worlds folder?

chrome edge
#

I've never seen this before. When I spawn 10 entities per tick, some of them have same id as one of them...

hoary parcel
#

Map or world?

#

And a packet doesn't assign IDs at all blackone

chrome edge
#

So it may be buggy?

frigid ember
#

when is PacketPlayOutEntity sent ?

cloud crater
#

make a new File Directory @frigid ember

hoary parcel
#

It's not buggy, your code would be buggy

chrome edge
#

I just use packet to spawn entity. I don't use any reflection even

#

        EntityLiving entity = (EntityLiving) EntityTypes.a(this.entityType, world);
        entity.setPositionRotation(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());

        DataWatcher watcher = entity.getDataWatcher();
        watcher.watch(4, (byte)0);

        this.ENTITY = entity;

        PacketUtil.sendPacket(this.viewers, new PacketPlayOutSpawnEntityLiving(entity));
        PacketUtil.sendPacket(this.viewers, new PacketPlayOutEntityMetadata(entity.getId(), watcher, false));

        ((CraftWorld) this.location.getWorld()).getHandle().makeSound(this.ENTITY, getSaySoundEffect(), 0.5F, 1F);```
#

@hoary parcel Is there any mistake that causing ID duplication?

hoary parcel
#

Does that spawn method actually assign a I'd?

chrome edge
#

No, there isn't any method based on ID but I have delete method which needs ID of entity.

#

PacketUtil.sendPacket(this.viewers, new PacketPlayOutEntityDestroy(this.entityIDs));

hoary parcel
#

No I mean the nms method you use to create the entity

chrome edge
#

Yes

#

You mean they have ids?

worthy lava
#

I still don't get it how do i put patterns on a banner block

hoary parcel
#

Via the meta wiebe

worthy lava
#

BannerMeta, how do i get that from the banner block

chrome edge
#

            List<Pattern> patterns = new ArrayList<>();

            patterns.add(new Pattern(DyeColor.BROWN, PatternType.STRIPE_CENTER));
            patterns.add(new Pattern(DyeColor.LIME, PatternType.FLOWER));
            patterns.add(new Pattern(DyeColor.BROWN, PatternType.SKULL));
            patterns.add(new Pattern(DyeColor.GREEN, PatternType.TRIANGLE_TOP));
            patterns.add(new Pattern(DyeColor.BROWN, PatternType.STRIPE_DOWNLEFT));
            patterns.add(new Pattern(DyeColor.BLUE, PatternType.BORDER));
            patterns.add(new Pattern(DyeColor.GREEN, PatternType.SQUARE_TOP_LEFT));
            patterns.add(new Pattern(DyeColor.GREEN, PatternType.SQUARE_TOP_RIGHT));
            patterns.add(new Pattern(DyeColor.BLUE, PatternType.CURLY_BORDER));
            patterns.add(new Pattern(DyeColor.BLACK, PatternType.GRADIENT_UP));

            banner.setPatterns(patterns);```
worthy lava
#

What is it BlockData or MaterialData

chrome edge
#

As I understood you're trying to add pattern to banner block in a world

worthy lava
#

I am stupid man, sorry lads.

chrome edge
#

No, it's okay.

#

What do you need?

worthy lava
#

No i think i got it already, i am just stupid XD

#

That was exactly what i need ty

chrome edge
#
Banner banner = (Banner) location.getBlock().getState();

Banner bannerData = (org.bukkit.material.Banner) banner.getData();
bannerData.setFacingDirection(yawToFace(-location.getYaw()));
banner.setData(bannerData);

banner.setBaseColor(DyeColor.LIGHT_BLUE);

List<Pattern> patterns = new ArrayList<>();

patterns.add(new Pattern(DyeColor.WHITE, PatternType.TRIANGLE_BOTTOM));
patterns.add(new Pattern(DyeColor.ORANGE, PatternType.BORDER));
patterns.add(new Pattern(DyeColor.BLACK, PatternType.FLOWER));
patterns.add(new Pattern(DyeColor.GRAY, PatternType.CIRCLE_MIDDLE));
patterns.add(new Pattern(DyeColor.GRAY, PatternType.SKULL));
patterns.add(new Pattern(DyeColor.ORANGE, PatternType.TRIANGLE_TOP));

banner.setPatterns(patterns);

banner.update();```
#

You've to update block state too

#

Just use this and try to figure out how it works

#

Be careful. Spigot and vanilla have different pattern names

#

this is weird but it's okay

worthy lava
#

I got it mate, finally got my capture point system done, many thanks!

tulip pendant
#

I'm going to go for a run and will set you up with a new domain when I get back

#

SOMEONE HELP ME PLEASE

chrome edge
#

Oh shit. I couldn't find any solution for this stupid thing. Some of packet entities have same ids. -_- nvm I'll just use slower maybe may work.

tulip pendant
#

SOMEONE HELP ME PLEASE someone help me setup my SQLITE

#

PLEAsE

oak stump
frigid ember
#
        //Commands
        new SpeedBootsCommand(this);
        
        //Enchantments
        new SpeedBootsCommand(this);

This is your error, the command will try to register twice

subtle blade
#

Banner bannerData = (org.bukkit.material.Banner) banner.getData();
(org.bukkit.material is deprecated)

sturdy oar
#

Is there a way to try and reduce a JAR size?

#

I currently have written about 105KB of code, but all the dependencies make it get to 5.3MB

#

is that an issue I should not worry about?

subtle blade
#

Yikes

#

What dependencies do you have? lol

sturdy oar
#

MySQL, Hikari, Commodore, PostreSQL, H2

subtle blade
#

SQL is not necessary, driver is shaded into the server

sturdy oar
#

which one?

subtle blade
#

MySQL

#

Sorry lol

sturdy oar
#

Oh ok

#

I never noticed

subtle blade
#

So that saves you one dependency. Though really, what I advise doing is downloading PostreSQL and H2 when required and loading them up at runtime

#

Or whatever ones aren't your default schema

cloud crater
#

wanting to release a resource on 'premium' but its not enabled/clickable to access add resource type

subtle blade
#

Commodore and Hikari will likely have to remain shaded into a mega jar which is fine. Though really, those can be downloaded and loaded onto the classpath as well if you really wanted to

sturdy oar
#

I mean I know how to download stuff, but I wouldn't know how to load a driver class I've just download

subtle blade
#

iirc, you can do it using your plugin's classloader

sturdy oar
#

kool

sturdy oar
#

are you sure about MySQL driver tho

subtle blade
#

It's available at runtime. I can assure you of that

cloud crater
#

any input on how to get premium resources enabled Choco?

subtle blade
#

(note not a Bukkit dependency, it's internal)

#

Syxteen we have minimum requirements

#

?premium

worldly heathBOT
sturdy oar
#

Class.forName("com.mysql.jdbc.Driver");
would be an option?

subtle blade
#

Yes. That will force it to be loaded

oak stump
#
        //Commands
        new SpeedBootsCommand(this);
        
        //Enchantments
        new SpeedBootsCommand(this);

This is your error, the command will try to register twice
@frigid ember thank you, lol after 2 hrs of debugging and I didn’t find that

subtle blade
#

This is why we don't do things in the constructor

fluid garden
#

Hey, I am currently trying to set an EntityPlayers velocity. I tried to getBukkitEntity#setVelocity, but that didn't work for me. Thanks in advance

silk cape
#

i have problem with grasss spreading

#

who can help me

cloud crater
#

Player#setVelocity

oak stump
#

Google i> Hey, I am currently trying to set an EntityPlayers velocity. I tried to getBukkitEntity#setVelocity, but that didn't work for me. Thanks in advance
@fluid garden# google it I found it first try lol

#

Wtf happened there

fluid garden
#

didnt work

#

If you mean this
entityPlayer.velocityChanged = true;
entityPlayer.motX = x;
entityPlayer.motY = y;
entityPlayer.motZ = z;

cloud crater
#

why whats up @frigid ember ?

brisk mango
#

Constructor is not used for calling method, because the work in the constructor is bad, its should be using for constructing objects and not doing any work in it. Private methods are usually fine though iirc. Overriden methods should never be called from any constructor since you can run into some weird issues, the method can get called before the class's constructor if its an overriden method. @oak stump

subtle blade
#

@ temedy

This is why we don't do things in the constructor

#

lol

brisk mango
#

Yeah, I just explained him a couple reasons why u shouldnt do it choco

subtle blade
#

Just don't do it WeirdChamp

brisk mango
#

yeah, its bad, and as ive seen

velvet scaffold
#

i have started using spigot and my zombie pigman farm has lost a lot of efficiency, can anyone provide some insight why

brisk mango
#

Minecraft code has method calls in every constructor

#

which is just bad

cloud crater
#

@frigid ember if there isn't DeluxeMenus is a shot, if it support papi=placeholderapi

velvet scaffold
#

like as opposed to using vanilla jar

brisk mango
#

Wdym didnt work for you

#

just use LivingEntity#setVelocity

#

it works

fluid garden
#

@brisk mango this is the weird part. it doesnt work

brisk mango
#

I dont know what does mean "it doesnt work"

fluid garden
#

nothing happens no errors no velocity applied

brisk mango
#

show me the line

#

where youre setting it

fluid garden
#

in the damage event: e.getEntity().setVelocity(new Vector(1, 1, 1)); 2. Try: entityPlayer.velocityChanged = true;
entityPlayer.motX = 1;
entityPlayer.motY = 1;
entityPlayer.motZ = 1; 3. Try: entityPlayer.getBukkitEntity().setVelocity(new Vector(1, 1, 1));

brisk mango
#

event.getEntity().setVelocity(new Vector(x, y, z));

#

should work, check if is ur event registered

fluid garden
#

yes it is

brisk mango
#

also, dont name your variables with just 1 letter. Theres a couple reasons for is

fluid garden
#

@brisk mango ikr. But to shorten my message i shortened it πŸ™‚

frigid ember
#

Hey guys, how do I get a location from a pixel on a map

brisk mango
#

@fluid garden send whole class, also how do you know its registered

fluid garden
#

because i am logging my methods.

cloud crater
#

as event i always do 'e' shorter, makes my life easier.

brisk mango
#

you know its wrong though

#

@fluid garden show me your class

fluid garden
#

yes added you

cloud crater
#

ayy what i can get away with i'll do so πŸ™‚

brisk mango
#

I mean if you follow this rule then you will have really shit codes

#

so you would do anything that works; no matter if its a bad practice or not

cloud crater
#

just for shorting onMove(PlayerMoveEvent event(to "e")), its not the end of the world

brisk mango
#

no not in this case, but as i say in general you shouldnt really follow this rule

cloud crater
#

oh only in EventHandlers i do that

subtle blade
#

Single-letter variable names are horrendous

silk bane
#

i would like a word

subtle blade
#

Okay i is an exception

#

i, j and k, x, y and z

#

They're all beautiful

cloud crater
#

e is beautiful to me

brisk mango
#

But e is used for element in generic for loop

tiny dagger
#

K, V

brisk mango
#

yeah there is many reasons

#

also T and more

#

also e, in at try / catch

frigid ember
#

Hey guys, I found this to help me out

            IBlockData data = nmsWorld.getType(block);
            MaterialMapColor color = data.a((IBlockAccess) nmsWorld,
                new BlockPosition.MutableBlockPosition());
            canvas.setPixel(x, y, (byte) (color.ad * 4));

but I don't know what the color.ad and data.a is for 1.8

#

Can someone help me? I use this code for my /help command, "/help" works, but "/help general" only outputs the pre and suffix : ``` public void execute(CommandSender commandSender, String[] args) {
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
commandSender.sendMessage(new ComponentBuilder(main.getPrefix()).create());

    if (args.length == 0) {
        commandSender.sendMessage(new ComponentBuilder("Use /rules to see the rules.").color(ChatColor.GREEN).create());
        commandSender.sendMessage(new ComponentBuilder("Use /lobby to get back.").color(ChatColor.GREEN).create());
        commandSender.sendMessage(new ComponentBuilder("Use /dicord to get the invitation link.").color(ChatColor.GREEN).create());
    } else {
        if(args[1] == "general") {
            commandSender.sendMessage( new ComponentBuilder( "Use " )
                    .append("/help general").event( new ClickEvent( ClickEvent.Action.SUGGEST_COMMAND, "/help general" ))
                    .event( new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder( "Click this to put it in your text box." ).create()))
                    .append(" to see all general commands.").create());
        }
    }

    commandSender.sendMessage(new ComponentBuilder(main.getSufix()).create());
}```
subtle blade
#

oh dear

brisk mango
#

this is some real shit code

subtle blade
#

string == string won't work

#

Compare String contents with .equals()

brisk mango
#

never compare strings using == because new String could be called twice

#

and its because array index starts from 0 not 1

subtle blade
#

That as well, yep

frigid ember
#

Compare String contents with .equals()
@subtle blade ok thx. I dont know why i didnt think of that.

#

and its because array index starts from 0 not 1
@brisk mango yh your right

subtle blade
#

Also, just so you're aware, Bukkit's help command is configurable using the help.yml so you can create custom categories and whatnot

#

Whether or not it supports text components, I'm unsure if Spigot improves that

frigid ember
#

Also, just so you're aware, Bukkit's help command is configurable using the help.yml so you can create custom categories and whatnot
@subtle blade I plan to make my command hover and clickable. Works that too?

subtle blade
#

I'm unsure if Spigot improves that

brisk mango
#

using the chat component api.

frigid ember
#

using the chat component api.
@brisk mango the api works in help.yml?

brisk mango
#

I'm unsure if Spigot improves that

frigid ember
#

I think i will keep my code. thx for the help

tiny dagger
#

how fast is string.equals tho? πŸ€”

brisk mango
#

What a dumb question

tiny dagger
#

no it's not

brisk mango
#

It is a fucking dumb question

#

why would you care about how fast it is

#

when in speed, there is almost likely no difference between .equals and ==

#

bruh these people

subtle blade
#

(especially when == won't work 99% of the time)

brisk mango
#

is guava reliable and efficient?

tiny dagger
#

because i'm pretty sure if the ez checks fails it goes into checking every char by each

brisk mango
#

is comparing strings with .equals good enough? or should i use ==

subtle blade
#

Of course it does ;P It's checking the contents of the String

#

It will halt if at any point they are not equivalent

silk bane
#

@tiny dagger it checks the reference, and then length, and then iterates characters from the start

tiny dagger
#

oh

#

length is good

subtle blade
#

Some things are unavoidable. If you want to ensure the equality of something you have to actually check its contents

#

In this case, character by character. That is what defines the equality of one string of text to another

silk bane
#

might be worth considering string interning if you have a constant string that you compare with frequently

subtle blade
#

For commands it doesn't seem all too necessary

silk bane
#

yeah definitely not

fluid garden
#

Since nobody seems to know how to give velocity to an EntityPlayer, I wanted to ask if someone has a better idea to spawn a fake player who should be able to get knockback. If there is a way to set velocity through packets, please let me know. Thanks in advance πŸ™‚

subtle blade
#

Not a time-dependent operation, really. Would be a micro-optimization

brisk mango
#

im sure u can do it with a packet, but cant remember its name @fluid garden

#

or does not EntityPlayer have a setVelocity method?

fluid garden
#

tried PacketPlayOutEntityVelocity but i can't figure out how it works

#

no it doesnt.

cloud crater
#

It does

fluid garden
#

sure? My spigot (1.8) doesn't give me the option to setVelocity

subtle blade
#

I mean...

#

You're on 1.8. You can't expect everything we say to be accurate to 5 year old software

fluid garden
#

Please. I want my server to be available for all versions (1.8 and up). So i have to get it to work in 1.8 thanks anyway

brisk mango
#

1.8.8 better

subtle blade
#

That's your first mistake

#

Supporting 8 versions at once

brisk mango
#

viaversion is shit

subtle blade
#

Major versions no less

cloud crater
#

1.8.8 or 1.12 is the way to go for servers

fluid garden
#

i am using 1.8.8

brisk mango
#

u cant expect everything to work properly if u have 1.8-1.15 server

subtle blade
#

Then I'm out lol. I'm not supporting it

#

I'm done supporting it

fluid garden
#

im only testing on 1.8 first

brisk mango
#

even if you have viaversion, thats just really shit plugin

fluid garden
#

i never said something about via versions

zinc ingot
#

woah that really is 8 versions to 1.8

fluid garden
#

is that a problem for you?

#

for me its not.

brisk mango
#

it can be

silk bane
#

i mean, 0.68 tps is quite low

fluid garden
#

lets be honest, nearly all big servers are running on 1.8 so i dont know whats the problem

torn robin
#

er no

#

nearly all big servers are running on 1.15.2

#

they simply support back to 1.8

fluid garden
#

yes

#

that means they run on 1.8

#

please

torn robin
#

what no

#

?

brisk mango
#

????????

#

no it doesnt

#

LOL

torn robin
#

their base code is 1.15

#

you can't just say they run on 1.8 or pick and choose lmfao

vernal spruce
#

lmao guess he doesnt know what viabackwards does

fluid garden
#

no i dont think so. its way easier to keep it all in the lowest version and update to newer versions.

cloud crater
#

@fluid garden Grab the CraftPlayer object from that with EntityPlayer#getBukkitEntity() and use Player#setVelocity, works for me

torn robin
#

it might be but your argument was completely incorrect

#

most major servers are 1.15 and support backwards

#

not the other way around

#

that doesnt mean they run 1.8

#

merely that they support it

fluid garden
#

@cloud crater first - thanks for not being rude or trying to know everything better. I tried it already, but didnt work for me sorry. Could you show me your code?

brisk mango
#

I mean, supportning more versions than 1 at the time is really a bad idea, because the packets on other versions can be different than the ones that you have in your current version. Also you have to deal with abstraction/reflection shit

zinc ingot
#

abstraction really isnt that bad with modules

brisk mango
#

It isnt

#

abstraction > reflection any day

torn robin
#

wait are you really trying to do a 1.8 - 1.15 server?

#

i do wish you the best of luck with support

timber barn
#

in bungeecord, I should get the Username from handshake by getConnection().getName right?

torn robin
#

that would make sense Zahlen

#

if it works?

fluid garden
#

its not that hard its really easy but if you never did something else than programming on a stupid minecraft library than i feel sad for all of you so please calm down and stop crying about me doing stuff that is "imposible" for you. I know what i am doing, and you cant stop me anyway.

cloud crater
#

@fluid garden what you using the volocity for?

brisk mango
#

@fluid garden bruh could you read my message

#

I say you cant do a 1.8-1.15 since the packets are different

#

in every version

#

good luck then

#

"its not that hard"

torn robin
#

Code aren't you the one asking for help here?

#

You came off as a bit harsh there

subtle blade
#

I know what i am doing, and you cant stop me anyway.
Use whatever you'd like. We will not stop you. However, we will not support you. You are running a 5 year old version of the game while using an unsupported protocol hack

brisk mango
#

I doubt that you can make something more with packets if you dont know how to set a velocity to an EntityPlayer

subtle blade
#

Do not expect support whatsoever

#

We advise you update to the latest version

#

If it's 1.14 or below we do not give support

dry kiln
#

Protocol hacks are already pretty dangerous

subtle blade
#

At least not officially

#

Community members on the other hand may support it if they'd like, that's on a per-user basis. Though as far as Spigot is concerned, no support, no bug fixes, nothing

dry kiln
#

I've gotten screwed over by vulnerabilities in them and now I refuse to use them

zinc ingot
#

msws have u found some way to add 1.6.4 support to nbt editor?

torn robin
#

that was actually a joke

#

lmfao

zinc ingot
#

😏

#

it would have been pretty funny if u did

torn robin
#

im disappointed they didnt add it

dry kiln
#

1.6, best version

torn robin
#

:(

#

1

#

1.6 - 1.16 soon?

subtle blade
#

If it were up to me, I'd lock any thread that isn't the latest version πŸ˜„

#

Would be great to handle things the way Forge does

timber barn
#

ok getconnection.getuuid and getname show both null lol

zinc ingot
#

choco whats the earliest version of spigot

subtle blade
zinc ingot
#

πŸ€”

#

hmm

dry kiln
#

That's what I do in my plugin support, we only support the last 4 minecraft versions. If you come into the channel using anything else you get resolved which means we reopen the channel for a new q

timber barn
#

however getVersion and isOnlineMode seems to work

dry kiln
#

Yet people STILL come for 1.7

subtle blade
#

I support minimum what I use and that's how Bukkit was designed to be used

#

If I used NamespacedKeys, I'm supporting 1.11+

#

If I use BoundingBoxes, I'm supporting 1.14+

torn robin
#

were the rayTraceBlock methods for players added in 1.14 then?

subtle blade
#

iirc, 1.13

torn robin
#

i think people just never got used to mojang actually updating mc

#

we got so used to 1.8 for so long

dry kiln
#

Lol

subtle blade
#

No, people are just too stubborn and unwilling to adapt to change

#

So I say fuck 'em

#

They've had no incentive to update because plugins continue to support them

tiny dagger
#

it's also the devs fault (including me) for supporting it too

subtle blade
#

Yep

#

Drop support, watch them throw their fit of rage, ignore them

brisk mango
#

I mean, some people dont like the newer versions @subtle blade

subtle blade
#

Again, fuck 'em

#

Update or you're not supported

brisk mango
#

how about pvp servers?

subtle blade
#

It's not my fault

#

I literally don't care lol

#

Adapt to change

tiny dagger
#

there is oldcombatmechanics

brisk mango
#

oh okay so u expect pvp servers to be on 1.15

subtle blade
#

1.9 PvP opened the doors to so many avenues of PvP

brisk mango
#

bruh who would play pvp with old combat mechanics

tiny dagger
#

all they do is spam

#

one sec

brisk mango
#

like all the servers would die

#

lol

dry kiln
#

Someone asked us to backport our core rewrite to 1.7.10 (we used 1.13 as an excuse to rewrite a lot of stuff and fix it so now it's an essentially new plugin)

subtle blade
#

From a developers point of view, if you're not using something that has what I need, you're on your own and you can find an alternative

dry kiln
#

Then got mad at us

torn robin
#

coulda sword there are like 50 plugins out there that revert the pvp back to 1.8 style

subtle blade
#

My stuff is open sourced, downgrade yourself

dry kiln
#

When we said no

subtle blade
#

I'm not doing it

dry kiln
#

Yep same

#

But no, we dev the plugin

#

We must do it

brisk mango
#

@torn robin still it wouldnt be as good as 1.8.8 client pvp

torn robin
#

perhaps

brisk mango
#

like server-sided plugins wouldnt really help it

torn robin
#

but are you really gonna stick to 1.8 for the rest of MC?

brisk mango
#

no

tiny dagger
subtle blade
#

depends who you ask lol

brisk mango
#

i use 1.8.8 and 1.12.2

#

i fucking hate the newer versions

subtle blade
#

gonna miss out on those juicy text components

#

and nether content PepeHeart

brisk mango
#

gonna create my own

frigid ember
#

there is a reason why a lot of people stop at 1.12.2 πŸ™ƒ

subtle blade
#

because they don't understand how significantly beneficial the 1.13 update was?

#

Yea

#

Was a bummer

brisk mango
#

nah they just dont like it

#

microsoft fucked up the game

tiny dagger
#

well

brisk mango
#

the code is actually even more shit

frigid ember
#

well two reasons then

brisk mango
#

ive had a look through it

subtle blade
#

Want to rewrite it yourself, temedy?

brisk mango
#

why not

tiny dagger
#

no it's not lol

subtle blade
#

Please. Be my guest

brisk mango
#

already written some clients/server jars

#

would be better than the microsoft crap

subtle blade
#

Well Mojang works on the Java edition so

#

Not sure what you're on about

dry kiln
#

1.13 is amazing

brisk mango
#

yeah im saying the code of it is shit

#

of the 1.13 > client

dry kiln
#

The new blocks alone add a lot of building potential

brisk mango
#

well, it actually always has been shit

frigid ember
#

Minecraft java edition

brisk mango
#

the code of minecraft

timber barn
#

some random discord user > 60+ dev team

subtle blade
#

Right

#

I'm smelling armchair developer here

brisk mango
#

method calls from every constructor, stuff unorganized etc

subtle blade
#

Everyone thinks they can do better and if you believe that's the case, make like the Glowstone people and do it yourself

#

They're still catching up

frigid ember
#
    public boolean isCollided(Location l, String string) {
        /* Being requested when teleporting? */
        if (l != null) {
            for (double x = -0.4; x < 0.4; x += .1) {
                for (double y = -0.9; y < 0.5; y += .2) {
                    for (double z = -0.4; z < 0.4; z += .1) {
                        if (l.clone().add(x, y, z).getBlock().getType().name().contains(string)) {
                            return true;
                        }
                    }
                }
            }
        }
        return false;
    }``` how would I put that in a async runnable
torn robin
#

oof

#

for loops nice

dry kiln
#

What ever happened to glow

timber barn
#

:D

subtle blade
#

They're still chugging along

brisk mango
#

Thread thread = new Thread(() -> {

});

subtle blade
#

Just not 1:1

frigid ember
#

not everyone has java 7+ πŸ˜”

brisk mango
#

@frigid ember

timber barn
#

for nested in for nested in for

#

:D

brisk mango
#

just simply create a thread

frigid ember
#

so literally threads and not schedulers?

brisk mango
#

or use ScheduledExecutorService or ExecutorService

subtle blade
#

please don't suggest that lol

brisk mango
#

why not

subtle blade
#

there are many other things wrong with what he's doing

brisk mango
#

what is wrong with using java's executors

subtle blade
#

throwing in a new thread every time it's called is not the solution

#

Magic values, comparing Material constants' names with Strings, hundreds of location cloning

#

Only need one location, create constants, compare Material constants, etc.

#

Actually, you literally don't even need to be as precise as you're being right now

subtle blade
#

You're checking block type. Block type will only ever change every 1 coordinate

#

Iterating every 0.1 and on every axis is so unnecessarily overkill it hurts

silk bane
#

a 0.8x1.4x0.8 bounding box only needs to check 16 blocks at most