Spigot Crates - The easy to configure Crates Plugin! [1.8 / 1.12-1.17] [Open Source] 1.15

The easy to configure Crates Plugin!

  1. Zarosch submitted a new resource:

    Crates - Just simple crates.

    Read more about this resource...
     
  2. This looks amazing and with 1.14 support! If you could add some of the features maybe one day close to BossShop this could be a huge plugin! I will mess around with this for fun for now thank you again.
     
    • Friendly Friendly x 1
  3. Kannst du evtl. das über eine Truhe laufen lassen ? Das man eine Truhe öffnet dann die Kisten sieht ?

    Mein Vorschlag wäre halt:
    + Gui wo man einfach die Items rein tut sodass er Lore, Enchants etc automatisch übernimmt.
    + Es über eine Chest laufen lassen
    + Gewinn Chance pro Item z.B Melone 10% Egg 10% und Spawner 1%, sodass Spawner beim öffnen der Truhe geringer vorkommt.
     
    • Agree Agree x 1
  4. I made a Spanish translation, if you want, use it:
    Code (Text):
    message:
      prefix: '&f[&eCrates&f] '
      error:
        nopermissions: '&cNo tienes permiso.'
        playernotfound: '&cJugador no encontrado.'
        nonumber: '&cPor favor ingresa un número válido.'
        syntax: '&cError de sintaxis, por favor use: %command'
        cratenotfound: '&cNo se pudo encontrar esa crate.'
      itemwon: '&aHas ganado: &f&o%win'
      command:
        help:
          reload: '&6/crates reload &fRecarga la configuración.'
          give: '&6/crates give <crate> [jugador] &fDa una caja.'
          list: '&6/crates list &fLista de crates disponibles.'
        reloaded: '&aConfiguración recargada.'
        give: '&aLe has dado una crate &f&o%crate&a a &f&o%player&a.'
        list: '&6Crates disponibles:&e %crates'
     
    PD: in english translation you put [Spieler] in "give:" message
     
    • Friendly Friendly x 1
  5. Hello Karagra,
    thank you and no panic I have planned to add more features to this plugin. If you have an idea to improve this plugin, let me know. ;)

    Hallo DesperoKF,
    danke für deine Vorschläge, ich werde sie mir notieren und in den nächsten updates hinzufügen.

    Hello zuhir,
    thank you for your Spanish translation. I will add your translation to one of the next updates.
    And the bug you found in my English translation will be fixed too.
     
    • Like Like x 1
  6. Why in /crate (help page) the base command is /crates? "/crates" does not exist
     
    • Like Like x 1
  7. That's a good question. :unsure: I will add now an alias.
     
  8. Is possible hide the dragon egg enchants?
     
    • Useful Useful x 1
  9. Zarosch updated Crates [1.8 / 1.12-1.14] with a new update entry:

    1.5

    Read the rest of this update entry...
     
    • Friendly Friendly x 1
  10. Is it in your plans to add a system of percentages for rewards and different animations?
     
  11. Yes, @DesperoKF has requested percentages for rewards too and is on my todo list.
    Different animations are possible but I will add firstly more functionality stuff.
    Do you have ideas for other animations?
     
  12. Some like this?
    [​IMG]
    (UltraChest plugin animation)

    I have an error when use /crate give (without parameters)
    Code (Text):
    zuhir__ issued server command: /crate give
    [14:58:21] [Server thread/ERROR]: null
    org.bukkit.command.CommandException: Unhandled exception executing command 'crate' in plugin Crates v1.5
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[%5b1.8.8%5d%20Spigot.jar:git-Spigot-db6de12-18fbb24]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[%5b1.8.8%5d%20Spigot.jar:git-Spigot-db6de12-18fbb24]
        at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) ~[%5b1.8.8%5d%20Spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [%5b1.8.8%5d%20Spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [%5b1.8.8%5d%20Spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [%5b1.8.8%5d%20Spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [%5b1.8.8%5d%20Spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [%5b1.8.8%5d%20Spigot.jar:git-Spigot-db6de12-18fbb24]
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_192]
        at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_192]
        at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [%5b1.8.8%5d%20Spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [%5b1.8.8%5d%20Spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [%5b1.8.8%5d%20Spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [%5b1.8.8%5d%20Spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [%5b1.8.8%5d%20Spigot.jar:git-Spigot-db6de12-18fbb24]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_192]
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
        at me.velz.crate.commands.CratesCommand.onCommand(CratesCommand.java:53) ~[?:?]
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[%5b1.8.8%5d%20Spigot.jar:git-Spigot-db6de12-18fbb24]
        ... 15 more
    What are the "nonumber" and "syntax" messages for? Does it appear when you put some command?
     
    • Like Like x 1
  13. Zarosch updated Crates [1.8 / 1.12-1.14] with a new update entry:

    1.6

    Read the rest of this update entry...
     
  14. The error should be fixed now with the unused syntax message and the nonumber message is still unused.
     
  15. I can't use "/crates give" in rewards, i get this error:
    Code (Text):
    [Crates] Task #81 for Crates v1.6 generated an exception
    org.bukkit.command.CommandException: Unhandled exception executing command 'crate' in plugin Crates v1.6
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[%5b1.8.8%5d%20Spigot.jar:git-Spigot-db6de12-18fbb24]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[%5b1.8.8%5d%20Spigot.jar:git-Spigot-db6de12-18fbb24]
        at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) ~[%5b1.8.8%5d%20Spigot.jar:git-Spigot-db6de12-18fbb24]
        at me.velz.crate.objects.CrateItem.lambda$runCommands$0(CrateItem.java:33) ~[?:?]
        at java.util.ArrayList.forEach(Unknown Source) ~[?:1.8.0_192]
        at me.velz.crate.objects.CrateItem.runCommands(CrateItem.java:32) ~[?:?]
        at me.velz.crate.objects.CrateOpening.lambda$run$0(CrateOpening.java:50) ~[?:?]
        at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71) ~[%5b1.8.8%5d%20Spigot.jar:git-Spigot-db6de12-18fbb24]
        at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [%5b1.8.8%5d%20Spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:723) [%5b1.8.8%5d%20Spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [%5b1.8.8%5d%20Spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [%5b1.8.8%5d%20Spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [%5b1.8.8%5d%20Spigot.jar:git-Spigot-db6de12-18fbb24]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_192]
    Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.v1_8_R3.command.ColouredConsoleSender cannot be cast to org.bukkit.entity.Player
        at me.velz.crate.commands.CratesCommand.onCommand(CratesCommand.java:69) ~[?:?]
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[%5b1.8.8%5d%20Spigot.jar:git-Spigot-db6de12-18fbb24]
        ... 13 more
    My crates.yml (in spanish, sorry):
    Code (Text):
    crates:
      Epica:
        name: Crate épica
        item:
          material: ENDER_CHEST
          amount: 1
          durability: 0
          meta:
            displayName: §d§lCrate épica
            showenchant: false
            lore:
            - '§7Esta crate contiene uno de los siguientes:'
            - §7
            - §aHuevo §8x2
            - §aSandía §8x5
            - §a????? §8x?
            - §7
            - '§7Calidad: §e✰✰✰✰§7✰'
            - §7
            - §e¡Clic para abrir!
          enchantments:
            unsafe:
            - LUCK:1
        content:
          egg:
            name: Huevo x2
            chance: 40
            item:
              material: EGG
              amount: 2
              durability: 0
              meta:
                displayName: §aHuevo §8x2
            commands:
            - give %player minecraft:egg 2
          melon:
            name: Sandía x5
            chance: 40
            item:
              material: MELON
              amount: 5
              durability: 0
              meta:
                displayName: §aSandía §8x5
            commands:
            - give %player minecraft:melon 5
          diamond:
            name: Diamante x1
            chance: 10
            item:
              material: DIAMOND
              amount: 1
              durability: 0
              meta:
                displayName: §aDiamante §8x1
            commands:
            - give %player minecraft:diamond 1
          epica:
            name: Crate épica
            chance: 10
            item:
              material: ENDER_CHEST
              amount: 1
              durability: 0
              meta:
                displayName: §d§lCrate épica §8x1
            commands:
            - crate give Epica %player