Spigot Crap Prevention GUI 1.1

Prevent specific items from being picked up (Unique for each player!)

  1. Zyrakia submitted a new resource:

    Crap Prevention GUI - Prevent specific items from being picked up (Unique for each player!)

    Read more about this resource...
     
  2. Zyrakia updated Crap Prevention GUI with a new update entry:

    VIP Permissions for bigger crap selection

    Read the rest of this update entry...
     
  3. Error on PaperSpigot 1.15.2 when using /crap

    Code (Text):

    [15:18:57 INFO]: TechnoRunner18 issued server command: /crap
    [15:18:57 INFO]: [CrapPrevention] Player data file for TechnoRunner18 has been created.
    [15:18:57 ERROR]: null
    org.bukkit.command.CommandException: Unhandled exception executing command 'crap' in plugin CrapPrevention v1.1
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[patched_1.15.2.jar:git-Paper-145]
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.15.2.jar:git-Paper-145]
            at org.bukkit.craftbukkit.v1_15_R1.CraftServer.dispatchCommand(CraftServer.java:752) ~[patched_1.15.2.jar:git-Paper-145]
            at net.minecraft.server.v1_15_R1.PlayerConnection.handleCommand(PlayerConnection.java:1825) ~[patched_1.15.2.jar:git-Paper-145]
            at net.minecraft.server.v1_15_R1.PlayerConnection.a(PlayerConnection.java:1633) ~[patched_1.15.2.jar:git-Paper-145]
            at net.minecraft.server.v1_15_R1.PacketPlayInChat.a(PacketPlayInChat.java:47) ~[patched_1.15.2.jar:git-Paper-145]
            at net.minecraft.server.v1_15_R1.PacketPlayInChat.a(PacketPlayInChat.java:5) ~[patched_1.15.2.jar:git-Paper-145]
            at net.minecraft.server.v1_15_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:23) ~[patched_1.15.2.jar:git-Paper-145]
            at net.minecraft.server.v1_15_R1.TickTask.run(SourceFile:18) ~[patched_1.15.2.jar:git-Paper-145]
            at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.15.2.jar:git-Paper-145]
            at net.minecraft.server.v1_15_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.15.2.jar:git-Paper-145]
            at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[patched_1.15.2.jar:git-Paper-145]
            at net.minecraft.server.v1_15_R1.MinecraftServer.ba(MinecraftServer.java:1038) ~[patched_1.15.2.jar:git-Paper-145]
            at net.minecraft.server.v1_15_R1.MinecraftServer.executeNext(MinecraftServer.java:1031) ~[patched_1.15.2.jar:git-Paper-145]
            at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119) ~[patched_1.15.2.jar:git-Paper-145]
            at net.minecraft.server.v1_15_R1.MinecraftServer.sleepForTick(MinecraftServer.java:1015) ~[patched_1.15.2.jar:git-Paper-145]
            at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:938) ~[patched_1.15.2.jar:git-Paper-145]
            at java.lang.Thread.run(Unknown Source) [?:1.8.0_231]
    Caused by: java.lang.NullPointerException
            at java.util.Objects.requireNonNull(Unknown Source) ~[?:1.8.0_231]
            at me.zyrakia.crap.files.manager.getPlayerCrap(manager.java:102) ~[?:?]
            at me.zyrakia.crap.gui.defaultGUI.openInv(defaultGUI.java:19) ~[?:?]
            at me.zyrakia.crap.files.manager.addDefaults(manager.java:81) ~[?:?]
            at me.zyrakia.crap.files.manager.createPlayerYML(manager.java:51) ~[?:?]
            at me.zyrakia.crap.commands.openCrap.onCommand(openCrap.java:17) ~[?:?]
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[patched_1.15.2.jar:git-Paper-145]
            ... 17 more

     
     
  4. This error happens if the inventory save for that player doesn't exist, it must have been deleted at some point, or there must have been a previous error stating that the creation of that inventory failed for the player.