#help-archived

1 messages · Page 181 of 1

lone fog
#

You need packets to remove banner pattern lore?

grim halo
#

I'll just intercept the item packet and add the Flag so i dont break every pattern on his server when he decides to remove the plugin.

#

You can do it without packets but then its permanent

lone fog
#

Ah

tender blaze
#

Im trying to install the build tools but I cant because I have onedrive

#

I have tried deactivating the folder from one drive

#

but it didnt work

#

I have now uninstalled onedrive

#

it still says onedrive in the address

#

i have restarted my pc after uninstalling

grim halo
tender blaze
#

but when at the end it says i cant have it installed with onedrive

#

and i have git hub and the latest .jar file installed

#

Windows 10 ^4 bit

#

65 bit

#

64

graceful vigil
#

yo 65 bit

#

nice

grim halo
#

Just create start.bat
write

java -jar BuildTools.jar --rev 1.16.1

In it.
Copy it to the folder that your BuildTools is in and doubleclick the start.bat

tender blaze
#

what is start.abt

#

bat

grim halo
#

A batch file. Basically Windows' shellscript

#

In simple terms: It executes the line you write in it

tender blaze
#

but how do i create it

spare frost
#

Whats the sound effects that most similar to opening a chest in fortnite, like a "reveal sound" after you open some sort of lootbox

grim halo
#

rightclick somewhere. new -> textdocument or something -> change ending from .txt to .bat

#

The rightclick the bat file and click edit

rich olive
#

hopefully a dev sees this:

tender blaze
#

i have copied and pasted java -jar BuildTools.jar --rev 1.16.1 into it

rich olive
tender blaze
#

double clicking it tries to open a prompt

grim halo
#

Then put the bat and the BuildTools in a new folder and execute the bat

tender blaze
#

oh

#

it has done nothing

#

the same notepad doc comes up with Loading BuildTools version: git-BuildTools-19d26b6-120 (#120)
Java Version: Java 8
Current Path: C:\Users\benja\OneDrive\Desktop\build.
Please do not run BuildTools in a Dropbox, OneDrive, or similar. You can always copy the completed jars there later.

grim halo
#

Then dont run it from a OneDrive directory

tender blaze
#

then where else

#

onedrive is connected to every folder i make

lone fog
#

Turn it off

grim halo
#

What? So you cant create a folder in C:\Users\benja
Like C:\Users\benja\buildtools

lone fog
#

And while you’re at it, burn it

tender blaze
#

the address come up as C:\Users\benja
Like C:\Users\benja\OneDrive\buildtools

grim halo
#

I dont understand. I have never used onedrive but this sounds absolutely trash.

tender blaze
#

it is

#

i didnt even download it myself

#

its just a feature

grim halo
#

So you dont have acces to your C:\ drive at all? Like if you navigate there and create a folder it is moved somewhere else?

tender blaze
#

i went into local disc and created a folder called build and the address is C:\build

#

but then moved it to desktop and the address went back

grim halo
#

Thats not a feature. That sounds more like a virus. Uninstall it to death.

tender blaze
#

onedrive is an offical microsoft sofware

lone fog
#

Doesn’t mean it can’t be a virus

#

Like cortona

tender blaze
#

wait i moved it into the local disc

#

and clicked the start.bat

#

and its downloading

#

onedrive is supposed to back up your files

grim halo
#

so... you now have C:\start.bat? You just moved it to your plain disk?

tender blaze
#

no i moved the folder with the buildtools.jar and start.bat into disk

grim halo
#

k

tender blaze
#

now there are new folders

#

work

#

spigot

#

craftbukkit

#

bukkit

#

builddata

#

apache maven 3.6.0

#

portablegit

grim halo
#

yes. stop. You only need your spigot jar.

tender blaze
#

how do i stop

#

stp[.bat

#

stop.bat

grim halo
#

*stop listing the folders you have

tender blaze
#

oh

grim halo
#

Hah... stop.bat. Good one XDDD

keen compass
#

buildtools will create a few directories

#

disregard these as once buildtools finishes without errors, you will have a spigot server jar in the same directory as buildtools

vivid seal
#

Would anyone by chance know why I would be getting a ton of SQLite related errors on the loading of plugins? Every plugin that's saving into a sql/h2 database seems to be throwing out errors similar to this world guard one. Running on CentOS 7 at the moment and these errors have just now popped up out of nowhere. https://gist.github.com/Stampede2011/7cf9cee7c3fc410f7cde7a34134053f3

grim halo
#

Could you type java -fullversion in terminal and tell me what it sais?

vivid seal
#

It returns openjdk full version "1.8.0_242-b08"

grim halo
#

Does it say if its 32 or 64 bit?

vivid seal
#

It's 64bit. java -version returns:

OpenJDK Runtime Environment (build 1.8.0_242-b08)
OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode)```
grim halo
#

Normally a UnsatisfiedLinkError is thrown if the Java Virtual Machine cannot find an appropriate native-language definition of a method.
So its either a problem with 32bit vs 64bit java vs database or your operating system doesnt support the used methods.

#

Is the mc server application running on a local machine?

#

Or on a server

vivid seal
#

Dedicated machine from OVH, yeah. That's very strange considering I haven't touched Java in quite some time and it's been running smoothly for over a year

grim halo
#

You can try updating java and your os.

#

Any particular reason you chose CentOs 7 over 8?

tiny dagger
#

people do love their outdated software don't they? 😂

#

i remember using 7 like i dunno 6 years ago

vivid seal
#

Made the server 3 years back but should've update it by now anyway

timber berry
#

I just bought a plugin 4 hours ago and I still can't download it

#

help

grim halo
#

...

timber berry
#

hi

#

xd

grim halo
#

20 more to go?

#

What plugin did you get?

timber berry
#

realistic world plugin

grim halo
#

Did you use paypal or another payment method

timber berry
#

realistic world generation* sorry

grim halo
#

Wait... paypal is the only way atm right?

timber berry
#

paypal

#

yess

#

far as I know

grim halo
#

And the payment occurs in your paypal history of purchases?

timber berry
#

yes, I discount it

grim halo
#

wdym by "discount it"

timber berry
#

?

grim halo
#

What do you mean by you "discount it"

timber berry
#

in my paypal

#

the cash

grim halo
#

What discount?

timber berry
#

nonon

#

remove

#

remove money in my paypal

#

wait

#

xd

grim halo
#

Yes it sometimes takes a while

timber berry
#

i said nothing

#

3 hours?

#

4

grim halo
#

There are occasions where ppl had to wait for one or two days.

timber berry
#

what

#

2 days?¡

pastel condor
#

Patience is a virtue

grim halo
#

I never had any problem and had to wait 2min at max. Maybe you are just unlucky maybe paypal or the spigot servers are slow at the moment.
I would at least wait for the rest of the day. If nothing happened by then i would contact the plugin author and/or spigot staff.

timber berry
#

If they just sent me what I have to do, thanks anyway c:

pastel condor
#

Just wondering, can you buy a resource with an unverified PayPal?

bold anchor
#

Hmm? I mean you can try

timber berry
#

I don't know, I think mine is verified

sage summit
#

Hi,
Im making a command that makes a new world and I want to set the worlds global flag settings when the world is created(I have the world creator code) how would I set the global flag settings? example, disable pvp, tnt explosions and block breaking

grim halo
#

What do you mean by global flag settings? The gamerules?

sage summit
#

using worldguard i want to set the global variable things so people cant break blocks and set off tnt for example

#

instead of a region i want the whole world

grim halo
#

Maybe you can find something there

sage summit
#

ok

gusty comet
#

Hey, i've been coding this gradient command for my Plugin but for some reason it's not accurate on the end. Anyone know why this could be the case?

grim halo
#

First of all. Use a StringBuilder. Concatenating Strings like this is extremely inefficient.

gusty comet
#

for the hex inputs?

grim halo
#

For everything.
You create a StringBuilder, then .append() more to it and in the end you call .toString() to get the result.

gusty comet
#

oh you mean in the forloop?

grim halo
#

Strings are immutable. Meaning if you add another String to an existing String, both objects get discarded and a completely new String is created.
And that happens every time a new String gets added. So it pollutes the garbage collector and generally takes a lot of CPU time

gusty comet
#

Like this?

StringBuilder sb = new StringBuilder();
        sb.append("#"+String.format("%02X", r1)+String.format("%02X", g1)+String.format("%02X", b1)+chars[0]);
        for(int i = 1; i < chars.length-1; i++) {
            
            
            int Red,Green,Blue;
            if(rs < 0) {
                Red = Math.round((r1+(distancer*i)));
            }else {
                Red = Math.round((r1-(distancer*i)));
            }
            if(gs < 0) {
                Green = Math.round(g1+(distanceg*i));
            }else {
                Green = Math.round(g1-(distanceg*i));
            }
            if(bs < 0) {
                Blue = Math.round(b1+(distanceb*i));
            }else {
                Blue = Math.round(b1-(distanceb*i));
            }
            if(rs == 0) {
                Red = r1;
            }
            if(gs == 0) {
                Green = g1;
            }
            if(bs == 0) {
                Blue = b1;
            }
            
            String RedS = String.format("%02X", Red);
            String GreenS = String.format("%02X", Green);
            String BlueS = String.format("%02X", Blue);
            sb.append("#"+RedS+GreenS+BlueS+chars[i]);
            
        }
        sb.append("#"+String.format("%02X", r2)+String.format("%02X", g2)+String.format("%02X", b2)+chars[chars.length-1]);
        String result = sb.toString();
        return ChatEventListener.translateAlternateColorCodes(result);
grim halo
#

Yes

gusty comet
#

Ah nice

grim halo
gusty comet
#

oh okay

#

And yea i know my variable names are trash

#

also its chars.length()-2 because i want the first and last character to be the input hex.

grim halo
#

return ChatEventListener.translateAlternateColorCodes(result); What does this do?

gusty comet
#

This basically turns #FFFFFF in the hex format

#
public static String translateAlternateColorCodes(String input) {
        input = ChatColor.translateAlternateColorCodes('&', input);
        input = input.replaceAll("#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])", "§x§$1§$2§$3§$4§$5§$6");
        return input;
    }
grim halo
#

Ah ok

gusty comet
#

the weird thing is it "kinda" works

grim halo
#

so hex1 is your start color and hex2 is your end color?

gusty comet
#

Yea

grim halo
gusty comet
#

I have all 3 of them

grim halo
#

What do you mean you have all 3 of them?

gusty comet
#

Ooooh

#

I see

#

Oh thats the issue i can already tell

#

One sec

grim halo
#

Nice

gusty comet
#

Thanks for the help 😄

grim halo
#

np

gusty comet
#

I did many tries yesterday and i think i forgot to just add the () i was tired lol

grim halo
#

?paste

worldly heathBOT
grim halo
#

@gusty comet Did the StringBuilder work?

gusty comet
#

@gusty comet Did the StringBuilder work?
@grim halo yes

grim halo
gusty comet
#

Ooh

#

I'll try if later im einkaufen lol

grim halo
#

XD

tough kraken
#

i want to get a random location for all online players
the location should not be more than 500 blocks away, and i need 3 int's
how can i do that

grim halo
#

500 Blocks away from what?

tough kraken
#

so an int for x y and z

#

from the players actual location

grim halo
#

Ah ok. Do you know how to generate random numbers?

tough kraken
#

yeah, but atm i dont get how to get the bound in this way.

gusty comet
#

I would only calculate X and Z and then use Location.getHighestBlock() or something

tough kraken
#

it should be a random y too

gusty comet
#

But then he is in the ground

spring nexus
#

ThreadLocalRandom random = ThreadLocalRandom.current();
random.nextInt(start, end)

int x, y, z;
location.add(x, y, z)

grim halo
#

Random y too?

tough kraken
#

its like a challenge, every player gets an random location to be at in random time between 3-5 minutes

spring nexus
#

Is it possible to make the config use the default options if the option is not set in the server config?

#

I don't want to use getString(path, default)

tough kraken
#

and then in the time he has to get there

grim halo
#

Ah ok.

tough kraken
#

Random rnd = new Random();
int coord = rnd.nextInt((256 - 5) + 1) + 5;

for y its no problem, but i dont get it with x and z, as it has no "border" if you know what i mean

#

wtf nvm

#

meant this

grim halo
#
  private ThreadLocalRandom random = ThreadLocalRandom.current();

  public Location getRandomLocation(Player player, int radius) {
    World world = player.getWorld();
    Location loc = player.getLocation();
    return new Location(world, loc.getX() + random.nextDouble(radius), loc.getY() + random.nextDouble(radius), loc.getZ() + random.nextDouble(radius))
  }
gusty comet
#

Just make sure they don't suffocate before teleporting them

tough kraken
#

i am not teleporting them

gusty comet
#

oh okay

grim halo
#
  public Location getRandomLocation(Player player, int radius) {
    World world = player.getWorld();
    Location loc = player.getLocation();
    return new Location(world, 
        loc.getX() + random.nextDouble(radius), 
        loc.getY() + random.nextDouble(radius), 
        loc.getZ() + random.nextDouble(radius));
  }
tough kraken
#

its maybe hard to explain,

i am creating a random location, sending them to the players, and they have to get there between 3-5 minutes (random)

if they do it, after 8 mintes it goes on etc, if not they are dead

#

"challenge" like

grim halo
#

Or even simpler

  private ThreadLocalRandom random = ThreadLocalRandom.current();

  public Location getRandomLocation(Player player, int radius) {
    Location loc = player.getLocation();
    return loc.add(random.nextDouble(radius), random.nextDouble(radius), random.nextDouble(radius));
  }
#

Oh and you need to be sure that 0 < Y < 255

tough kraken
#

there is a way to get a radius?

#

nevermind

spring nexus
#

That'll ignore all the possible negative values tho.

grim halo
#

Ah true

tough kraken
#

well i will try a bit, thank you

grim halo
#
  private ThreadLocalRandom random = ThreadLocalRandom.current();

  private double midRand(double value) {
    value /= 2;
    return random.nextDouble(-value, value);
  }
  
  public Location getRandomLocation(Player player, int radius) {
    Location loc = player.getLocation();
    return loc.add(midRand(radius), midRand(radius), midRand(radius));
  }
tough kraken
#

this will make it?

grim halo
#

Not quite. You need to make sure that 0 < Y < 255 so they get reachable spots

tough kraken
#

well...
Expected 0 arguments but found 2

#

at the return of the double

#

my mistake, had another random with name random

kind crow
#

Hi, it there a way to remove a half random selected entities of a specific type in 1.12.2?

#

And not writing a plugin specifically for that

tough kraken
#

with code? just use the EntitySpawnListener i think

#

well...

#

maybe there is a plugin for it

#

but i dont think its possible without plugins

kind crow
#

Yes I'm looking for a plugin or a vanilla command. I know it's possible in vanilla 1.16

tough kraken
#

well, should i code it fast?

#

if yeah, just send me private all mobs you want to deactivate

kind crow
#

It's just wither

tough kraken
#

so you just want to prevent the wither from spawning?

kind crow
#

No, I want to limit it per chunk and remove half of already existing withers

tough kraken
#

uhm

#

then im out xd

kind crow
#

I already found a plugin for limiting

tough kraken
#

then try that

tough kraken
#

ah i see, so you dont have an anarchy server? haha

kind crow
#

I do, but it's luggy as hell xD

#

I have like billion withers on spawn

tough kraken
#

how much ram you have

#

and what cpu

kind crow
#

32gb

tough kraken
#

on the server

#

well

kind crow
#

Xeon something

tough kraken
#

how can it lag with 32gb wtf

keen compass
#

you are going to want to generate your random numbers in another thread btw

tough kraken
#

yeah i know

kind crow
#

What do you mean?

keen compass
#

I recommend generating a few random numbers based off the amount of players you have then stuff those in a list

#

since you want no more then 500 you only need to generate numbers in the range of 0-500

grim halo
#

Why does he need to generate them in another thread?

keen compass
#

because Random will become cpu intensive if used a lot

#

so what you can do is generate your random numbers ahead of time

tough kraken
#

well, can i use something like create a random number between 0-500, and then just use player.getLocation.getBlockX.add(theRandomNumber)?

keen compass
#

the problem is generating the random numbers here. If you are constantly generating random numbers it is going to become cpu intensive and start lagging the server

tough kraken
#

its generating every 8 minutes 1 time

#

for about maybe 5 players maximum

keen compass
#

how you decide to go about it is up to you. All I can do is inform of you of the drawbacks of some methods

kind crow
#

Depends on what kind of random numbers. If it's not cryptographically safe, than it's not soo cpu intensive I think

keen compass
#

in this instance, you can generate the random numbers in another thread ahead of time before you even need them

tough kraken
#

well, can i use something like create a random number between 0-500, and then just use player.getLocation.getBlockX.add(theRandomNumber)?
@tough kraken the question is, would it work? because it think it would only generate +coords

keen compass
#

@kind crow depends on how often and how many players 😛

#

have to take into account it is being done on the main thread as well

kind crow
#

If it's not in hundred thousand s it's ok I think

keen compass
#

@tough kraken the way I am talking about you can do an inverse operation to add negative numbers to the list

kind crow
#

Just make sure it's least safe random generator

tough kraken
#

i can maybe post what i am using for only y-coords, its about 6 months old a bit later as i started coding, so its probably crap, but i am too lazy atm to chang it:

#

?paste

worldly heathBOT
keen compass
#

and then its just a matter of picking at random a number in the list.
@kind crow other thing is how large the range is as well

tough kraken
keen compass
#

trust me, getting new random numbers will become cpu intensive and it doesn't take much on a minecraft server to make that happen

grim halo
#

I just generated 1.5k numbers (would be enought for 500 players) in 1.7ms
I dont think that will ever be a problem

keen compass
#

it is one of the primary reasons randomTP lags the servers 😛

#

it isn't a problem to do it ahead of time @grim halo it is a problem when you got a bunch of other things going on lol

grim halo
#

Its <1ms in one tick only. I dont think you should worry about that.

#

Unless its in a hotspot

kind crow
#

Yeah it's probably better to do in a separate thread since minecraft isn't really multithreaded anyway you should use that free threads for something

grim halo
#

lol

#

guys

#

<1ms in an operation that isnt even scheduled

#

nor a hotspot

keen compass
#

on a server with nothing going on

#

hardly an accurate test for that

grim halo
#

why would a bussy server take longer?

keen compass
#

load up some player objects about 50 of them and have them go do random stuff while at the same time generating numbers in the range of 500 and the schedule it every 8 minutes per player 😉

#

because code gets excuted in order

#

and then loops around again

grim halo
#

exactly

keen compass
#

if you execute the random stuff enough times it will cause the main thread to start lagging 😉

grim halo
#

so the main thread doesnt magically take longer to generate numbers just because he did a bunch of other stuff before

keen compass
#

depends on what is going on really

grim halo
#

Not really unless JIT kicks in

keen compass
#

look if you want to test it out properly load 50 player objects set those npcs to do random things

#

and then start generating random numbers for those player objects

#

and then tell me it doesn't lag the server 😉

#

If you don't want to believe me so be it, all I can do is inform of performance problems with certain methods

grim halo
#

All speculations. The burden of proof is on you. Im the first one that supplied data.

keen compass
#

it wasn't an accurate test either

#

anyone can load data in an empty server

grim halo
#

true. Still better than speculating 😛

keen compass
#

I am not speculating

grim halo
#

Ok maybe im missing something here... why exactly would the main thread take longer to generate a number with an increasing number of Player objects on the server?

keen compass
#

because the server has to do more work, more objects are loaded into heap space, the GC has to do more cleaning up

#

there is more going on in the JVM then just what you can visually see code wise

#

L2 cache being occupied because of stuff needing to be executed etc

#

anyways, like I said, don't have to believe me 😉

grim halo
#

Last time i checked the GC doesnt run on the main thread

keen compass
#

nope but it can certainly do pause the world GC's

#

you will never stop that from happening but you can cause it to be invoked more often with generating new objects and then throwing those objects away however

grim halo
#

Still. I dont think generating 150 random numbers once every 8mins will ever take longer than half a millisecond.

keen compass
#

per player

grim halo
#

3 per player. 150 if you have 50 players

keen compass
#

its not just 3 random numbers

#

should probably check where random gets its randomness from 😉

grim halo
#

Ok i checked. It just uses a value taken from the current CPU state and does some arithmetic with it.

#

Your point?

keen compass
#

last I checked it comes from dev/random which only gets filled up from running applications. so now you have I/O as well as bunch of other numbers and some math, then it will filter out what you want to get you within the range specified. So we are generating 3 random integers as the method is being executed, do some arbitrary math. And then afterwards throw all them objects that were just generated away once everything is done. and that is per player.

#

so yes CPU state

bold anchor
#

Use getString or default method or get out

#

There is like 0 reason for you not wanting ti use it

grim halo
#

Im following the seed generation and dont see anything remotely close to IO

spring nexus
#

It'd be more convenient to just set a boolean instead of doing config.getString("blah", config.getDefaults().getString("blah")) every single time don't you think?
And thanks for giving such a lovely friendly answer.

keen compass
#

@grim halo you are not going to grab the cpu state directly

#

try to and the kernel will be very unhappy with you 😉

#

hence, by default java grabs randomness from the dev/random

#

it is what it is for

bold anchor
#

Crypto, then write a method that wraps that shit?

keen compass
#

you can addDefault values to MemoryConfiguration

#

then it is just a matter of grabbing it whenever you want.

#

however, you are under the assumption that the server magically knows what the default is without being told

spring nexus
#

I already know I can use a wrapper. I just asked if there's an option or not. I got my answer thanks.

keen compass
#

the other way you could do it, is grabbing the default config from the jar as a resource

#

which you can then use to map to default values

spring nexus
#

Yep, I'm doing that.

InputStream stream = plugin.getResource(resourcePath);
if (stream != null) config.setDefaults(YamlConfiguration.loadConfiguration(new InputStreamReader(stream, Charsets.UTF_8)));
keen compass
#

then use that combined with addDefault

#

with MemoryConfiguration

#

and voila you have your default stuff if something isn't set

spring nexus
#

What's the point of addDefault if I'm already setting the defaults?

keen compass
#

you don't have to specifically use it

#

can just stick with setDefaults

#

or even use getDefaults

spring nexus
#

Yeah.

#

I guess I'll have to make a wrapper. Thanks.

keen compass
#

in either case though, regardless of what you decide to do. The server needs to be told what the defaults are that is, it must come from somewhere lol

#

and you don't really need a wrapper either

#

Can just extend the Yaml stuff using your own yaml classes

#

server uses SnakeYaml for its implementation. All the API does is provides some convenience methods for Yaml

spring nexus
#

Yes, I know. Thank you.

tough kraken
#

well... if i only want to create one location, how do i do that best with multiple players?

as i cant get just the location from the player as outgoing location, because its not only one player

#

like if all players are standing in a circle, getting the middle point
something like this

chrome edge
#

Is it good idea to limit CPU whenever server starting? Nowadays, bungee arena system makes other server in same instance laggy due to CPU usage but I've to restart to the server... What should I do?

kind crow
#

I have 32gb of ram,but I heared it's not recomended to use more than 10gb for one server. What can I do with the rest to improve the server's performance?

keen compass
#

threads will occupy additional ram

#

as well as the GC

kind crow
#

Do they do that automatically? Because the server doesn't use more than half

keen compass
#

if you really want a superfast server, toss your server into a ramdisk 😛

wraith thicket
#

Depending on the size of the server, that might not work 🙂

kind crow
#

I can't use ramdisk, because the world is more than 200gb

odd knoll
#

oof

kind crow
#

Is there a way to have frequently used chunks in ram so it doesn't have to save them to hdd as often?

gusty comet
#

It's just a tiny bit wrong

tough kraken
#

how can i actually cast the player at bungeecord? because i see its a bit different from spigot/Bukkit

#

i know , probably with ProxiedPlayer, but how for ex. cast them in events

gusty comet
#

ProxiedPlayer p = event.getPlayer()

#

ProxiedPlayer p = (ProxiedPlayer)sender;

tough kraken
#

oh wow, had to restart intellij, it showed cant be casted, but now its working, ty

forest sigil
#

Hey, I'm new to Bungeecord development and was wondering if anyone can help me with fetching a string from a data folder? I am using the following ConfigManager - https://github.com/CookLoco/ConfigManager. I want to pull a string from the data folder "motd.yml".

#

Proxy.getInstance().getDataFolder("motd.yml").getString("motd") does not work.

frigid ember
#

Anyone knows how works Location (org.bukkit.location)? I always getting null pointer on every method

tough kraken
#

nvm i see the problem

frigid ember
#

Why it's proxied player?

#

That's for bungee

tough kraken
#

yeah

frigid ember
#

Wtf

#

Bro

#

You have event set cancelled true

#

That's joke?

#

This question

tough kraken
#

i am sending a message ude

#

dude

#

after cancelling

#

i think you do not know the sense of #setCancelled

frigid ember
#

When it's cancelled you cannot do anything

tough kraken
#

wrog

#

wrong

#

setCancelled cancells that, whats above it

frigid ember
#

Bro

tough kraken
#

explain me why its working now

#

are you a troll?

frigid ember
#

Joke?

tough kraken
#

please... you only can be a troll

frigid ember
#

What?

tough kraken
#

the problem was this
if (event.getMessage().contains("&")) {

and not the event cancelling, wtf

livid spruce
#
at me.forumat.cookies.util.Machine.pasteSchematic(Machine.java:74) ~[?:?]
at me.forumat.cookies.listener.PlaceListener.onPlace(PlaceListener.java:54) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_232]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_232]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_232]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_232]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:300) ~[patched.jar:git-PaperSpigot-"4c7641d"]
... 19 more``` Why my plugin can't find the Class ?
#

The class exists

#

In the Plugin.

tough kraken
#

you registered it in the main-class?

#

if listener/etc

livid spruce
#

Do you mean me ?

tough kraken
#

at me.forumat.cookies.util.Machine.pasteSchematic(Machine.java:74) ~[?:?] at me.forumat.cookies.listener.PlaceListener.onPlace(PlaceListener.java:54) ~[?:?]

that seems to b the problem

#

yeah

#

can you paste the whole class?
?paste

#

?paste

worldly heathBOT
tough kraken
#

send the error

#

i mean, paste it

#

somewhere

#

which version you ar using

frigid ember
#

Hello? So my friend got banned from spigot for "Using Alts to rate himself" but he says he didn't do it, and he already sent an unban request to the unban email, how long does it usually take to get an answer? Also how long is the ban?

forest sigil
#

Hey, I'm new to Bungeecord development and was wondering if anyone can help me with fetching a string from a data folder? I am using the following ConfigManager - https://github.com/CookLoco/ConfigManager. I want to pull a string from the data folder "motd.yml".

Proxy.getInstance().getDataFolder("motd.yml").getString("motd") does not work.

rare prairie
tough kraken
#

Hello? So my friend got banned from spigot for "Using Alts to rate himself" but he says he didn't do it, and he already sent an unban request to the unban email, how long does it usually take to get an answer? Also how long is the ban?
@frigid ember i would suggest asking that in #general

frigid ember
#

ok! Thanks

tough kraken
#

well, actually idk whats the problem

livid spruce
rare prairie
#

except this
close that file and open again, let see what happens

tough kraken
#

i assume its because of the runnable
@livid spruce

#

and "noClassDefFoundError" doesnt means it doesnt find the class

rare prairie
#

Did you use maven or gradle or external builds?

#

I would rather use maven, because exporting the server jar file is usually breaks the projects

#

and also causing this

forest sigil
#

Hey, I'm new to Bungeecord development and was wondering if anyone can help me with fetching a string from a data folder? I am using the following ConfigManager - https://github.com/CookLoco/ConfigManager. I want to pull a string from the data folder "motd.yml".

Proxy.getInstance().getDataFolder("motd.yml").getString("motd") does not work.

tough kraken
#

whats the import for the itemstack? nms or bukkit

#

then thats the problem probably

rare prairie
#

switch to bukkit

tough kraken
#

no problem

#

btw, never use nms imports since you are sure thats the right import

rare prairie
#

@forest sigil you should load that motd file using with net.md_5.bungee.config.YamlConfiguration

tough kraken
#

and i never used a nms import tbh

#

then i suggest checking that in future 🙂

forest sigil
#

I have no issues loading it, I want to fetch a string from a datafolder..

rare prairie
#

motd.yml is not a folder

forest sigil
#

File file = new File(this.getDataFolder(), "motd.yml");

#

:thonk:

tough kraken
#

i think the datafolder is the server-plugin folder, or is it the folder related to the plugin?

rare prairie
#
Configuration config = ConfigurationProvider.getProvider(YamlConfiguration.class).load(file);
String s = config.getString("yes");
#

i think the datafolder is the server-plugin folder, or is it the folder related to the plugin?
that is the plugin related, Bungeecord/plugins/yourPlugin

tough kraken
#

ah ok, then nvm

formal nimbus
#

hey guys 🙂

rare prairie
#

yes

formal nimbus
#

In the InventoryClickEvent listener, how do I get the item clicked on by the player

tough kraken
#

well, can i get wich group the player is in the config.yml of bungeeCord?

#

In the InventoryClickEvent listener, how do I get the item clicked on by the player
@formal nimbus event.getSlot()

#

returns an int

rare prairie
#

In the InventoryClickEvent listener, how do I get the item clicked on by the player
InventoryClickEvent#getCurrentItem

tough kraken
#

oh nvm

#

im dumb

formal nimbus
rare prairie
#

well, can i get wich group the player is in the config.yml of bungeeCord?
BungeeCord.getInstance().getConfigurationAdapter().getGroups(player)

tough kraken
#

what do you want to do

formal nimbus
#

I tried getCurrentItem?

lone fog
#

I mean you can do that

#

But getCurrentItem is better

forest sigil
#

so this configmanager is useless with that method

#

sweet

formal nimbus
#

I'm doing this

rare prairie
#

just use getCurrentItem

#

its better

formal nimbus
#

I tried that but it didn't seem to work :/

tough kraken
#

BungeeCord.getInstance().getConfigurationAdapter().getGroups(player)
@rare prairie ty

rare prairie
#

I tried that but it didn't seem to work :/
because getCurrentItem can be null

#

and also use .equals for ItemStack

formal nimbus
#

ok, but why would it be null?

rare prairie
#

thats not enum

formal nimbus
#

ah

#

that will be it

livid spruce
#

i assume its because of the runnable
@livid spruce
@tough kraken Why?

#

And how can I fix it?

formal nimbus
#

and also use .equals for ItemStack
@rare prairie will try this now

#

Works!

#

ah

#

1 more question though

tough kraken
#

@rare prairie

so
if(BungeeCord.getInstance().getConfigurationAdapter().getGroups(player.getDisplayName()).equals("Admin"))

would run, if the player is in group "Admin"?

formal nimbus
#

how to stop players using hotkeys to move items into an inventory?

tough kraken
#

not with plugins, as it is checked client-side

#

i assume

rare prairie
#

@rare prairie

so
if(BungeeCord.getInstance().getConfigurationAdapter().getGroups(player.getDisplayName()).equals("Admin"))

would run, if the player is in group "Admin"?
getGroups is a list of collection

lone fog
#

I think the click event should still trigger

formal nimbus
#

it doesn;t ):

#

ah

#

actually hang on...

#

it does???

#

ok

#

well using hot keys to move items OUT of the inventory triggers it

#

oooo

#

wait no I know

wraith thicket
#

Yes, a click event does trigger

formal nimbus
#

I'm moving items from my hotbar though

wraith thicket
#

Either HOTBAR_SWAP or HOTBAR_MOVE_AND_READD

formal nimbus
#

into the inventory

wraith thicket
#

The javadocs is a good place for info

livid spruce
#

And how can I fix it?
@livid spruce

tough kraken
#

well, so it doesnt work?
@rare prairie
i want to use that to get Prefixes at ChatEvent

rare prairie
#

iterate with for loop and find the group you want to search

formal nimbus
#

the inventoryClickEvent isn't being triggered when I move an item from my hotbar using hotkeys

wraith thicket
#

It's always triggered for me just fine

formal nimbus
#

every other kind of click is

#

hmm

wraith thicket
#

Unless you're talking about the creative inventory hotbars?

formal nimbus
#

ah

#

I am

wraith thicket
#

Well, that's completely client side

formal nimbus
#

o

#

huh

#

no I can still do it in survival?

wraith thicket
#

You might get some events from InventoryCreativeEvent

#

What are you doing exactly?

lone fog
#

Then you aren’t talking about the creative hot bars

formal nimbus
#

so I have my custom GUI open

#

I am pressing 4 on an empty slot in the opened GUI

#

and that moves the item in slot 4 in my hotbar

#

into that slot

#

any other kind of click or weird combo doesn't work

#

including moving items from the GUI into my hotbar using the hotkeys

wraith thicket
#

Yes, and that should fire the event - it always has for me at leasst

formal nimbus
#

ima do a quick test

wraith thicket
#

What version are you on?

keen compass
#

server ignores some things when in creative

formal nimbus
#

ah

#

ok

#

it fires the event lmao

#

something wrong wwith the rest of my code ;-;

#

I'll prob be able to fix it then

#

oh I see

#

I didn't check to make sure that event.getCurrentItem wasn't null

#

fixed 🙂

grim halo
#

@gusty comet I think the problem occurs if you have more than 128 chars. Probably something you could fix with a modulo and some work.

gusty comet
tame bough
#

How would I go about picking a random subpath in a config file?

lone fog
#

Those bars all seem a bit off

#

Fancy tho

gusty comet
grim halo
#

@tame bough How random does it have to be?

#

And why does it need to be random?

keen compass
#

I think they meant to dynamically get path's without hardcoding them

grim halo
#

Ive heard today that if you do anything random your server instantly freezes for a second

keen compass
#

-.-

grim halo
#

^^

tame bough
#

No

#

I literally mean picking a random subpath

lone fog
#

Ah

grim halo
#

@tame bough You can list the keys and pick a random one

lone fog
#

On the green-blue one it looks a bit jarring between the last 2 colors

#

Even on the short ones

gusty comet
#

yes

frigid ember
#

hi guys

#

i need some help

grim halo
#

maybe the delta you are iterating with is a bit off

gusty comet
#

Even the short ones? They work fine for me idk

livid spruce
#

@tough kraken ? What's worng with the code?

gusty comet
#

that should be fine

formal nimbus
#

that's cool 😮

#

I didn't know mc text could have that many colours

gusty comet
#

It is but it doesn't work when it's more than 128 chars 😄

#

somce 1-16

#

since

#

1.16

formal nimbus
#

It is but it doesn't work when it's more than 128 chars 😄
@gusty comet F

lone fog
#

Maybe it’s my eyes

gusty comet
#

Yeah possible

#

THe only one which looks wrong to me is the last one

grim halo
#

@tame bough
Something like this works (No idea how to get a random entry from a Set)

  public String getRandomKey(ConfigurationSection section) {
    Set<String> keys = section.getKeys(false);
    return new ArrayList<>(keys).get(ThreadLocalRandom.current().nextInt(keys.size()));
  }
#

Ah there is probably a nicer way using a iterator...

gusty comet
#

Those look fine for me

livid spruce
#

@gusty comet lol how have you made this ????

gusty comet
#

But it isn't between 255 colors only like 100 each

formal nimbus
#

I have a question - I wanted to make a back arrow for my GUI. I was thinking a good way of doing this would be to store with every player their last viewed inventory

gusty comet
#

I recently found a Inventory GUI API on the Spigot forum

#

You can try that

formal nimbus
#

I was thinking maybe a Pair? But a wrapper class or a hash map could also work?

#

I recently found a Inventory GUI API on the Spigot forum
@gusty comet huh, I could though I'd rather write the code myself 🙂

gusty comet
#

I would store a <UUID, Inventory> hashmap

formal nimbus
#

kk, what advantage would this have over a pair?

gusty comet
#

Don't know what you mean by "pair" never used that lol

#

Is it a java datatype?

formal nimbus
#

yeah

lone fog
#

You can just call map.get(UUID)

wraith thicket
#

Hashmap lookups are really fast + that's really waht you want to store anyway

gusty comet
#

Yep i also think HashMaps are the best to go

formal nimbus
tame bough
#

@grim halo so that works, how would I then send the players the messages>

wraith thicket
#

You want to (given a player), know which inventory they have open. Hence, a mapping from the player's UUID ot the inventory

gusty comet
#

But you could create your own Object which stores more than just the Inventory to add custom Items

tame bough
#

Right now it just sends the (key) I think?

formal nimbus
#

You want to (given a player), know which inventory they have open. Hence, a mapping from the player's UUID ot the inventor
@wraith thicket yus

grim halo
#

I would encapsulate the inventory in a GUI Class.
Then You can have a Class called GuiProgram where you store a List<InventoryGUI> and the current index.
After that you can maintain a Map<UUID, GUIProgram> so you can click forwards and backwards.
Other than that you could also have parenting. So one GUI has another as parent. This way you could just back to the parent.

#

@tame bough Just like you normally would... player.sendMessage(msg)

tame bough
#

im doing it but it sends "message1 and message12

grim halo
#

Oh you also need to get the StringList before. obvsly

tame bough
#

ah

grim halo
#

so section.getStringList(key)

tame bough
#

Where would I put that?

#

Sorry I'm very new to configs

grim halo
#

after you got the random key you want to get the list that is saved under the key.
in your case something like
List<String> lines = plugin.getConfig().getStringList("Message." + random);

tame bough
#

Ohhh

rare prairie
#

section#getStringList#get(random)

tacit trellis
#

is it possible to prevent /plugins with a bungeecord plugin so I dont have to do it on every single server?

grim halo
#

Yes you could also store the ConfigurationSection in a var and use it like mont.

gusty comet
#

Yeah just use ChatEvent for that

rare prairie
#

var type is memory leaker thing

tame bough
gusty comet
#

is it possible to prevent /plugins with a bungeecord plugin so I dont have to do it on every single server?
@tacit trellis

grim halo
#

i meant some sort of variable. Everyone uses Java 8 so nobody even knows you can use var types

tame bough
tacit trellis
#

okay ill try that thanks

tame bough
rare prairie
#

please use && for multiple checks

grim halo
#

Also the first check is obsolete.

raven hound
#

My server keeps crashing with this error:

#

[Server] main/FATAL Failed to start the minecraft server
[Server] INFO net.minecraft.server.v1_16_R1.SessionLock$ExceptionWorldConflict: /./world/session.lock: already locked (possibly by other Minecraft instance?) 1
[Server] INFO at net.minecraft.server.v1_16_R1.SessionLock$ExceptionWorldConflict.a(SourceFile:98) ~[spigot_1_16_1.jar:git-Spigot-ad703da-e2403a3]
1.16 Server.

rare prairie
#

?paste

worldly heathBOT
gusty comet
#

delete the session.lock file

raven hound
#

Alright

grim halo
#

@tame bough This looks suspiciously like you dont know the basics of java. 🤔

wind dock
#

Hey guys, when servers say 2 vcores, does that mean 2 whole allocated cores to me?

tacit trellis
#

are there other aliases for /plugins except for /pl and /bukkit:pl?

gusty comet
#

no

grim halo
#

v = virtual

wind dock
#

Yes I know that

#

But does that mean they're giving me 2 whole cores?

#

Probably not

grim halo
#

virtual != physical

wind dock
#

Then what does 2 vcores mean

tame bough
#

@grim halo Hahah maybe

raven hound
#

Where is the session.lock file located?

gusty comet
#

are there other aliases for /plugins except for /pl and /bukkit:pl?
@tacit trellis You could also make a Bungeecord command /plugins, then add the aliases /pl and /bukkit:pl so they can't tab complete it

#

but not sure if you can use : in there

rare prairie
#

Where is the session.lock file located?
its in your world(s)

tacit trellis
#

bungeecord commands are before spigot commands right?

gusty comet
#

yes

raven hound
#

Found it but what happened to the file needing to delete it

gusty comet
#

Normally i think the server deletes that file when stopping the server

grim halo
#

@tame bough

      // My last spoonfeed...
      for (String line : lines) {
        Bukkit.broadcastMessage(line);
      }
raven hound
#

Oh so it tried to make a new one I'm guessing

gusty comet
#

no

#

Its a safety measure so the world won't get loaded twice

raven hound
#

Alright my server finally started thanks oops

gusty comet
#

I think

#

Custom emotes are sadly disabled 😄

#

You get them when you boost the server lol

raven hound
#

Oh I thought my nitro run out :lol:

grim halo
#

OP rly?

gusty comet
#

?

frigid ember
#

how can i display the players hearts in a tablist?

gusty comet
#

Oh and @tacit trellis You should disable "namespaced-commands" (or something like this) in the spigot.yml which disables <pluginname>:<command>

tacit trellis
#

oh never knew about that thanks

lone fog
#

Does that disable minecraft:command

gusty comet
#

yes

tacit trellis
#

I cant find it in spigot.yml?

lone fog
#

Dang

#

I kinda need the minecraft ones

grim halo
#

I got this weird old discord status where boosts are only 40ct pepega

gusty comet
#

What

raven hound
#

Skript @frigid ember

gusty comet
#

I kinda need the minecraft ones
@lone fog Note: This only disables disables pluginname:command not only command

grim halo
frigid ember
#

@raven hound yes but how?

gusty comet
#

This makes me want to boost this server now lol

#

But i only got nitro classic :WeirdChamp:

lone fog
#

I know but certain plugins have overridden the minecraft ones

raven hound
gusty comet
#

Oooh

raven hound
#

Me too Xirado

frigid ember
#

nice thanks

raven hound
#

the reviews on it are wack though

gusty comet
#

@frigid ember You can still use minecraft:command but it wont be recommended in the list

frigid ember
#

means?

lone fog
#

Wrong tag methinks

frigid ember
#

xD

gusty comet
raven hound
#

Probably get a custom plugin or use an existing one

gusty comet
lone fog
#

Works for me

gusty comet
#

If you need to use minecraft commands instead of the plugin ones, you can still use minecraft: it's just not suggested

lone fog
#

Maybe if essentials didn’t override tp and recipe

raven hound
#

skyexit what server version?

frigid ember
#

@raven hound is it possible to do this with a plugin?

#

1.14.4

raven hound
#

Then follow this tutorial

tacit trellis
#

@gusty comet I cannot find the setting in spigot.yml?

frigid ember
#

Then follow this tutorial
@raven hound thats vanilla

raven hound
#

my bad

frigid ember
#

np

raven hound
#

Only bet is to hire a developer as there are no plugins for that out there

frigid ember
raven hound
#

Or make your own :lol:

frigid ember
#

thats what i'm doing

raven hound
#

I'm not really a plugin developer so I have no idea about that

gusty comet
#

@frigid ember does it work?

frigid ember
#

This event throws a nullpoinexeption. and i dont know why

gusty comet
#

Which line

frigid ember
#

tablist = scoreboard.registerNewObjective("htl", "health", "§4❤");

grim halo
#

weewoo_red Uh uh that looks like static abuse weewoo_red

gusty comet
#

scoreboard is null

raven hound
#

Hey uh xirado

gusty comet
#

do Scoreboard = Bukkit.getScoreboardManager.getMainScoreboard

raven hound
#

I'm getting the same session.lock error

gusty comet
#

hey

raven hound
#

even after deleting the session.lock

gusty comet
#

whats the error

raven hound
#

long one here

gusty comet
#

Also yes @frigid ember dont make them static

raven hound
#

?paste

worldly heathBOT
frigid ember
#

what else @gusty comet ?

raven hound
cobalt shoal
#

I've been trying to figure this out for a few hours no with no luck (trying all sorts of stuff incl. NMS); so figured I'd ask in here:
Does anybody know how to apply an NBTTagCompound to a block (such as a spawner or chest) and override the existing NBT on said block? [I know that the NBTTagCompound is correct and fully describes the block, I just can't seem to figure out how to get it onto a block now]

gusty comet
#

make the Scoreboard and Objective only private. If you need to use them somewhere else make a getter

frigid ember
#

k

gusty comet
#

then on the event set Scoreboard to Bukkit.getScoreboardManager().getMainScoreboard()

#

That should work

frigid ember
#

and the tablist?

gusty comet
#

You already set that with registernewobjective

raven hound
gusty comet
#

BUt i never worked with objective so i don't know if this actually shows the health

#

Yeah You still have the session.lock file there. Try enabling "Show hidden files"

grim halo
#

@cobalt shoal You need to get the CraftWorld -> then CraftWorld#getTileEntityAt(x, y, z) -> then add/edit the NPTCompound

frigid ember
#

now its not throwing an error anymore, but it's also not showing the hearts...

gusty comet
#

It's also in the world_nether folder

#

Yes thats what i expected

#

does the /scoreboard command show the objective?

frigid ember
#

one sec

#

yes

#

with /scoreboard objectives list its showing the heart

raven hound
#

Wait I have multiple worlds

#

How do I know which one the error's coming from

frigid ember
gusty comet
#

SkyExit make sure to check if the objective already exists i think with your current setup it will create more and more

#

first line it says world_Nether

#

But i never worked with objectives so i may be wrong. I only worked with Teams before

raven hound
#

I almost deleted my whole world :lol:

#

Alright removed it will inform you

gusty comet
#

also remove it from world_the_end

raven hound
#

Oh alright

gusty comet
#

and any other worlds you have

frigid ember
raven hound
#

I have 10 worlds :lol:

gusty comet
#

I'll test this one sec
@frigid ember

if(objective == null ){
// create it
}else{
objective = scoreboard.getObjective("...");
}
raven hound
#

Crashed but has no error this time

gusty comet
#

If you have multiverse try unloading them

raven hound
#

How do I do that as I can't start my server

gusty comet
#

there is a config in the MV folder

raven hound
#

Just realised I dont have mv

#

I recently deleted all my plugins

#

except 3

gusty comet
#

then they won't load anyways

#

i think

raven hound
#

So what should I do with no error?

#

I'll try starting one more time

gusty comet
#

If it crashes there is some kind of error

frigid ember
#

@gusty comet its there and its appled, but it's not showing up...

raven hound
#

I'll paste a full console log

#

As i'm using a host

#

?paste

worldly heathBOT
gusty comet
#

@gusty comet its there and its appled, but it's not showing up...
@frigid ember Try looking up example objectives

tiny dagger
#

is there a way to send a packet group? 🤔

#

i think i saw it somewhere

#

but i forgot where

#

or was it specific to some packet 🤔

raven hound
frigid ember
#

k

raven hound
#

No idea why my server is crashing

gusty comet
#

remove custom ore generator

#

There is literally an error in the 5th line

#

its a bit more

#

lol

#

20th line

raven hound
#

Well there goes the ore generator :lol:

#

If only I had normal nitro to boost

#

Crashed again.

#

And the plugin just disabled itself and didnt crash the server

gusty comet
#

Yeah there are no other errors because Skipped 38 lines due to rate limit (30/s)

raven hound
#

I'll just submit the log here

gusty comet
#

that's not hastebins fault

#

It's your server

raven hound
#

Yeah i know I meant

#

like the actual log file

gusty comet
#

oh yeah

#

the latest.log

cobalt shoal
#

okay maybe I'm just being stupid here, but I'm not seeing a getTileEntityAt in CraftWorld (or anything that returns ); but if I get a WorldServer I can get a TileEntity; and from there I'm not entirely sure on what function to use since all the ones that take an NBTCompound don't seem to do anything or throw a warning Block entity invalid @ BlockPosition{x=0,y=0,z=0}. My current code is:

WorldServer worldServer = ((CraftWorld) Operator.currentPlayer.getWorld()).getHandle();
TileEntity tileEntity = worldServer.getTileEntity(new BlockPosition(block.getX(), block.getY(), block.getZ()));
tileEntity.load(((CraftBlockEntityState) block).getHandle(), tag);
tileEntity.update();
gusty comet
#

What about "World"?

raven hound
gusty comet
#

Theres still the session.lock

raven hound
#

But I keep deleting it

#

is it a different world this time?

gusty comet
#

world_the_end

raven hound
#

Do I do it for all my worlds?

grim halo
#

@cobalt shoal What version are you on?

gusty comet
#

Yes

cobalt shoal
#

1.16.1 right now

grim halo
#

Doesnt TileEntity have a save(NbtCompound) method there?

#

What are you even trying to do?

raven hound
#

oops

#

Thanks 😄 @gusty comet. My server finally started

cobalt shoal
#

I have an NBTTagCompound that my plugin saved from something like a spawner that I'm trying to apply to a new spawner (or chest - really any tile entity); and the only things I can guarantee are that the block are the same type (spawner and spawner, etc) and the NBT tag fully defines the NBT for the block (since the original block may not exist anymore)
and switching out the load() to save() doesn't seem to do anything (it doesn't apply to the block, but also doesn't throw any errors)

gusty comet
#

lol

#

no prob

grim halo
#

And you dont want to use PersistentDataContainer because...

cobalt shoal
#

I'm evenually going to need to be able to convert the NBT to and from a String to link it into an external API (but I can do that conversion correctly once I figure out how to get the NBTTagCompound onto the block)
rn I'm testing taking the NBT from a spider spawner and trying to apply it to a pig spawner to make it an identical spider spawner; but it's staying as a pig

grim halo
#

You could try it using the BlockData

cobalt shoal
#

some of the stuff that the NBT can contain seems to be well outside what can get stored in the block data (stuff like customized mobs); unless I'm missing something I'll have to use NBT to get everything to match correctly, I think I'm just having a hard time finding the correct set of functions to actually apply the NBT to the block

raven hound
#

Trying to connect to my hosted server but says connecting at first then after a bit says logging in then says timed out or disconnected

grim halo
#

@cobalt shoal And the .save(compound) -> .update() didtn work?

raven hound
#

Trying to connect to my hosted server but says connecting at first then after a bit says logging in then says timed out or disconnected
And in the console says took to long to login

cobalt shoal
#

it didn't throw any errors; but the spawner stayed a default pig spawner (the NBT didn't change at all)

WorldServer worldServer = ((CraftWorld) Operator.currentPlayer.getWorld()).getHandle();
TileEntity tileEntity = worldServer.getTileEntity(new BlockPosition(block.getX(), block.getY(), block.getZ()));
tileEntity.save(tag);
tileEntity.update();```
grim halo
abstract shard
#

does anyone know who to make the spigot server online so you can play with your friends?

raven hound
#

Port forward it.

frigid ember
#

@abstract shard go to cmd, enter ipconfig, copy ur ip (something like 192.168.x.x) enter it in Ur server properties as server IP, then go to 192.168.0.1 (or whatever is ur router ip is) and login via username and password (mostly admin admin) and port forward your ip (192.168.x.x) and enter port 25565 (or whatever port u selected in server.propeties default is 25565) then go to web, search what is my ip and u are good to go!

raven hound
#

Every server i'm trying to join says logging in then disconnected or timed out

#

Please help [ping me]

frigid ember
#

What client are u using?

raven hound
#

Normal java client.

frigid ember
#

restart mc

#

And u nothing changed before?

#

Like configs or whatever

raven hound
#

restart mc
I have multiple times

#

And what do you mean pek

frigid ember
#

Like

#

It also causes very bad internet, try to test ur speed

raven hound
#

My internet is at the max it can be.

frigid ember
raven hound
#

I mean like its good

#

Oof

gusty comet
#

excuse me what the fuck

raven hound
#

Welp reinstall here I come I guess

gusty comet
#

do a speedtest

raven hound
#

Wait xirado should I reinstall

gusty comet
#

do a speedtest first

raven hound
#

alright

kind crow
#

Hi, do you know a plugin that can reduce chunk loading while elytra flying?

gusty comet
#

You want them to fly in the void?

kind crow
#

No, just make one chunk wide trail

raven hound
#

hmm

#

A socket error occurred during the download test. A firewall could be blocking the connection or the server might be having some issues. Please try again later.

gusty comet
#

hmm you can try to code something like this for yourself

#

i think your internet is shite

kind crow
#

hmm you can try to code something like this for yourself
@gusty comet you mean me?

frigid ember
#

When I tell him to do speedtest he tell me he have max....

gusty comet
#

no

raven hound
#

When I tell him to do speedtest he tell me he have max....
I meant it cant be any better

gusty comet
#

try a different speedtest site

raven hound
#

alright

gusty comet
#

or download a steam game to check the speed idk

#

But if even the speedtest doesn't work it's very likely your internet is shit

frigid ember
#

Yes

raven hound
#

Welp i got 2 mbps

frigid ember
#

That's enough for discord chat xd

#

But not Minecraft

gusty comet
#

You should still be able to connect to a Minecraft server tho

#

Oh

#

2 mbps or 2 mb/s?

raven hound
#

mbps

#

2.5

sinful spire
#

2mb/s is not enough for minecraft?

gusty comet
#

hmm thats crap

sinful spire
#

im running on like 1.2 maybe

gusty comet
#

I still think it's possible

raven hound
#

I connected not too long ago to hypixel

frigid ember
#

What do you mean

#

I have 150 Mbps internet

gusty comet
#

just tried. its between 1 and 2,5 mbit

raven hound
#

Yeah so why isnt it working for me

gusty comet
#

maybe your ping is too high

frigid ember
#

Yes

#

As I said

#

It also causes ping

#

Just cmd

raven hound
#

I have 150 Mbps internet
Must have the best internet

#

:lol:

frigid ember
#

And do ping -serverip-

#

Hey

raven hound
#

Where do I do that

#

and hey again

frigid ember
#

Cmd

raven hound
#

I'm using a macbook

frigid ember
#

Looool

#

Shitty apple user

raven hound
#

Bruh

frigid ember
#

I don't want to help u anymore

raven hound
#

Racism

frigid ember
#

Ik xd

smoky vigil
#

@raven hound open terminal by navigating to /applications/utilities, in the terminal type ping (serverip)

raven hound
#

😧

gusty comet
#

Shitty apple user
@frigid ember "Haha apple is gay because it's expensive"

raven hound
#

Alright

#

Lmao

frigid ember
#

Nope

#

It's gay because it's high prices for bad products

raven hound
#

People have other opinions

frigid ember
#

Products that are not corresponding with prize

bronze quartz
#

Hello, is there a way, with a skript or with world guard to make that, if we enter a place, if we have a boat we are teleported to another place and if we don't we aren't ?

frigid ember
#

@bronze quartz join skunity

bronze quartz
#

do you have the discord link ?

gusty comet
#

It's gay because it's high prices for bad products
@frigid ember "I call something gay because i think it's bad"

#

That's kinda homophobe

#

Stop your ads

raven hound
#

If you don't like apple

frigid ember
#

@bronze quartz dm

raven hound
#

Does not mean everyone does not lik

bronze quartz
#

thx 🙂

gusty comet
#

If you don't like Apple don't buy it but then don't rant about it

#

It's that simple

frigid ember
#

I had apple

#

And it's shit

smoky vigil
#

good for you

#

keep it to yourself, no one really cares

gusty comet
untold sky
#

xDD

#

Hello 😄

raven hound
#

Hello :)

gusty comet
#

hey

untold sky
#

How are you?

rustic prism
#

One message removed from a suspended account.

raven hound
#

🤣

frigid ember
#

Yes

#

And you see Ur latency

#

And if it's higher than 700 u are in shits

#

And problem fixed

raven hound
#

why is it counting

#

from 1 and up

gusty comet
#

700 is very high

frigid ember
#

Yes

raven hound
#

Um its counting uo

#

up

frigid ember
#

Xd

#

I don't even have Apple MacBook

#

So idk

raven hound
#

well at the start it said

#

56 databytes

frigid ember
#

Idk

raven hound
#

and it keeps saying Request timeout for icmp_seq 115

gusty comet
#

send the screenshot

raven hound
#

but the number changes

gusty comet
#

of cmd

#

thats how it should look like

raven hound
#

just doesnt stop

#

It's at 200 now

gusty comet
#

yep it timed out

#

your internet is shit

#

lol

frigid ember
#

Yes

raven hound
#

Alright

frigid ember
#

That's timed out

raven hound
#

well there goes my minecraft server plans

ancient ridge
#

pinging from cmd doesn't give you the actual ping when you're connected to their server afaik, they have proxies everywhere. Cmd tells me ~13ms but I actually get nearer 120ms

gusty comet
#

or just get a better internet lol

ancient ridge
#

Hypixel's minecraft servers are based in the US

rustic prism
#

One message removed from a suspended account.

frigid ember
#

Spigot plugin for linking chat between servers?

#

and best spigot plugin for land claiming that isn't easy to abuse?

gusty comet
#

Spigot plugin for linking chat between servers?
@frigid ember
If u zse bungeecord you can easily code it yozrself

warm stirrup
#

hey there im kind of new and i have a question about versioning. i tried searching for this on google and in this server but i couldn't find exactly what i was looking for.

can i set 1.16.1 spigot as the dependency and specify a lower api-version and have it work? i'm trying to make a plugin compatible with 1.14 and above and it involves saving Materials and getting Materials using Material.getMaterial(String) now obviously you can't get a Material of 1.16 specific blocks if you're using a 1.14 package. How should I go about implementing the desired functionality?

#

you can decompile .class files in intellij

#

so

#

(if you try to open it it automatically decompiles and opens a viewer)

wraith thicket
#

@warm stirrup You can simply use the lowest version you need as the api-version

warm stirrup
#

JAR files are Java ARchives so you can essentially rename it to ZIP and extract it lol

#

then there's class files within that

wraith thicket
#

You don't need to rename it to extract it

warm stirrup
#

meh if ur just usin windows explorer /shrug

wraith thicket
#

I don't use Windows

warm stirrup
#

ah we cant just extract whatever

wraith thicket
#

You can

#

Just need to use another program/app

#

That'll probably work

warm stirrup
#

yeah that works ^

anyway to clarify, i can use a 1.16 package and specify a lower api-version? thanks

wraith thicket
#

And it's not "extracting whatever". Changing its extension won't change the file. The file will still be exactly the same. You're just changing what it's named.

warm stirrup
#

yep windows is just a bit picky about the actions you can use depending on the extension :p