#help-development

1 messages · Page 2285 of 1

azure hawk
#

?

young knoll
#

Yeah that’s the one

noble lantern
#

there you go

#

remove the last backslash ofc

young knoll
#

1.8.8-R0.1-SNAPSHOT

noble lantern
#

oh didnt realize the forums had that in it

ashen quest
#

why does maven add snapshot bydefault

noble lantern
#

bwaha

noble lantern
#

its just standard

azure hawk
ashen quest
#

i mean

noble lantern
ashen quest
#

what if it aint a snapshot

noble lantern
#

you change the import in gradle/maven

young knoll
#

You don’t need to

#

Just change the version in your build.gradle/pom.xml

azure hawk
ashen quest
#

yo yotub, scroll bars in comments?

noble lantern
#

happens sometimes very rarely

ashen quest
#

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)

azure hawk
#

BRUH HAHAHA

#

I CAN CHANGE IT

noble lantern
#

yes....

ashen quest
#

yea ofc

#

thats how u change versions

noble lantern
#

thats kinda what we ewre saying lmfao

azure hawk
noble lantern
#

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

azure hawk
#

k thanks

#

NIIICE HAHAH

#

know i get it

ashen quest
#

nice

young knoll
#

Now you get to use strings

azure hawk
#

like this?

young knoll
#

No idea

vocal cloud
#

1.8 moment

azure hawk
#

xd

vocal cloud
azure hawk
#

maayyybe

slim brook
#

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

azure hawk
vocal cloud
slim brook
#

RUntime error

#

WHen i close or reload my server

azure hawk
#

like this?

#

kinda scuffed

young knoll
#

I don’t think gson likes serializing optionals

slim brook
#

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);
    }```
young knoll
#

And what does CustomSpawner contain

slim brook
#

Ohhh ok

#

He didn't like final variables ?

#

like that ``private static final int[] upgradeTimePrice = new int[]{3500,17500,82000,410000};`

young knoll
#

Static variables won’t be serialized anyway

slim brook
#

Hmmm ok that why

young knoll
#

I imagine you have a location or something in there

sturdy vine
#

whats the event name for a server query?

young knoll
#

Gson cannot serialize a location without a custom adapter

slim brook
#

Like that "private CreatureSpawner blockSpawner;" ? X)

#

Ok will do that

#

Thx

delicate lynx
#

ServerListPingEvent is the event for when a client pings it

sturdy vine
#

i thought that was players only, not for the query function

#

but i'll give it a shot thanks

delicate lynx
#

oh, idk if that gets called for other stuff outside the client pinging

sturdy vine
#

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

sage merlin
#

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

young knoll
#

Why not just collect it to a set

sage merlin
#

because i need to access it in another method

ashen quest
#

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)

sage merlin
shell wraith
vocal cloud
#

Simple math different week

eternal oxide
#

How is anyone going to click it if it is surrounded?

young knoll
#

Simple nested for loop from -1 to +1

#

If all 3 values are 0 you skip that block, as that’s the button

eternal oxide
#

just for (BlockFace face: Blockface.values()) {

young knoll
#

That too

ashen quest
eternal oxide
#

checks a cube

ashen quest
#

does it also check if its hollow

young knoll
#

That will include BlockFace.SELF tho

eternal oxide
#

yes

ashen quest
#

cause what if its thinking everything in that block is a leave

#

i only want outlines

eternal oxide
#

not hard to ignore self

ashen quest
#

whats self

eternal oxide
#

teh origin block

ashen quest
#

and then adding 1 or -1 to it

#

nice thats cool

eternal oxide
#

including diagonals

ashen quest
#

ty

eternal oxide
#

no need for +-1

ashen quest
eternal oxide
#

how many blocks do you want to check? all of them in a cube?

lost matrix
#
  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);
  }
ashen quest
#

not meaning to sound rude here

left swift
#

How can I get level-name from the server.properteis. Is there any provided method or should I use File

lost matrix
ashen quest
#

oo

lost matrix
eternal oxide
#
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;
}```
lost matrix
eternal oxide
#

typed from memory so exccuse any minor inaccuracies

lost matrix
#

I see

eternal oxide
#

get Block

left swift
eternal oxide
#

fixed 😉

lost matrix
left swift
eternal oxide
#

No, not unless its a reload

lost matrix
azure hawk
#

why is this not working

lost matrix
azure hawk
peak depot
#

any errors?

azure hawk
#

yes XD

peak depot
#

can you send them?

#

?paste

undone axleBOT
azure hawk
#

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'
lost matrix
#

XDDDD

azure hawk
#

there

crimson terrace
azure hawk
#

xd

peak depot
#

can you paste on ?paste

lost matrix
#

wow...

azure hawk
crimson terrace
#

?paste

undone axleBOT
azure hawk
#

HAHA

peak depot
#

there

lost matrix
#

1.8 so im out for this part

azure hawk
#

!paste

peak depot
#

? not !

azure hawk
#

yes

#

?paste

undone axleBOT
vocal cloud
#

Ah the issue is you're missing a 1 in front of the 8 in your 1.8 dependency Kek. Also the .8 is supposed to be a 2. 1.18.2 hes_OwO

azure hawk
#

there

#

nice

olive lance
#

Did somebody say 1.8?

vocal cloud
#

On enable line 33

peak depot
#

at buildserver.main.main.onEnable(main.java:33) ~[?:?]

vocal cloud
#

Tbh most 1.8 servers are usually DOA anyways.

#

As long as ur getting paid you shouldn't care though

azure hawk
vocal cloud
#

A tale as old as time

#

Really need a ?register

#

?register

olive lance
#

That’s tough bro

vocal cloud
#

"make sure you've properly registered your command in the plugin.yml and it's reflected in your jar"

peak depot
#

is iit possible that you write your command in the main class?

zenith gate
peak depot
#

yes but as it looks he did everithing in main class

zenith gate
#

it's just less unorganized and not recommenced

vocal cloud
#

Should you though? smart

zenith gate
peak depot
#

because that can related to those kinda error

vocal cloud
#

Did you register the command in the plugin.yml?

azure hawk
peak depot
#

can you send your plugin.yml

zenith gate
azure hawk
azure hawk
#
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
vocal cloud
quiet ice
zenith gate
azure hawk
#

YES

#

IM SO DUMB

vocal cloud
#

There you go

azure hawk
#

ITS 1.8.8 API

#

NOT 1.19

#

HAHAHAHAHHA

vocal cloud
#

No

azure hawk
#

thanks

peak depot
#

F

azure hawk
vocal cloud
#

It's obviously because you're registering the wrong command take a look again

azure hawk
#

am i to dumb to see it

#

ok

#

i get it

vocal cloud
#

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

azure hawk
#

that was from an experiemtn

#

from yesterday

#

lol

vocal cloud
#

Well glad we fixed the issue.

azure hawk
#

yup

peak depot
#

btw idk if youre the onlydev but pls remove sound from the compas on your network

#

thats anonying as hell

azure hawk
#

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

peak depot
#

just one question why dont you just use multiverse core?

azure hawk
#

but like in my style

#

its for my buildserver

peak depot
#

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

azure hawk
#

ok

peak depot
#

but you could try coping the files with code and then load irt

azure hawk
#

what files

peak depot
#

the world folder Void

azure hawk
#

oh

peak depot
#

duplicatet it and and rename

azure hawk
#

thats way to hard

peak depot
#

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);
}
}

azure hawk
#

but i wanna make a comannd like /world copy NAME and then it creates a copy of that world

azure hawk
#

and if bukkit.world.copy doesnt work why did bukkit make it in the first place then

#

lol

eternal night
#

the world has a copy method ? did I miss something ?

azure hawk
#

no

#

i just typed it

peak depot
#

idk but you can just do
File template = new File("Void");
File copyFile = new File(worldName);
copyFileStructure(template, copyFiles);

azure hawk
#

you get what i mean

eternal night
eternal night
#

that copy file structure is a bit overkill ngl

peak depot
#

but should work

#

thats what counts xD

eternal night
#

would be a lot easier to just copy the entire thing and actively remove the files you don't want

azure hawk
#

thats what im saying

peak depot
#

working is working isnt iit

azure hawk
#

k

#

xd

#

but i dont understand anything from it LMAO

peak depot
#

check if already exists copyfiles to target folder

#

easy as that

azure hawk
#

like this?

peak depot
#

yes

quaint mantle
#

?print

#

?paste

undone axleBOT
azure hawk
#

is it right

#

?

#

or how do i create the world

peak depot
#

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

azure hawk
#

ok

peak depot
#

then you still have your old code

azure hawk
#

will it work like this?

#

bc i still have to do the gamerules

peak depot
#

yes

#

should work like that

azure hawk
#

k

peak depot
#

but not sure if you need to load the map too

azure hawk
#

i will try it

#

shit

peak depot
#

whats the 16. line

ivory sleet
#

?paste the error as well

undone axleBOT
peak depot
#

146*

quaint mantle
azure hawk
dusk flicker
#

oh dear god that class

peak depot
azure hawk
#

bruh

#

ok

#

wait

#

there was " " at the end

#

i deleted it

#

hopefully it works now

#

nope

#

still an error

peak depot
#

whats the 146 line

#

send it

azure hawk
peak depot
#

gray it out and then tp to world only

#

if still nullpoint its not loaded

ivory sleet
#

May I ask if you actually load the worlds?

azure hawk
#

you mean like this?

ivory sleet
#

Because getWorld does return null if there’s no world with the given name yet loaded

peak depot
#

does the folder exits?

ivory sleet
#

#

You need to load the world before you can access it

azure hawk
#

yes

peak depot
#

new WorldCreator(newWorldName).createWorld();

ivory sleet
#

^

peak depot
#

add that after the copyfile

ivory sleet
#

Probably wanna do that in as early as onLoad

azure hawk
ivory sleet
#

before getWorld

#

could be just the line above

azure hawk
#

before line 154?

peak depot
#

just listen on conclure

#

before the grayed out

azure hawk
#

k

#

like this

peak depot
#

yes

azure hawk
#

k

#

OMG

peak depot
#

now you can ungray it

azure hawk
#

YOURE A LEGEND MAN

#

OMG

peak depot
#

np

azure hawk
#

THANK YOU SOOOOO MUCH

#

I WAS SEARCHING FOR HELP FOR LIKE 4 DAYS HAHAH

#

THANNK YOU

#

<3

peak depot
#

like I said np

azure hawk
#

:)

peak depot
#

but load the maps onEnable to

azure hawk
#

i already do

peak depot
#

ok

#

than good

azure hawk
#

: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

peak depot
#

chat components

#

then it would be with clicking

azure hawk
#

oh ok

peak depot
#

but yes you can check it with asyncplayerchatevent

azure hawk
#
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

peak depot
#

german too

azure hawk
#

really?

#

nice

peak depot
#

jaman

eternal night
#

👀

peak depot
#

but you need to type englisch

azure hawk
#

ich glaube wir müssen hier aber englisch sprechen

#

yes

#

xd

azure hawk
eternal night
#

think of it as free English practice 5Head

hybrid spoke
#

bonjour

peak depot
#

nah englisch in school is enought

eternal night
#

ca va

azure hawk
#

cava bien merci

#

et toi?

hybrid spoke
#

un due trois quatre

azure hawk
#

Je ne comprends pas cela

peak depot
#

thats literly 1-4

azure hawk
#

HAHAHA

#

SIU

azure hawk
#

ik

hybrid spoke
#

je ne pas la francais, aber bitte sprich weiter

azure hawk
#

but i wanred to troll him

azure hawk
#

obwohl wirs gerne dürften

#

xd

hybrid spoke
#

those are lyrics

azure hawk
#

cool

peak depot
#

hes 2009 he dont knows that og stuff

azure hawk
#

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"

tardy delta
#

override TabCompletor#onTabcOmplete

azure hawk
eternal oxide
#

Implement TabExecutor not CommandExecutor

tardy delta
#

same thing

azure hawk
#

why

#

what does it have to do with my question lol

tardy delta
#

cuz it has the method you need to override

#

returning a stringlist with tab complete options

#

based on the args length

hybrid spoke
#

he wants to print a list into the chat

#

with an hoverevent/clickevent on the items

tardy delta
#

ah hoverevent

#

componentbuilder then

hybrid spoke
azure hawk
#

ok

#

how do i import it

#

lol

tardy delta
#

lmao

#

should be included by standard in the spigot thing

azure hawk
#

k

hybrid spoke
#

ok*

azure hawk
#

but how do i do it now

tardy delta
#

how do i do it now

azure hawk
#

im gonna look a vid

tardy delta
#

sounds like my cat

azure hawk
#

meow~

tardy delta
#

no

azure hawk
#

MOOOOOOOOOOOOEW~

#

im on 1.8.9

ivory sleet
vocal cloud
hybrid spoke
#

sounds like a you-problem

vocal cloud
#

DOA servers be like

desert pine
#

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.

eternal oxide
#

This is Spigot not paper

#

?fork

undone axleBOT
#

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.

round eagle
#

my plugin pauses the whole server whilst trying to establish a socket connection with another server. any idea?

eternal oxide
#

synchronous coms.

peak depot
desert pine
peak depot
#

thats what you can do with spigot/paper

eternal oxide
#

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.

round eagle
lusty cipher
#

how do I create an inventory with a title that would work like the TextComponent stuff new TranslatableText("minecraft:chest")?

eternal oxide
#

If you don;t want to lock the server you have to handle it Async

round eagle
lusty cipher
#

multi threading like that no

#

but theres a task scheduler

#

see Bukkit#getScheduler

eternal oxide
#

But you still have to be careful as you are correct multithreading is not safe.

worldly ingot
#

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

clever musk
#

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

worldly ingot
#

Are you asking if there are any Bukkit methods for it?

clever musk
#

yes

worldly ingot
#

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

clever musk
#

Material is becoming an interface???

worldly ingot
#

Ideally, yeah. Class, interface, something other than an enum

#

Active PR for it

clever musk
#

Does this include blockstates?

#

Can custom materials have blockstates?

worldly ingot
#

Block states are already interfaces ;p

#

Doesn't mean you can implement it. Just means we can implement NMS methods more easily in CraftBukkit

clever musk
#

Oh

worldly ingot
#

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)

clever musk
worldly ingot
#

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

clever musk
#

Oh cool

#

I'm guessing trying to implement it will break a lot of things

ivory sleet
#

Correct assumption

frosty tinsel
sage patio
#

InventoryClickEvent works for creative players too?

#

it seems not

eternal oxide
#

Creative have their own events for many things

sage patio
#

my codes in InventoryClickEvent works only in survival gamemode

sage patio
eternal oxide
#

search creative in teh JD to see

#

?jd-s

undone axleBOT
sage patio
#

can i use EventPriority and ignoreCanceled at same time?

eternal oxide
#

yes

sage patio
#

how

eternal oxide
#

,

sage patio
#

ow thanks

subtle folio
#

How can I sort tablist?

worldly ingot
#

Ehm. The tab list is already alphabetically sorted

subtle folio
#

I mean per ranks,

#

Would I use scoreboard teams?

worldly ingot
#

Yes

round eagle
#
BukkitScheduler scheduler = Bukkit.getScheduler();
scheduler.runTaskLater(plugin, () -> {
  Bukkit.broadcastMessage("Mooooo!");
}, 20L * 30L /*<-- the delay */);

what is plugin in the code?

tall dragon
#

reference to your main class

lost matrix
lost matrix
round eagle
lost matrix
# round eagle 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.

worldly ingot
#

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```
subtle folio
#

I tried using scoreboard teams to sort,

#

didn't work

#

?paste

undone axleBOT
subtle folio
#

1s

round eagle
glossy venture
#

?di

undone axleBOT
glossy venture
#

or static getters of the instance

subtle folio
glossy venture
#

set in the constructor, onLoad or onEnable

lost matrix
peak depot
peak depot
#

case "sr.mod" -> sb.getTeam("d");

#

doesnt it need to be return sb.getTeam("d")

subtle folio
sage patio
#

why PlayerInteractEvent is not working for RIGHT_CLICK_AIR ?

subtle folio
#

I dont think so bc its a switch statement?

peak depot
#

try printing the team the players in

subtle folio
#

kk

lost matrix
lost matrix
tall dragon
# subtle folio

might also be better to map ranks to a team using a hashmap

sage patio
#

1.12.2

lost matrix
#

Define what you mean by "not working"

sage patio
#

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

peak depot
#

maby because of ignored cancelled?

sage patio
#

no

#

that ignores canceling by another plugins

lost matrix
# sage patio that ignores canceling by another plugins

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.

vocal cloud
#

Event is registered?

sage patio
vocal cloud
#

I'd log the information you're looking for

vocal cloud
#

every interact event log the material. That'd let you know what's going on.

sage patio
#

just runs when i click blocks

golden turret
#

is the EntitySpawnEvent called for players?

worldly ingot
#

No. That would be PlayerJoinEvent lol

golden turret
#

ok

#

and does the World#rayTraceEntities use the World#getEntities?

subtle folio
golden turret
#

Would it be safe to use in a world with like 2k entities?

echo basalt
golden turret
#

But would it be safe to use in a gun system with 100 players shooting in a world with 2k entities?

echo basalt
#

uhhhhhh

#

That's a great question

echo basalt
#

I too use this for a gun system, but make sure to apply workload distribution

subtle folio
#

anything is possible

echo basalt
#

this should make it solid

lost matrix
#

This would probably induce a lag like feeling for the player because they dont get instant feedback from their shots

echo basalt
#

true

#

I only use that for the gun particles

#

But I also don't expect thousands of players shooting at once

lost matrix
#

Generally ray tracing is okish when it comes to performance. Its not like all 100 players are gonna shoot at once.

echo basalt
#

man's probably writing a call of duty warzone clone

#

so I can expect lots of firing

golden turret
#

i have this specs

#

and yes, it is kind a call of duty

echo basalt
#

that doesn't really say much about the cpu

#

other than it has 8 vcores

#

probably a vps honestly

golden turret
#

yes

#

it is a vps

#

let me run neofetch

#

?

#

and that is me using the rayTrace

subtle folio
#

Is it possible for a player to be apart of two scoreboard teams?

subtle folio
#

damn

little panther
#

Hey, do anyone know if its possible to make it so you can use a Riptide trident outside water. And if so, how?

golden turret
#

when it is raining?

little panther
#

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

golden turret
#

maybe look at the nms code of riptide

sage dragon
#

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?

golden turret
#

@little panther

#

1.17.1

tall dragon
golden turret
#

but I think the client would not understand

sage dragon
golden turret
#

LambdaMetafactory 🤔

tall dragon
golden turret
#

never heard about it

peak depot
#

LambdaMetafactory creates a synthetic factory class that then is used to create target interface

quaint mantle
#

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

peak depot
little panther
sage dragon
peak depot
tall dragon
quaint mantle
#

what does it means with java.lang.IllegalArgumentException: Crafting rows should be 1, 2, or 3 characters, not [4]

peak depot
#

there are 3 rows in a crafting tabled but you set some item in 4 (not existing) row

sage dragon
quaint mantle
tall dragon
quaint mantle
#

i cant find it

golden turret
peak depot
#

it says at line 170 in main

#

but thats on whole class not on your paste

quaint mantle
#

its a space line

#

how's its wrong ?

peak depot
#

yeah in the paste

#

but there are imports and package declarion in normal

#

paste the whole class

#

?paste

undone axleBOT
quaint mantle
#

ok lemme open intellij

#

so you want the entire source code ?

peak depot
#

yes

quaint mantle
#

ok

#

@peak depot

peak depot
#

recipe2.shape(" ","N S"," ");

#

thats whats causing the error

quaint mantle
#

whats wrong with it ?

#

OH

#

I GOT IT

#

fixed

#

thx

drowsy harness
#

yo, im trying to modify a entity ai to avoid a certain region. anyone got something similar finished that i can rewrite?

peak depot
quaint mantle
#

2 spaces between the N S

peak depot
#

makes sense

quaint mantle
#

ok thx

peak depot
pliant plover
#

how can I remove Players from this List:

#

List<Player> list = Bukkit.getOnlinePlayers().stream().collect(Collectors.toList());

waxen plinth
#

Why do you need to

#

And why are you copying a list like that

#

Just do new ArrayList<>(sourceList)

pliant plover
#

Im trying to make a Bedwars plugin and I want to remove all the players that were already added to the Game

waxen plinth
#

That doesn't sound like a good approach

peak depot
#

List<Player> list = Bukkit.getOnlinePlayers(); list.remove(player); ?

flint mist
peak depot
#

error?

peak depot
rare flicker
#

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?

thin lantern
#

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

peak depot
rare flicker
#

i suppose there is no better way of doing it then

#

thanks !

sharp wigeon
#

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?

quiet ice
#

In my plugin I always add it as a bonus (random) enchantment

rare flicker
placid birch
#

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?

rare flicker
#

do you use #PrepareItemEnchantEvent or #EnchantItemEvent ?

#

don't answer that, i found it x)

#

thanks for the insight

quiet ice
#

It wasn't written by me however, so do not ask what this does

carmine hatch
#

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?

undone axleBOT
#

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

chrome beacon
#

Highly recommend using Maven or Gradle

carmine hatch
#

ah yes, the chinese language

rare flicker
quiet ice
#

Yeah I was just supplying for reference

rare flicker
#

thanks

carmine hatch
chrome beacon
carmine hatch
#

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

chrome beacon
#

Well things will get easier so keep at it :)

glossy wren
#

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?

ember estuary
#

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)

buoyant viper
#

did u run buildtools with --remapped

ember estuary
#

should i add it here?

chrome beacon
#

Before --rev or after %Input%

ember estuary
#

oh yeah my bad lol

#

xD

#

ok, will try

valid folio
#

what does it mean

chrome beacon
#

Looks like invalid packet size

valid folio
#

And what couses that?

chrome beacon
#

Your code

valid folio
#

Its just rcon

#

I typed extra port ip and password that i set

#

I think i did all things correctly

#

And whats wrong?

dusk flicker
#

I have to ask

#

why are you using rcon

quaint mantle
#

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)

valid folio
#

Okey

#

Ill try that

valid folio
#

Like ranks

dusk flicker
#

any reason you woulden't run a plugin for it?

valid folio
#

It doesn't have plugin for it

dusk flicker
#

Sounds like a shitty system, what one is it?

valid folio
#

Its my local country system that has payment gateway thru local shops.

dusk flicker
#

ah

valid folio
#

And thats why i use it

glossy scroll
#

seriously doubt anyone can solve this but

#

meleeGoal is null for some reason

opal carbon
#

it's final

#

you tried to edit a final value

glossy scroll
#

err.. no?

dusk flicker
#

How are you knowing it is null?

opal carbon
#

protected final Goal meleeGoal;

glossy scroll
#

System.out.println(meleeGoal); prints null

dusk flicker
#

thats not the issue Cooleg

opal carbon
#

well idk then I'm used to final meaning final

glossy scroll
#

you can define a final variable in the constructor

#

thats completely legal

dusk flicker
#

it would throw an exception if he tried to doing that if not in a constructor

glossy scroll
#

^^

#

it wouldnt even compile lol

dusk flicker
#

are you getting it saying null from running registerGoals or the constructor one?

opal carbon
#

well I'm just dumb then

dusk flicker
#

it would help with more code being shown, rather than what seems to be cherrypicked

dusk flicker
#

show the code where you are running this

glossy scroll
#

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

dusk flicker
#

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

glossy scroll
eternal oxide
#

Could it have been instanced via a second constructor?

golden turret
#

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

glossy scroll
#

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

eternal oxide
#

Because anythign static is intialized at load not instancing

#

I believe

glossy scroll
#

these arent static variablhes though

glossy scroll
#

like i said

#

i tried to define the goals outside of the constructor and i was still getting null

reef lagoon
#

how do i make an item frame invisible

#

as a placable item

dull whale
#

what is the damagecause for kinetic damage?

crimson terrace
#

define "kinetic"

#

arrows are kinetic, so is fall damage i suppose

dull whale
#

too much velocity

lost matrix
crimson terrace
dull whale
#

oh wait

#

i can just printout 🤦

worldly ingot
#

Yeah because I've no idea what you're talking about

glossy scroll
#

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

lost matrix
glossy scroll
#

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

dusk flicker
#

'causes NPE' is basically useless to tell us

#

provide details or we can't do shit

#

exceptions, more code, etc

glossy scroll
#

meleeGoal is null

#

that is causing the NPE

dusk flicker
#

send. the. entire. stacktrace.

glossy scroll
#

providing the exception wouldnt do much because its all obfuscated

lost matrix
#

I see. The Mob constructor calls registerGoals.
The Mob constructor is fully completed
before the child class parts are initialized at all.

lost matrix
ornate mantle
#
deaths:
  1:
    - ["speed", 12]
    - ["haste", 10]```
#

this is in my config

glossy scroll
#

mechanics like what?

ornate mantle
#

how would i get both these lists?

glossy scroll
#

sorry your message isnt very clear to me, haha

lost matrix
ornate mantle
#

yeah but how do i get the lists tho

lost matrix
#

List<List<Object>> from the path deaths.1

ornate mantle
#

thats just gonna have 2 lists

#

ah

lost matrix
#

But dont. This is very hacky and error prone.

ornate mantle
#

config.getlist("deaths.1") ?

lost matrix
#

Ugh

ornate mantle
#

lmao

ebon coral
#

If a sender is the console, what would the getName() return?

glossy scroll
#

it wouldnt hurt to just add a wrapper

#

with two objects

#

name, level

ornate mantle
#

my brother in christ

glossy scroll
#

or whatever it is

ornate mantle
#

im dumb

#

i just need this project done

glossy scroll
lost matrix
ornate mantle
#

that looks wrong

glossy scroll
#

its how you should do it

lost matrix
#

Thats just a list of objects

dry forum
#

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

ornate mantle
#

how tf do i get those now

lost matrix
ebon coral
#

And use pressure plate events

#

Besides that, loop :(

worldly ingot
#

What do you think tile entities do? ;p

glossy scroll
#
        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());
    }```
ornate mantle
#

oh im dumb

glossy scroll
#

quite literally just checks entities in a bounding box

worldly ingot
#

Yep

brave sparrow
#

Yup

#

Every tick

ebon coral
#

O hi alex

lost matrix
brave sparrow
#

Or some variation of every x ticks

ornate mantle
glossy scroll
#

you could try to use some math to make a bigger bounding box along a line of conveyors

worldly ingot
#

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

glossy scroll
#

then move all entities ina direction

worldly ingot
#

CONSOLE iirc

lost matrix
#

You should def distribute this workload

ebon coral
#

Thanks :)

lost matrix
#

?workdistro

worldly ingot
#

I'll double check that

glossy scroll
ebon coral
#

Been lookin around just wanna know if I need to replace the name so it doesn't look odd in chat

glossy scroll
#

i would probably opt for instanceof

ebon coral
#

I know how lol

glossy scroll
#

oh

#

ok

ebon coral
#

sender instanceOf ConsoleCommandSender

worldly ingot
#

CONSOLE, yeah

ebon coral
#

Just wanna know so I don't have to do that

#

I can just do getName() and replace if needed

#

Thanks a bunch :)

brave sparrow
#

I wouldn’t recommend just finding and replacing it

ornate mantle
brave sparrow
#

Since “CONSOLE” is a valid username

ebon coral
#

Well it's just to be in chat, all I would do is lowercase it.

lost matrix
reef lagoon
#

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
glossy scroll
brave sparrow
#

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

lost matrix
ebon coral
#

Yeah I might just do a little util for my commands to just auto convert the string depending on it's instance

glossy scroll
ebon coral
#

Also lmao Alex I feel like I met you at Minefaire years ago

brave sparrow
#

Very possible

ebon coral
#

So nice to be getting help nowadays as I was just starting back then lol

brave sparrow
#

Lol

glossy scroll
#

you cannot set an EntityTag currently in spigot

brave sparrow
glossy scroll
#

must use a listener or something to modify the entity once its in the world

glossy scroll
reef lagoon
#

that's so shit

#

well I tried

#

thanks

brave sparrow
glossy scroll
#

using EntityTag

reef lagoon
#

/minecraft:give @p item_frame{EntityTag:{Invisible:1b}}

glossy scroll
#

^

brave sparrow
#

Man I hate the new versions

#

Too much nonsense

glossy scroll
#

what

#

lol

brave sparrow
#

Why would an item stack be an entity

glossy scroll
#

its literally just more functionality

#

??? its a compound for once the item becomes an entity

#

very useful thing

brave sparrow
#

@reef lagoon you should be able to do it with NMS

#

Just not PDC

river oracle
brave sparrow
#

I thought this was functionality to make the actual item in your hand invisible as a pseudo entity

#

Lol

reef lagoon
brave sparrow
#

It doesn’t add anything to the plugin weight

#

You aren’t shading in NMS

reef lagoon
#

isn't it a dependency?

glossy scroll
#

it just removes the ability for your plugin to work on more than 1 version

brave sparrow
#

no

reef lagoon
#

idk never tried anything with it

river oracle
glossy scroll
#

.... err yea?

brave sparrow
#

If you’re using the mojang mappings it’s not versioned in the package

glossy scroll
#

the mappings change

river oracle
#

^

#

its still versioned just easier

ember estuary
#

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()

brave sparrow
#

Oh yeah you need to give multiple binaries but the same code should work

glossy scroll
#

mojang mappings literally just mean you dont use obfuscated code anymore

#

your plugin will break at runtime

brave sparrow
#

Right I thought you were saying the code would need to change like it used to be

glossy scroll
#

no

#

i mean technically still does if you use CB

brave sparrow
#

You need to supply an appropriate binary for the version

glossy scroll
#

CB still uses versioned packages

eternal oxide
#

use mojang mappings and add specialsource to your pom to reobfuscate

glossy scroll
#

and typically you can only access nms by first going through CB

quaint mantle
#

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.)

glossy scroll
#

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

ember estuary
#

i assume just use a bukkitrunnable that runs like every second, to do the check?

glossy scroll
#

i think that would be appropriate

brave sparrow
#

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

quaint mantle
ember estuary
#

yeah

glossy scroll
#

i would use a map instead

ember estuary
#

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);

quaint mantle
#

Ok, thank you

brave sparrow
#

I’m sensing a memory leak incoming

ember estuary
#

well, you gotta remove the player if he disconnects xD

#

obviously

lost matrix
ember estuary
#

so ur saying use uuid instead?

brave sparrow
#

UUID drags along a lot less with it

tall dragon
#

there are almost no cases where you should keep a Player object stored

ember estuary
#

why not

#

add on join, remove on disconnect, wheres the problem?

#

ur basically only storing the reference, so no problem memory-wise either

ornate mantle
#

doesnt the player object store coords and inventory as well

ember estuary
#

u dont know how objects work, do u

ornate mantle
#

nope

dim palm
#

how can i change player's display name

ember estuary
#

xD

tall dragon
#

that wont matter

#

it points to the same memory

ember estuary
#

yep

quaint mantle
#

The uuid, I have to do something?

uuid =