Solved CratesPlus

Discussion in 'Spigot Plugin Help' started by Escyth, Apr 21, 2017.

  1. I have this problem from like a week ago or something like that. I can view the rewards by left-clicking but when I try to redeem the key using right-click it opens the crate as a normal chest, also without the key.
     
  2. Hi,

    I would Highly suggest you try the following.

    1. Make a backup of the cratesplus folder. (Located in the plugins folder)
    2. Delete the cratesplus folder.
    3. Try opening the crate again and seeing if the same thing happens.

    -HotShot
     
  3. Same problem, Did the exact steps.
     
  4. Code (Text):
    # [][][][][][][][][][][][][][][][][][][][][]
    #  CratesPlus V4.3.3 Config
    # [][][][][][][][][][][][][][][][][][][][][]
    # ------------------------------------------
    # There are many placeholders that can now be used withing the config and messages file, placeholders are as followed:
    # - %name% - Replaces with the players name, Example: "Notch".
    # - %displayname% - Replaces with the players display name, Example: "[Owner] Notch".
    # - %uuid% - Replaces with the players UUID.
    # - %crate% - The crate types name.
    # - %prize% - The name of the winning.
    # - %percentage% - Percentage of the winning, useful for "Chance Message".
    # ------------------------------------------
    # Don't change the config version!

    Config Version: 6
    Update Checks: true
    Update Branch: spigot
    Metrics: true
    Default Opener: NoGUI
    Default Cooldown: 5
    Crate Protection: true
    Disable Key Swapping: false
    Default Hologram Text:
    - '%crate%'
    Crates:
      Common:
        Key:
          Item: TRIPWIRE_HOOK
          Name: '%type% Crate Key'
          Enchanted: true
        Knockback: 0.0
        Broadcast: false
        Firework: false
        Preview: true
        Block: CHEST
        Color: GREEN
        Winnings:
          '1':
            Type: ITEM
            Item Type: GOLD_INGOT
            Item Data: 0
            Name: '&6&lEarn from $500 to $1500'
            Amount: 1
            Enchantments: []
            Lore:
            - ยง7Right-Click to Redeem!
         
          '2':
            Type: COMMAND
            Item Type: CHAINMAIL_HELMET
            Commands:
            - 'give %name% chainmail_helmet 1'
            - 'give %name% chainmail_chestplate 1'
            - 'give %name% chainmail_leggings 1'
            - 'give %name% chainmail_boots 1'
            - 'give %name% iron_sword 1'
            Name: '&6&lCommon Kit'
            Amount: 1
            Enchantments: []
            Lore: []
        Opener: NoGUI
      Rare:
        Key:
          Item: TRIPWIRE_HOOK
          Name: '%type% Crate Key'
          Enchanted: true
        Knockback: 0.0
        Broadcast: false
        Firework: false
        Preview: true
        Block: CHEST
        Color: BLUE
        Winnings:
          '1':
            Type: ITEM
            Item Type: GOLD_INGOT
            Item Data: 0
            Name: '&6&lEarn from $2000 to $2500'
            Amount: 1
            Enchantments: []
            Lore:
            - ยง7Right-Click to Redeem!
        Opener: NoGUI
      Mythical:
        Key:
          Item: TRIPWIRE_HOOK
          Name: '%type% Crate Key'
          Enchanted: true
        Knockback: 0.0
        Broadcast: false
        Firework: false
        Preview: true
        Block: CHEST
        Color: DARK_PURPLE
        Winnings:
          '1':
            Type: ITEM
            Item Type: GOLD_INGOT
            Item Data: 0
            Name: '&6&lEarn from $5000 to $10000'
            Amount: 1
            Enchantments: []
            Lore:
            - ยง7Right-Click to Redeem!
        Opener: NoGUI
      Legendary:
        Key:
          Item: TRIPWIRE_HOOK
          Name: '%type% Crate Key'
          Enchanted: true
        Knockback: 0.0
        Broadcast: false
        Firework: false
        Preview: true
        Block: CHEST
        Color: GOLD
        Opener: NoGUI
        Winnings:
          '1':
            Type: ITEM
            Item Type: GOLD_INGOT
            Item Data: 0
            Name: '&6&lEarn from $20000 to $50000'
            Amount: 1
            Enchantments: []
            Lore:
            - ยง7Right-Click to Redeem!
     
    Code (Text):

    21.04 17:57:11 [Server] ERROR Could not pass event PlayerInteractEvent to CratesPlus v4.3.3
    21.04 17:57:11 [Server] INFO org.bukkit.event.EventException
    21.04 17:57:11 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot-1.8.8.jar:git-Spigot-e4d4710-e1ebe52]
    21.04 17:57:11 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.8.8.jar:git-Spigot-e4d4710-e1ebe52]
    21.04 17:57:11 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot-1.8.8.jar:git-Spigot-e4d4710-e1ebe52]
    21.04 17:57:11 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot-1.8.8.jar:git-Spigot-e4d4710-e1ebe52]
    21.04 17:57:11 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:228) [spigot-1.8.8.jar:git-Spigot-e4d4710-e1ebe52]
    21.04 17:57:11 [Server] INFO at net.minecraft.server.v1_8_R3.PlayerInteractManager.interact(PlayerInteractManager.java:463) [spigot-1.8.8.jar:git-Spigot-e4d4710-e1ebe52]
    21.04 17:57:11 [Server] INFO at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:759) [spigot-1.8.8.jar:git-Spigot-e4d4710-e1ebe52]
    21.04 17:57:11 [Server] INFO at net.minecraft.server.v1_8_R3.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:52) [spigot-1.8.8.jar:git-Spigot-e4d4710-e1ebe52]
    21.04 17:57:11 [Server] INFO at net.minecraft.server.v1_8_R3.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:1) [spigot-1.8.8.jar:git-Spigot-e4d4710-e1ebe52]
    21.04 17:57:11 [Server] INFO at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.8.8.jar:git-Spigot-e4d4710-e1ebe52]
    21.04 17:57:11 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_112]
    21.04 17:57:11 [Server] INFO at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_112]
    21.04 17:57:11 [Server] INFO at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [spigot-1.8.8.jar:git-Spigot-e4d4710-e1ebe52]
    21.04 17:57:11 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [spigot-1.8.8.jar:git-Spigot-e4d4710-e1ebe52]
    21.04 17:57:11 [Server] INFO at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot-1.8.8.jar:git-Spigot-e4d4710-e1ebe52]
    21.04 17:57:11 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot-1.8.8.jar:git-Spigot-e4d4710-e1ebe52]
    21.04 17:57:11 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot-1.8.8.jar:git-Spigot-e4d4710-e1ebe52]
    21.04 17:57:11 [Server] INFO at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112]
    21.04 17:57:11 [Server] INFO Caused by: java.lang.NullPointerException
    21.04 17:57:11 [Server] INFO at plus.crates.Listeners.PlayerInteract.onPlayerInteract(PlayerInteract.java:77) ~[?:?]
    21.04 17:57:11 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_112]
    21.04 17:57:11 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_112]
    21.04 17:57:11 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_112]
    21.04 17:57:11 [Server] INFO at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_112]
    21.04 17:57:11 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.8.8.jar:git-Spigot-e4d4710-e1ebe52]
    21.04 17:57:11 [Server] INFO ... 17 more
     
     
    #4 Escyth, Apr 21, 2017
    Last edited: Apr 21, 2017
  5. Hi,

    I would highly suggest contacting the creator of cratesplus via PM. His plugin works from 1.7 to 1.11 so there are bound to be some issues depending on what jar files he used to compile his plugin. So send over you're error and the version you are currently running on your server.

    -HotShot
     
  6. I would highly suggest using the latest version of the plugin...
     
  7. @ConnorLinfoot - Already downloaded 4.4 and Thanks for fixing this issue! (Active and Helpful Developer)