#help-development
1 messages · Page 2285 of 1
Yeah that’s the one
1.8.8-R0.1-SNAPSHOT
oh didnt realize the forums had that in it
why does maven add snapshot bydefault
bwaha
gradle does too
its just standard
how do i downlaod it lmao
i mean
you dont
what if it aint a snapshot
you change the import in gradle/maven
nice
yo yotub, scroll bars in comments?
browser render error
happens sometimes very rarely
haha noobs i never use a browser
i m running 69million pixels in a terminal window which shows me stuff same as a normal broser 😎 (yes my wife, life and kids left me while i was making that)
yes....
thats kinda what we ewre saying lmfao
nice
reload maven
top right
click maven word
press refresh its 2 cricular arrows
or a M with 2 circular arrows might be hovering in top right
both ways work
typically after you edit a maven file that button pops up in top right
i dont use maven or ide show
nice
Now you get to use strings
like this?
No idea
1.8 moment
xd

maayyybe
Hello guys !
Someone know why i have that error ?
Unable to make field private final java.lang.Object java.util.Optional.value accessible
when if (this.spawnerData.exists()) { String json = spawnerSerialization.serialize(listSpawners); FileUtils.saveFile(spawnerData,json); } else { try { FileUtils.createFile(this.spawnerData); String json = spawnerSerialization.serialize(listSpawners); FileUtils.saveFile(spawnerData,json); } catch (IOException e) { throw new RuntimeException(e); } }
Java version : 17
Paper version : 1.19
I already search in google (Maybe badly) but i found nothing
i will try it
Is this runtime error or compile time? What line is giving the error?
RUntime error
WHen i close or reload my server
Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.
I don’t think gson likes serializing optionals
Optionals ?
I just want serialise an arraylist of "CustomSpawner"
this.gson = new GsonBuilder()
.setPrettyPrinting()
.serializeNulls()
.disableHtmlEscaping()
.create();
}
public String serialize(ArrayList<CustomSpawner> listSpawners) {
return gson.toJson(listSpawners);
}
public ArrayList<CustomSpawner> deserialize(String json) {
return gson.fromJson(json,ArrayList.class);
}```
And what does CustomSpawner contain
Ohhh ok
He didn't like final variables ?
like that ``private static final int[] upgradeTimePrice = new int[]{3500,17500,82000,410000};`
Static variables won’t be serialized anyway
Hmmm ok that why
I imagine you have a location or something in there
whats the event name for a server query?
Gson cannot serialize a location without a custom adapter
ServerListPingEvent is the event for when a client pings it
i thought that was players only, not for the query function
but i'll give it a shot thanks
oh, idk if that gets called for other stuff outside the client pinging
yeah well there's functionally to query minecraft server information but its very undocumented and i don't know if theres an api implementation of that event at all 😢
was making a discord bot update stuff when the server went into maintenance mode based off an motd, guess i'm gonna have to like make an api to effectively store a boolean lmfao
player.getNearbyEntities(2, 2, 2).stream().filter(entity -> entity instanceof LivingEntity).map(livingEntity -> EntitySet.add((LivingEntity) livingEntity));
does anyone know why this code is not working
it keeps giving me a cast error when i checked for a livingentity
Why not just collect it to a set
because i need to access it in another method
so guys i kinda need help with some insane math
I got a button, and I want to check if the blocks around it are leaves
so, when a button is LEFT clicked, it would check if its in a hollow cube of leaves (the button is at center)
and because EntitySet is a class variable
Anyone aware of anything Like this that is still maintained? https://github.com/Grinderwolf/Slime-World-Manager
"insane math" 😄
Simple math different week
How is anyone going to click it if it is surrounded?
Simple nested for loop from -1 to +1
If all 3 values are 0 you skip that block, as that’s the button
just for (BlockFace face: Blockface.values()) {
That too
for me ;(
checks a cube
does it also check if its hollow
That will include BlockFace.SELF tho
yes
not hard to ignore self
whats self
teh origin block
so that gives every face of that X block
and then adding 1 or -1 to it
nice thats cool
including diagonals
ty
no need for +-1
its the block next to the block or the 2nd block
how many blocks do you want to check? all of them in a cube?
public int getNumberOfMatchingBlocks(Block center, int radius, Predicate<Block> selector) {
int counter = 0;
for(int x = -radius; x <= radius; x++) {
for(int y = -radius; y <= radius; y++) {
for(int z = -radius; z <= radius; z++) {
if(selector.test(center.getRelative(x, y, z))) {
counter++;
}
}
}
}
return counter;
}
public int getLeaves(Block center, int radius) {
return getNumberOfMatchingBlocks(center, radius, block -> Tag.LEAVES.isTagged(block.getType()));
}
public int getSurroundingLeaves(Block center) {
return getLeaves(center, 1);
}
a 3x3 cube
thanks for spoonfeeding but ill try to code that myself
not meaning to sound rude here
How can I get level-name from the server.properteis. Is there any provided method or should I use File
The most important tools are the nested loop:
for(int x = -radius; x <= radius; x++) {
for(int y = -radius; y <= radius; y++) {
for(int z = -radius; z <= radius; z++) {
}
}
}
In combination with Block#getRelative(int, int, int)
oo
The level name is the name of the primary world.
So Bukkit.getWorlds().get(0).getName()
public boolean checkLeaves(Location button) {
Block block = button.getBlock();
for (BlockFace face: Blockface.values()) {
if (face == Blockface.SELF) continue;
if (!Tag.LEAVES.isTagged(block.getRelative(face).getType()) return false;
}
return true;
}```
I dont think Location has getRelative, does it?
typed from memory so exccuse any minor inaccuracies
I see
get Block
returns it level name when the world is unloaded?
fixed 😉
You cant unload the primary world
I mean, when I do it in onLoad method, is then world loaded?
No, not unless its a reload
No then the world is not loaded and you cant get the name this way
Show the code where you actually create the world too pls
any errors?
yes XD
Plugin enable problem!
Error:
Error occurred while enabling Buildserver v1.0-SNAPSHOT (Is it up to date?)
java.lang.NullPointerException
at buildserver.main.main.onEnable(main.java:33) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.s(MinecraftServer.java:414) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.k(MinecraftServer.java:378) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.a(MinecraftServer.java:333) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:263) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:525) [server.jar:git-Spigot-db6de12-18fbb24]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
Solutions
Remove the plugin 'Buildserver'
Plugin enable problem!
Error:
Error occurred while enabling Buildserver v1.0-SNAPSHOT (Is it up to date?)
java.lang.NullPointerException
at buildserver.main.main.onEnable(main.java:33) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.reload(CraftServer.java:741) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.Bukkit.reload(Bukkit.java:535) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:25) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [server.jar:git-Spigot-db6de12-18fbb24]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_212]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_212]
at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [server.jar:git-Spigot-db6de12-18fbb24]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
Solutions
Remove the plugin 'Buildserver'
Plugin enable problem!
Error:
Error occurred while enabling Buildserver v1.0-SNAPSHOT (Is it up to date?)
java.lang.NullPointerException
at buildserver.main.main.onEnable(main.java:33) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.reload(CraftServer.java:741) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.Bukkit.reload(Bukkit.java:535) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:25) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [server.jar:git-Spigot-db6de12-18fbb24]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_212]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_212]
at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [server.jar:git-Spigot-db6de12-18fbb24]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
Solutions
Remove the plugin 'Buildserver'
Plugin enable problem!
Error:
Error occurred while enabling Buildserver v1.0-SNAPSHOT (Is it up to date?)
java.lang.NullPointerException
at buildserver.main.main.onEnable(main.java:33) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.reload(CraftServer.java:741) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.Bukkit.reload(Bukkit.java:535) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:25) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [server.jar:git-Spigot-db6de12-18fbb24]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_212]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_212]
at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [server.jar:git-Spigot-db6de12-18fbb24]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
Solutions
Remove the plugin 'Buildserver'
Plugin enable problem!
Error:
Error occurred while enabling Buildserver v1.0-SNAPSHOT (Is it up to date?)
java.lang.NullPointerException
at buildserver.main.main.onEnable(main.java:33) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.reload(CraftServer.java:741) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.Bukkit.reload(Bukkit.java:535) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:25) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [server.jar:git-Spigot-db6de12-18fbb24]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_212]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_212]
at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [server.jar:git-Spigot-db6de12-18fbb24]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
Solutions
Remove the plugin 'Buildserver'
Plugin enable problem!
Error:
Error occurred while enabling Buildserver v1.0-SNAPSHOT (Is it up to date?)
java.lang.NullPointerException
at buildserver.main.main.onEnable(main.java:33) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.reload(CraftServer.java:741) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.Bukkit.reload(Bukkit.java:535) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:25) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [server.jar:git-Spigot-db6de12-18fbb24]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_212]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_212]
at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [server.jar:git-Spigot-db6de12-18fbb24]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
Solutions
Remove the plugin 'Buildserver'
Plugin enable problem!
Error:
Error occurred while enabling Buildserver v1.0-SNAPSHOT (Is it up to date?)
java.lang.NullPointerException
at buildserver.main.main.onEnable(main.java:33) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.reload(CraftServer.java:741) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.Bukkit.reload(Bukkit.java:535) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:25) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [server.jar:git-Spigot-db6de12-18fbb24]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_212]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_212]
at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [server.jar:git-Spigot-db6de12-18fbb24]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
Solutions
Remove the plugin 'Buildserver'
Plugin enable problem!
Error:
Error occurred while enabling Buildserver v1.0-SNAPSHOT (Is it up to date?)
java.lang.NullPointerException
at buildserver.main.main.onEnable(main.java:33) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.reload(CraftServer.java:741) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.Bukkit.reload(Bukkit.java:535) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:25) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [server.jar:git-Spigot-db6de12-18fbb24]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_212]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_212]
at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [server.jar:git-Spigot-db6de12-18fbb24]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
Solutions
Remove the plugin 'Buildserver'
Plugin enable problem!
Error:
Error occurred while enabling Buildserver v1.0-SNAPSHOT (Is it up to date?)
java.lang.NullPointerException
at buildserver.main.main.onEnable(main.java:33) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.reload(CraftServer.java:741) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.Bukkit.reload(Bukkit.java:535) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:25) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [server.jar:git-Spigot-db6de12-18fbb24]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_212]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_212]
at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [server.jar:git-Spigot-db6de12-18fbb24]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
Solutions
Remove the plugin 'Buildserver'
Plugin enable problem!
Error:
Error occurred while enabling Buildserver v1.0-SNAPSHOT (Is it up to date?)
java.lang.NullPointerException
at buildserver.main.main.onEnable(main.java:33) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.reload(CraftServer.java:741) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.Bukkit.reload(Bukkit.java:535) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:25) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [server.jar:git-Spigot-db6de12-18fbb24]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_212]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_212]
at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [server.jar:git-Spigot-db6de12-18fbb24]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
Solutions
Remove the plugin 'Buildserver'
Plugin enable problem!
Error:
Error occurred while enabling Buildserver v1.0-SNAPSHOT (Is it up to date?)
java.lang.NullPointerException
at buildserver.main.main.onEnable(main.java:33) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.reload(CraftServer.java:741) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.Bukkit.reload(Bukkit.java:535) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:25) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [server.jar:git-Spigot-db6de12-18fbb24]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_212]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_212]
at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [server.jar:git-Spigot-db6de12-18fbb24]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
Solutions
Remove the plugin 'Buildserver'
Plugin enable problem!
Error:
Error occurred while enabling Buildserver v1.0-SNAPSHOT (Is it up to date?)
java.lang.NullPointerException
at buildserver.main.main.onEnable(main.java:33) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.reload(CraftServer.java:741) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.Bukkit.reload(Bukkit.java:535) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:25) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [server.jar:git-Spigot-db6de12-18fbb24]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_212]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_212]
at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [server.jar:git-Spigot-db6de12-18fbb24]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
Solutions
Remove the plugin 'Buildserver'
XDDDD
there
well first of all, do not do that XD
xd
can you paste on ?paste
wow...
i dont know how else
?paste
there
1.8 so im out for this part
!paste
? not !
Ah the issue is you're missing a 1 in front of the 8 in your 1.8 dependency
. Also the .8 is supposed to be a 2. 1.18.2 
Did somebody say 1.8?
On enable line 33
at buildserver.main.main.onEnable(main.java:33) ~[?:?]
Tbh most 1.8 servers are usually DOA anyways.
As long as ur getting paid you shouldn't care though
That’s tough bro
"make sure you've properly registered your command in the plugin.yml and it's reflected in your jar"
is iit possible that you write your command in the main class?
you can write your commands in the main class, yes
yes but as it looks he did everithing in main class
it's just less unorganized and not recommenced
Should you though? 
absolutely not
because that can related to those kinda error
Did you register the command in the plugin.yml?
i tried many times to make everything in a own file but for whatever reason i cant register world comand over and over again bc i only have /world with arguments after that
can you send your plugin.yml
did u do this? @azure hawk
yes wait
1.18 best version
name: Buildserver
version: '${project.version}'
main: buildserver.main.main
api-version: 1.19
authors: [ geskillter ]
description: Das Plugin für den Buildserver von PlayUltra.de
commands:
world:
aliases:
- w
- map
- m
1.19.1 best technoblade never dies edition
It has reporting enabled by default though
yeah and global bans
Do you not see the issue
There you go
No
thanks
F
no?`xd
It's obviously because you're registering the wrong command take a look again
I only make the 1.8 joke at the start of the Convo. I'm being serious. Take a look at the command you register and the command you attempt to get
Well glad we fixed the issue.
yup
btw idk if youre the onlydev but pls remove sound from the compas on your network
thats anonying as hell
and why does'nt copy the world. It should look like (img3) but instead it laggs for 10 seconds and i created a normal world
just one question why dont you just use multiverse core?
i wanna make my own
but like in my style
its for my buildserver
World template = getServer().getWorld("schematic"); WorldCreator creator = new WorldCreator("tmpWorld"); creator.copy(template); World tmp = creator.createWorld();
try if that maby works for you
wait
nvm
forget it
ok
but you could try coping the files with code and then load irt
what files
the world folder Void
oh
duplicatet it and and rename
thats way to hard
and load
private static void copyFileStructure(File source, File target){
try {
ArrayList<String> ignore = new ArrayList<>(Arrays.asList("uid.dat", "session.lock"));
if(!ignore.contains(source.getName())) {
if(source.isDirectory()) {
if(!target.exists())
if (!target.mkdirs())
throw new IOException("Couldn't create world directory!");
String files[] = source.list();
for (String file : files) {
File srcFile = new File(source, file);
File destFile = new File(target, file);
copyFileStructure(srcFile, destFile);
}
} else {
InputStream in = new FileInputStream(source);
OutputStream out = new FileOutputStream(target);
byte[] buffer = new byte[1024];
int length;
while ((length = in.read(buffer)) > 0)
out.write(buffer, 0, length);
in.close();
out.close();
}
}
} catch (IOException e) {
throw new RuntimeException(e);
}
}
but i wanna make a comannd like /world copy NAME and then it creates a copy of that world
and thats to difficult for me
and if bukkit.world.copy doesnt work why did bukkit make it in the first place then
lol
the world has a copy method ? did I miss something ?
idk but you can just do
File template = new File("Void");
File copyFile = new File(worldName);
copyFileStructure(template, copyFiles);
you get what i mean

k
i will try
that copy file structure is a bit overkill ngl
would be a lot easier to just copy the entire thing and actively remove the files you don't want
yes
thats what im saying
working is working isnt iit
yeh
k
xd
but i dont understand anything from it LMAO
like this?
yes
yeah that whole methode is the creaton
means you dont need to write the other stuff
but make a copy of the orgianal code if it wont work
ok
then you still have your old code
k
but not sure if you need to load the map too
whats the 16. line
?paste the error as well
146*
wait
oh dear god that class
146
bruh
ok
wait
there was " " at the end
i deleted it
hopefully it works now
nope
still an error
May I ask if you actually load the worlds?
you mean like this?
Because getWorld does return null if there’s no world with the given name yet loaded
does the folder exits?
new WorldCreator(newWorldName).createWorld();
^
add that after the copyfile
Probably wanna do that in as early as onLoad
where should i paste that
before line 154?
yes
now you can ungray it
np
THANK YOU SOOOOO MUCH
I WAS SEARCHING FOR HELP FOR LIKE 4 DAYS HAHAH
THANNK YOU
<3
like I said np
:)
but load the maps onEnable to
i already do
:D
and do you know how to make it so that when i wanna delete the world a message comes with like "Do you really wanna delete this world (Y/N)" and then you have to type Y or N
and if its Y the world will get deleted
and N well no
xd
oh ok
but yes you can check it with asyncplayerchatevent
if (args[0].equalsIgnoreCase("delete") || args[0].equalsIgnoreCase("del") || args[0].equalsIgnoreCase("remove")) {
if (args.length == 1) {
player.sendMessage(prefix + "§cBitte gib einen Weltnamen an!");
} else if (args.length == 2) {
String worldName = args[1];
if (MAPS.contains(worldName)) {
World delete = Bukkit.getWorld(worldName);
File deleteFolder = new File(String.valueOf(delete.getWorldFolder()));
unloadWorld(delete, deleteFolder);
MAPS.remove(worldName);
saveConfig();
player.sendMessage(prefix + "Die Welt §e" + worldName + " §7wurde erfolgreich §cgelöscht§7!");
} else {
player.sendMessage(prefix + "§cDiese Welt existiert nicht!");
}
return false;
}}
Thats my deletion process
And im german btw if you wonder why the messages are so cursed
xd
german too
jaman
👀
but you need to type englisch
excactly
think of it as free English practice 
bonjour
nah englisch in school is enought
ca va
un due trois quatre
Je ne comprends pas cela
thats literly 1-4
je ne pas la francais, aber bitte sprich weiter
but i wanred to troll him
wir dürfen hier keine anderen sprachen sprechen
obwohl wirs gerne dürften
xd
those are lyrics
cool
hes 2009 he dont knows that og stuff
How can i make it so that when i type /world list it gives me a list with \n and 1., 2., 3., and so on and if i click on the name it will execute the command /world join "NAME"
override TabCompletor#onTabcOmplete
wha~
Implement TabExecutor not CommandExecutor
same thing
cuz it has the method you need to override
returning a stringlist with tab complete options
based on the args length
k
ok*
but how do i do it now
how do i do it now
im gonna look a vid
sounds like my cat
meow~
no


sounds like a you-problem
DOA servers be like
I'm new to paper and plugin development in general, so if this is a stupid question sorry. I was wondering how to go about making custom items and recipes in 1.19.
SpigotMC maintains the Spigot server. If you are using a fork of Spigot (such as Paper, Airplane, Purpur, or other derivative works), you should seek support in the appropriate Discord servers.
my plugin pauses the whole server whilst trying to establish a socket connection with another server. any idea?
synchronous coms.
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
my friend who got me into plugin dev said that they are basically the same, my bad
thats what you can do with spigot/paper
Kinda but not really. Here we support Spigot which is the core of almost all Servers.
Bugs/issues arise from the changes different forks make and they also make changes to the API. Everything which runs on Spigot will run on Paper, but not the other way around.
i think its a simple question. yall have any assumptions?
thanks for explaining
how do I create an inventory with a title that would work like the TextComponent stuff new TranslatableText("minecraft:chest")?
I did comment. You are making a synchronous coms request
If you don;t want to lock the server you have to handle it Async
i did think of that too but how do i do that? i only have basic knowledge about java. multi threading isnt safe according to someone
multi threading like that no
but theres a task scheduler
see Bukkit#getScheduler
declaration: package: org.bukkit.scheduler, interface: BukkitScheduler
Look up Async Tasks ^ or CompletableFutures
But you still have to be careful as you are correct multithreading is not safe.
It's usually not safe to access Bukkit API. If you're connecting to a web socket, it's perfectly safe lol
In fact, it's strongly advised
Make use of the scheduler (linked above), and if you want to perform some task after it's done, make use of the CompletableFuture API
?
Are there spigot methods for isMeat() and getNutrition()? Currently I'm having to use this:
public boolean isMeat(ItemStack item) {
net.minecraft.world.item.ItemStack nms = CraftItemStack.asNMSCopy(item);
return nms.getItem().isEdible() && nms.getItem().getFoodProperties().isMeat();
}
public int getNutrition(ItemStack item) {
net.minecraft.world.item.ItemStack nms = CraftItemStack.asNMSCopy(item);
return nms.getItem().getFoodProperties().getNutrition();
}
Context: I'm rewriting vanilla wolf ai
Are you asking if there are any Bukkit methods for it?
yes
No. I PR'd API for it a short while ago but it also involved completely demolishing the Material API lol. So not presently, though I'd imagine once we migrate from a Material enum to an interface, it's much easier for us to expose in the future
Material is becoming an interface???
Block states are already interfaces ;p
Doesn't mean you can implement it. Just means we can implement NMS methods more easily in CraftBukkit
Oh
Right now, we can't easily call those in an enum because it has to go into Bukkit
(which, for obvious reasons, doesn't have access to NMS)
By "implement it" you mean allow users to create new blockstates?
No
You can't implement Bukkit interfaces
Most everything in Bukkit is an interface. Block. Entity (and derivatives), BlockState, BlockData, World, etc.
It's implemented by CraftBukkit
Correct assumption
Nah, it's just useless
Creative have their own events for many things
my codes in InventoryClickEvent works only in survival gamemode
like InventoryClickEvent?
can i use EventPriority and ignoreCanceled at same time?
yes
how
,
ow thanks
How can I sort tablist?
Ehm. The tab list is already alphabetically sorted
Yes
BukkitScheduler scheduler = Bukkit.getScheduler();
scheduler.runTaskLater(plugin, () -> {
Bukkit.broadcastMessage("Mooooo!");
}, 20L * 30L /*<-- the delay */);
what is plugin in the code?
reference to your main class
The JavaPlugin instance of your plugin
Eh. I wouldnt phrase it this way...
i didnt get it im sorry
You have one instance of your JavaPlugin which is provided by the classloader.
This instance is accessible in your onEnable() as "this"
Usually if you start out you go for a static getter in your JavaPlugin class.
Assign a permission to the command
Anyone without that permission won't be able to tab complete it. And op players obviously have all permissions
commands:
mycommand:
...
permission: your.command.permission```
1s
how do i access it in other methods?
?di
Guide to dependency injection: https://www.spigotmc.org/wiki/using-dependency-injection/
or static getters of the instance
set in the constructor, onLoad or onEnable
Either by putting it in a static variable and writing a getter or by passing it around in your constructors
arent you just getting the team and not returing it?
huh?
why PlayerInteractEvent is not working for RIGHT_CLICK_AIR ?
I dont think so bc its a switch statement?
try printing the team the players in
kk
It is. But only if you have an ItemStack in your hand. The player doesnt send a packet with nothing in his hands.
i have a item in my hand
What version
might also be better to map ranks to a team using a hashmap
Define what you mean by "not working"
when you try to wear a armor while clicking on a block
canceles the event
but when you wear a armor by right clicking on the air
does not block that
maby because of ignored cancelled?
ignores cancelled means that the method will not be called if someone else cancelled the event before you.
But your prio is lowest which means the probability someone else cancelled the event before is quite slim.
This sounds quite odd to be honest. Might be a 1.12 bug that will never be resolved.
Event is registered?
-_- yes
I'd log the information you're looking for
sadge, thanks
every interact event log the material. That'd let you know what's going on.
the interact event does not run when i right or left click on the air
just runs when i click blocks
is the EntitySpawnEvent called for players?
No. That would be PlayerJoinEvent lol
lol
I use that for a gun system
Would it be safe to use in a world with like 2k entities?
Just look at the NMS internals
But would it be safe to use in a gun system with 100 players shooting in a world with 2k entities?
with good server specs
I too use this for a gun system, but make sure to apply workload distribution
anything is possible
this should make it solid
This would probably induce a lag like feeling for the player because they dont get instant feedback from their shots
true
I only use that for the gun particles
But I also don't expect thousands of players shooting at once
Generally ray tracing is okish when it comes to performance. Its not like all 100 players are gonna shoot at once.
that doesn't really say much about the cpu
other than it has 8 vcores
probably a vps honestly
Is it possible for a player to be apart of two scoreboard teams?
damn
Hey, do anyone know if its possible to make it so you can use a Riptide trident outside water. And if so, how?
when it is raining?
True, but wanted it to still be able to do it when its sunny
Am i able to like trick the trident its raining or something idk
maybe look at the nms code of riptide
Hey,
I'm currently working on a custom command system for my plugin. (To make it easier for me to add commands to my plugin and have some special features)
Is it fine if I execute these commands with Reflections?
Or should I use the more complicated LambdaMetafactory to achieve better speed?
eh i woulnt use reflection for executing commands
I would rewrite the whole method but remove the if
but I think the client would not understand
So... LambdaMetafactory it is?
LambdaMetafactory 🤔
honestly not sure what that is lmfao
never heard about it
LambdaMetafactory creates a synthetic factory class that then is used to create target interface
Error occurred while enabling DeepSMP_plugin v1.0-SNAPSHOT (Is it up to date?)
java.lang.IllegalArgumentException: Crafting rows should be 1, 2, or 3 characters, not [4]
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:193) ~[guava-31.0.1-jre.jar:?]
at org.bukkit.inventory.ShapedRecipe.shape(ShapedRecipe.java:70) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?]
at deepsmp_plugin.deepsmp_plugin.Main.onEnable(Main.java:170) ~[DeepSMP_plugin-1.0-SNAPSHOT.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:536) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_19_R1.CraftServer.enablePlugin(CraftServer.java:563) ~[paper-1.19.jar:git-Paper-58]
at org.bukkit.craftbukkit.v1_19_R1.CraftServer.enablePlugins(CraftServer.java:477) ~[paper-1.19.jar:git-Paper-58]
at org.bukkit.craftbukkit.v1_19_R1.CraftServer.reload(CraftServer.java:1018) ~[paper-1.19.jar:git-Paper-58]
at org.bukkit.Bukkit.reload(Bukkit.java:909) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?]
the code : https://paste.md-5.net/olovimitos.java
java.lang.IllegalArgumentException: Crafting rows should be 1, 2, or 3 characters, not [4]
Im guessing Thats a no then. Im still kinda new to developing 😄
wdym ?
To explain it completely wrong, you can basically use this to invoke methods like Reflections can, but almost as fast as direct access, but with limitations
thats your error
im not sure why you would need that though
what does it means with java.lang.IllegalArgumentException: Crafting rows should be 1, 2, or 3 characters, not [4]
there are 3 rows in a crafting tabled but you set some item in 4 (not existing) row
Because it's literally Impossible to use direct access with the way I want my system to work 😅
can u show me witch one i set 4 ?
well thats probably your best option then
nha, you just need to rewrite a nms method 🤡
wait a sec
it says at line 170 in main
but thats on whole class not on your paste
yeah in the paste
but there are imports and package declarion in normal
paste the whole class
?paste
yes
ok
the Main class : https://paste.md-5.net/wilutifiko.java
The EntityKill class : https://paste.md-5.net/fexeqiteja.java
@peak depot
yo, im trying to modify a entity ai to avoid a certain region. anyone got something similar finished that i can rewrite?
what was wrong
2 spaces between the N S
makes sense
ok thx
how can I remove Players from this List:
List<Player> list = Bukkit.getOnlinePlayers().stream().collect(Collectors.toList());
Why do you need to
And why are you copying a list like that
Just do new ArrayList<>(sourceList)
Im trying to make a Bedwars plugin and I want to remove all the players that were already added to the Game
That doesn't sound like a good approach
List<Player> list = Bukkit.getOnlinePlayers(); list.remove(player); ?
how do i start post things on spigotmc.org
doesnt work
error?
Alright, im working with a custom enchants plugin and managed to get all of the level fusing with books and anvils to work perfectly fine, now the last thing i would like to do is to make the enchantment available inside of an enchanting table.
#org.bukkit.event.enchantment.PrepareItemEnchantEvent doesnt have a way to set the offers but does give a way to retrieve the current ones.
should i just override the fields of one of the available offers with a random chance or is there a better way of doing it?
I trying to port one mod from fabric to spigot plugin. But i need set player nbt tag "BlastJumping" so client side can properly do some stuff. So, how i can add/change player nbt tag
when swapping servers on a self-written proxy, I get stuck on the "loading terrain" screen untill I press escape, does anyone know what would fix this/if there is a clientbound packet I could send to update the client connection?
You cannot set the offers to non-vanilla enchants
In my plugin I always add it as a bonus (random) enchantment
so you get around the fact that it can't be displayed by making it not the main enchant?
what java version do i use if i want the plugin to work for all versions? or is it harder than just using a specific java version to support all minecraft versions?
Yeah
do you use #PrepareItemEnchantEvent or #EnchantItemEvent ?
don't answer that, i found it x)
thanks for the insight
trying to add the spigot1.19 external jar to my first project so I can make helloworld. But it just does nothing. according to #general I'm using the right version of java. Help a noob out?
?bootstrap
Bootstrap Jar
The main spigot-1.18.jar is now a bootstrap jar which contains all libraries. You cannot directly depend on this jar. You should depend on Spigot/Spigot-API/target/spigot-api-1.18-R0.1-SNAPSHOT-shaded.jar, or the entire contents of the bundler directory from your server, or use a dependency manager such as Maven or Gradle to handle this automatically.
Please read the release notes for further information: https://www.spigotmc.org/threads/9-years-of-spigotmc-spigot-bungeecord-1-18-1-18-1-release.534760/#post-4305163
Highly recommend using Maven or Gradle
ah yes, the chinese language
i won't use this, i already made my own nice and clean system
Yeah I was just supplying for reference
thanks
apparently there is a plugin on intellij that just does all this stuff for me. I have no idea what I'm reading in this link or what it means for my problem. Just going to click the handy little "spigot plugin" button on a different IDE and life is good.
Yeah that will generate a maven project for you
gotcha, I'm happy to be blissfully unaware of what's going on behind the scenes so that works for me
I have invested about 90 minutes of my time now and it has all culminated in this moment - I can finally "hello world"
absolutely a gamer moment
Well things will get easier so keep at it :)
Hi! I have a GamePlayer object which just allows me to do different things with a player. I have an Enum called PlayerStat that contains all possible player stats in my game. I want to assign a different value to each GamePlayer for each PlayerStat (ex. Player1 HEALTH = 20 and Player2 HEALTH = 15). What is the best way to do this and how can I access/modify them?
Anyone know why it's red?
with spigot-api it works, but not with spigot (which you need for packet stuff if i remember correctly)
did u run buildtools with --remapped
Before --rev or after %Input%
Looks like invalid packet size
In english now ;d
And what couses that?
Your code
Its just rcon
I typed extra port ip and password that i set
I think i did all things correctly
And whats wrong?
Correct me if im wrong
Isnt the RCON_IP the address that you will bind to
If so, your public IP should not go there
it should be either 127.0.0.1 (local) or 0.0.0.0 (public)
any reason you woulden't run a plugin for it?
It doesn't have plugin for it
Sounds like a shitty system, what one is it?
Its my local country system that has payment gateway thru local shops.
ah
And thats why i use it
err.. no?
How are you knowing it is null?
protected final Goal meleeGoal;
System.out.println(meleeGoal); prints null
thats not the issue Cooleg
well idk then I'm used to final meaning final
it would throw an exception if he tried to doing that if not in a constructor
are you getting it saying null from running registerGoals or the constructor one?
well I'm just dumb then
it would help with more code being shown, rather than what seems to be cherrypicked
registerGoals()
show the code where you are running this
its in nms
protected Mob(EntityType<? extends Mob> entitytypes, Level world) {
super(entitytypes, world);
this.handItems = NonNullList.withSize(2, ItemStack.EMPTY);
this.handDropChances = new float[2];
this.armorItems = NonNullList.withSize(4, ItemStack.EMPTY);
this.armorDropChances = new float[4];
this.pathfindingMalus = Maps.newEnumMap(BlockPathTypes.class);
this.restrictCenter = BlockPos.ZERO;
this.restrictRadius = -1.0F;
this.goalSelector = new GoalSelector(world.getProfilerSupplier());
this.targetSelector = new GoalSelector(world.getProfilerSupplier());
this.lookControl = new LookControl(this);
this.moveControl = new MoveControl(this);
this.jumpControl = new JumpControl(this);
this.bodyRotationControl = this.createBodyControl();
this.navigation = this.createNavigation(world);
this.sensing = new Sensing(this);
Arrays.fill(this.armorDropChances, 0.085F);
Arrays.fill(this.handDropChances, 0.085F);
if (world != null && !world.isClientSide) {
this.registerGoals();
}
}```
(at the bottom there)
MyEntity is a child class of Mob
from what you've shown, it seems to be you're running registerGoals prior to the constructor initializing
thats the only way I could see it being null
yea thats what im thinking too, but stacktrace says otherwise
Could it have been instanced via a second constructor?
When i dismount an entity (custom), for the other clients and for the server Im sneaking
I tried to run this
but it prints "SNEAKING"
for a brief moment, I can see the player standing then sneaking back
this kinda models whats happening
i instantiate a C variable
but in this case
I get
1
hi
2
3```
ive tried defining the goals outside the constructor, similar to that paste, but has null behavior
it should be null when inside the constructor, and that happens
but im just curious why theres different behavior
these arent static variablhes though
and yes i understand why its happening in the constructor case
like i said
i tried to define the goals outside of the constructor and i was still getting null
what is the damagecause for kinetic damage?
too much velocity
Yes this is expected.
Every constructor is called one after another.
i dont hit any wall but ill try
is there damage for x and z movement? i think its just for negative y movement
Yeah because I've no idea what you're talking about
yes i know
but my original problem
same idea, but the string hi is null
except it's goals
in this case, meleeGoal is null
cannot figure out why
Nothing here would need meeleGoal... I dont understand the problem.
well in reality
System.out.println(meleeGoal);
this.goalSelector.addGoal(2, meleeGoal);
this.goalSelector.addGoal(3, new WaterAvoidingRandomStrollGoal(this, 1.0D));
this.goalSelector.addGoal(4, new LookAtPlayerGoal(this, Player.class, 8.0F));
this.goalSelector.addGoal(4, new RandomLookAroundGoal(this));```
causes NPE
also
to clarify
this is a similar structure to the A/B/C example i have earlier
so I am initializing something that extends MyEntity
'causes NPE' is basically useless to tell us
provide details or we can't do shit
exceptions, more code, etc
send. the. entire. stacktrace.
providing the exception wouldnt do much because its all obfuscated
I see. The Mob constructor calls registerGoals.
The Mob constructor is fully completed
before the child class parts are initialized at all.
Hm let me check both examples. Usually you should not rely on mechanics like this because sometimes the
compiler throws variable initializers in the constructor.
mechanics like what?
how would i get both these lists?
sorry your message isnt very clear to me, haha
Please dont use mixed type lists
yeah but how do i get the lists tho
List<List<Object>> from the path deaths.1
But dont. This is very hacky and error prone.
config.getlist("deaths.1") ?
Ugh
lmao
If a sender is the console, what would the getName() return?
my brother in christ
or whatever it is
could you clarify a bit about what you mean by this?
deaths:
1:
-
type: "speed"
amplifier: 12
-
type: "haste"
amplifier: 10
that looks wrong
its how you should do it
Thats just a list of objects
whats the best way to check if an item is on top of a block? i want to create a conveyer type thing which i already know how to do but id assume having a runnable loop every conveyer block each second isnt a good way to do it
how tf do i get those now
No other way you can achieve that. A runnable is your only option.
Maybe use pressure plates
And use pressure plate events
Besides that, loop :(
What do you think tile entities do? ;p
literally just went to check this lol
return (List)ihopper.getSuckShape().toAabbs().stream().flatMap((axisalignedbb) -> {
return world.getEntitiesOfClass(ItemEntity.class, axisalignedbb.move(ihopper.getLevelX() - 0.5D, ihopper.getLevelY() - 0.5D, ihopper.getLevelZ() - 0.5D), EntitySelector.ENTITY_STILL_ALIVE).stream();
}).collect(Collectors.toList());
}```
oh im dumb
quite literally just checks entities in a bounding box
Yep
O hi alex
Potion effects are ConfigurationSerializable.
So i would not manually write a config file but simply generate a default config file with code.
Or some variation of every x ticks
its gotta be editable by admins
you could try to use some math to make a bigger bounding box along a line of conveyors
Which tbqh isn't terribly expensive, especially if the bounding box is (a) predefined and cached, and (b) confined within a single chunk so it's only checking a single chunk's worth of entities
then move all entities ina direction
CONSOLE iirc
You should def distribute this workload
Thanks :)
?workdistro
I'll double check that
if you need to know of the sender is a console
Been lookin around just wanna know if I need to replace the name so it doesn't look odd in chat
i would probably opt for instanceof
I know how lol
sender instanceOf ConsoleCommandSender
CONSOLE, yeah
Just wanna know so I don't have to do that
I can just do getName() and replace if needed
Thanks a bunch :)
I wouldn’t recommend just finding and replacing it
so if i use this and parse through "deaths.1" what will i get
Since “CONSOLE” is a valid username
Well it's just to be in chat, all I would do is lowercase it.
List<ConfigurationSection>
Can anyone help with setting an itemframe item to invisible?
Here's what I tried:
ItemStack itemFrame = new ItemStack(Material.ITEM_FRAME);
ItemMeta meta = itemFrame.getItemMeta();
assert meta != null;
meta.getPersistentDataContainer().set(new NamespacedKey(Main.getPlugin(), "invisible"), PersistentDataType.BYTE, (byte) 1);
itemFrame.setItemMeta(meta);```
but it just gives this
i tried to use this for strcuture placement but lighting updates seem to still bottleneck...
If you’re checking if the sender is console, do the instanceof check
Otherwise you’ll end up randomly changing some dude’s username without intending to
You can just use something that doesnt need light updates
Yeah I might just do a little util for my commands to just auto convert the string depending on it's instance
also still trying to get a clarification on this lol
Also lmao Alex I feel like I met you at Minefaire years ago
Very possible
So nice to be getting help nowadays as I was just starting back then lol
Lol
bump
you cannot set an EntityTag currently in spigot
The itemframe item in your hand can’t be invisible, and you’re setting the PDC for your plugin, not any native NBT data
must use a listener or something to modify the entity once its in the world
technically it can but not using any item meta impl at the moment
How would an item in your inventory be invisible?
using EntityTag
/minecraft:give @p item_frame{EntityTag:{Invisible:1b}}
^
Why would an item stack be an entity
its literally just more functionality
??? its a compound for once the item becomes an entity
very useful thing
:P thats for when the item is placed
I thought this was functionality to make the actual item in your hand invisible as a pseudo entity
Lol
how much does nms add to the plugin weight
isn't it a dependency?
it just removes the ability for your plugin to work on more than 1 version
no
idk never tried anything with it
nms is provided to you via the server jar
Not anymore
.... err yea?
If you’re using the mojang mappings it’s not versioned in the package
the mappings change
How do I send a title with a color?
That's how i did it before:
Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), "title @a title [{"text":"Test.","color":"gold"}]");
But i wanna switch to using player.sendTitle()
Oh yeah you need to give multiple binaries but the same code should work
mojang mappings literally just mean you dont use obfuscated code anymore
your plugin will break at runtime
Right I thought you were saying the code would need to change like it used to be
You need to supply an appropriate binary for the version
CB still uses versioned packages
use mojang mappings and add specialsource to your pom to reobfuscate
and typically you can only access nms by first going through CB
Hello, when players connect to the server they are in an ArrayList and I would like to put a connection timer. (if they didn't do /login, they are kicked from the server.)
simple way to do this is with a hashmap
store the timestamp they logged in
check if the timestamp is too old
kick them
once they login, remove them from the map
i assume just use a bukkitrunnable that runs like every second, to do the check?
i think that would be appropriate
Depends on the granularity you want
You can run it less frequently if you don’t care about them getting an extra ten seconds or whatever, for example
Ok but I delete ArrayList ?
yeah
i would use a map instead
hashmap<Player, Long>
When a player joins you get the current time
System.currentTimeMillis()
and save the player in the hashmap with that timestamp
yourMap.put(player, time);
Ok, thank you
I’m sensing a memory leak incoming
Soft reference > Hard reference
so ur saying use uuid instead?
UUID drags along a lot less with it
there are almost no cases where you should keep a Player object stored
why not
add on join, remove on disconnect, wheres the problem?
ur basically only storing the reference, so no problem memory-wise either
doesnt the player object store coords and inventory as well
u dont know how objects work, do u
nope
how can i change player's display name
xD
yep
The uuid, I have to do something?
uuid =