Spigot GriefPreventionStickFix 1.0

Disabled "No one has claimed this block" message on sticks with metadata (useful for ItemsAdder)

  1. LoneDev

    Supporter

    LoneDev submitted a new resource:

    GriefPreventionStickFix - Disabled "No one has claimed this block" message when you right click with a stick that has metadata

    Read more about this resource...
     
  2. Code (Java):
    [21:20:40] [Server thread/INFO]: [GriefPreventionStickFix] Disabling GriefPreventionStickFix v1.0-SNAPSHOT
    [21:20:40] [Server thread/ERROR]: Error occurred while disabling GriefPreventionStickFix v1.0-SNAPSHOT (Is it up to date?)
    java.lang.NullPointerException: Cannot invoke "com.comphenix.protocol.ProtocolManager.removePacketListener(com.comphenix.protocol.events.PacketListener)" because "this.protocolManager" is null
        at dev.lone.GriefPreventionStickFix.Main.onDisable(Main.java:79) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:265) ~[patched_1.16.4.jar:git-Purpur-904]
        at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:415) ~[patched_1.16.4.jar:git-Purpur-904]
        at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:516) ~[patched_1.16.4.jar:git-Purpur-904]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:384) ~[patched_1.16.4.jar:git-Purpur-904]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:483) ~[patched_1.16.4.jar:git-Purpur-904]
        at net.frankheijden.serverutils.bukkit.managers.BukkitPluginManager.enablePlugin(BukkitPluginManager.java:192) ~[?:?]
        at net.frankheijden.serverutils.bukkit.commands.CommandServerUtils.onLoadPlugin(CommandServerUtils.java:167) ~[?:?]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) ~[?:?]
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:564) ~[?:?]
        at net.frankheijden.serverutils.bukkit.dependencies.acf.RegisteredCommand.invoke(RegisteredCommand.java:152) ~[?:?]
        at net.frankheijden.serverutils.bukkit.dependencies.acf.BaseCommand.executeCommand(BaseCommand.java:577) ~[?:?]
        at net.frankheijden.serverutils.bukkit.dependencies.acf.BaseCommand.execute(BaseCommand.java:513) ~[?:?]
        at net.frankheijden.serverutils.bukkit.dependencies.acf.RootCommand.execute(RootCommand.java:99) ~[?:?]
        at net.frankheijden.serverutils.bukkit.dependencies.acf.BukkitRootCommand.execute(BukkitRootCommand.java:81) ~[?:?]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:172) ~[patched_1.16.4.jar:git-Purpur-904]
        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.dispatchCommand(CraftServer.java:807) ~[patched_1.16.4.jar:git-Purpur-904]
        at net.minecraft.server.v1_16_R3.PlayerConnection.handleCommand(PlayerConnection.java:2056) ~[patched_1.16.4.jar:git-Purpur-904]
        at net.minecraft.server.v1_16_R3.PlayerConnection.c(PlayerConnection.java:1859) ~[patched_1.16.4.jar:git-Purpur-904]
        at net.minecraft.server.v1_16_R3.PlayerConnection.a(PlayerConnection.java:1812) ~[patched_1.16.4.jar:git-Purpur-904]
        at net.minecraft.server.v1_16_R3.PacketPlayInChat.a(PacketPlayInChat.java:47) ~[patched_1.16.4.jar:git-Purpur-904]
        at net.minecraft.server.v1_16_R3.PacketPlayInChat.a(PacketPlayInChat.java:5) ~[patched_1.16.4.jar:git-Purpur-904]
        at net.minecraft.server.v1_16_R3.PlayerConnectionUtils.lambda$ensureMainThread$1(PlayerConnectionUtils.java:43) ~[patched_1.16.4.jar:git-Purpur-904]
        at net.minecraft.server.v1_16_R3.TickTask.run(SourceFile:18) ~[patched_1.16.4.jar:git-Purpur-904]
        at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.16.4.jar:git-Purpur-904]
        at net.minecraft.server.v1_16_R3.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.16.4.jar:git-Purpur-904]
        at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[patched_1.16.4.jar:git-Purpur-904]
        at net.minecraft.server.v1_16_R3.MinecraftServer.bb(MinecraftServer.java:1205) ~[patched_1.16.4.jar:git-Purpur-904]
        at net.minecraft.server.v1_16_R3.MinecraftServer.executeNext(MinecraftServer.java:1198) ~[patched_1.16.4.jar:git-Purpur-904]
        at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeAll(IAsyncTaskHandler.java:95) ~[patched_1.16.4.jar:git-Purpur-904]
        at net.minecraft.server.v1_16_R3.MinecraftServer.a(MinecraftServer.java:1335) ~[patched_1.16.4.jar:git-Purpur-904]
        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1008) ~[patched_1.16.4.jar:git-Purpur-904]
        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:180) ~[patched_1.16.4.jar:git-Purpur-904]
        at java.lang.Thread.run(Thread.java:832) [?:?]
     
  3. LoneDev

    Supporter

    install protocollib
     
  4. I already have, it's just doesn't work.

    Code (Java):
    [10:36:05 INFO]: [GriefPrevention] Enabling GriefPrevention v16.16.0
    [10:36:05 INFO]: [GriefPrevention] Finished loading configuration.
    [10:36:05 INFO]: [GriefPrevention] 0 total claims loaded.
    [10:36:05 INFO]: [GriefPrevention] Customizable messages loaded.
    [10:36:05 INFO]: [GriefPrevention] Finished loading data (File Mode).
    [10:36:05 INFO]: [GriefPrevention] Boot finished.
    [10:36:05 INFO]: [GriefPreventionStickFix] Enabling GriefPreventionStickFix v1.0-SNAPSHOT
    [10:36:05 ERROR]: Error occurred while enabling GriefPreventionStickFix v1.0-SNAPSHOT (Is it up to date?)
    java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils
            at dev.lone.GriefPreventionStickFix.CustomConfigFile.update(CustomConfigFile.java:50) ~[?:?]
            at dev.lone.GriefPreventionStickFix.CustomConfigFile.<init>(CustomConfigFile.java:36) ~[?:?]
            at dev.lone.GriefPreventionStickFix.Main.onEnable(Main.java:38) ~[?:?]
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.16.4.jar:git-Paper-331]
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:380) ~[patched_1.16.4.jar:git-Paper-331]
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:483) ~[patched_1.16.4.jar:git-Paper-331]
            at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugin(CraftServer.java:501) ~[patched_1.16.4.jar:git-Paper-331]
            at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugins(CraftServer.java:415) ~[patched_1.16.4.jar:git-Paper-331]
            at net.minecraft.server.v1_16_R3.MinecraftServer.loadWorld(MinecraftServer.java:469) ~[patched_1.16.4.jar:git-Paper-331]
            at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:239) ~[patched_1.16.4.jar:git-Paper-331]
            at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:936) ~[patched_1.16.4.jar:git-Paper-331]
            at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:178) ~[patched_1.16.4.jar:git-Paper-331]
            at java.lang.Thread.run(Unknown Source) [?:1.8.0_241]
    Caused by: java.lang.ClassNotFoundException: org.apache.commons.io.FileUtils
            at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_241]
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:182) ~[patched_1.16.4.jar:git-Paper-331]
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:111) ~[patched_1.16.4.jar:git-Paper-331]
            at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_241]
            at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_241]
            ... 13 more
    [10:36:05 INFO]: [GriefPreventionStickFix] Disabling GriefPreventionStickFix v1.0-SNAPSHOT
    [10:36:05 ERROR]: Error occurred while disabling GriefPreventionStickFix v1.0-SNAPSHOT (Is it up to date?)
    java.lang.NullPointerException: null
            at dev.lone.GriefPreventionStickFix.Main.onDisable(Main.java:79) ~[?:?]
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:265) ~[patched_1.16.4.jar:git-Paper-331]
            at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:415) ~[patched_1.16.4.jar:git-Paper-331]
            at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:516) ~[patched_1.16.4.jar:git-Paper-331]
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:384) ~[patched_1.16.4.jar:git-Paper-331]
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:483) ~[patched_1.16.4.jar:git-Paper-331]
            at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugin(CraftServer.java:501) ~[patched_1.16.4.jar:git-Paper-331]
            at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugins(CraftServer.java:415) ~[patched_1.16.4.jar:git-Paper-331]
            at net.minecraft.server.v1_16_R3.MinecraftServer.loadWorld(MinecraftServer.java:469) ~[patched_1.16.4.jar:git-Paper-331]
            at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:239) ~[patched_1.16.4.jar:git-Paper-331]
            at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:936) ~[patched_1.16.4.jar:git-Paper-331]
            at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:178) ~[patched_1.16.4.jar:git-Paper-331]
            at java.lang.Thread.run(Unknown Source) [?:1.8.0_241]
     
  5. LoneDev

    Supporter

    install lonelibs
     
  6. Now the plugin works, thank u. :D