MC Case Opening | 1.8 - 1.12.2 1.6

Case Opening in Minecraft | Custom Case Loot | Highly Configurable | FREE

  1. DomeDD
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    [​IMG]
    This plugin is not longer continued because of demotivation. Source code can be found here
    Features:
    • Supports Java8
    • Supports 1.8 - 1.12.2 Server Versions
    Fully functional case opening system
    • To open a case you have to own a matching key
    • 5 different tiers of cases and keys
    • Custom case loot
    • Spin animation
    • Minecraft items as currency to buy cases and keys, optional vault and economy support
    • Case loot broadcast
    and much more!

    If you find any Bugs, report them to me instead of reviewing bad!


    [​IMG] [​IMG]
    [​IMG] [​IMG]


    How to open a Case:
    1. Buy cases and keys in the shop
    2. Rightclick on the chest in your hand
    3. Open the case


    Commands & Permissions:
    • /mcco help - None
    • /mcco shop - None
    • /mcco spawnvillager - MCCO.VillagerShop
    • /mcco removevillager- MCCO.VillagerShop
    • /mcco case <tier> <amount> - MCCO.CheatCase
    • /mcco key <tier> <amount> - MCCO.CheatKey
    Code (Text):
    permissions:
         MCCO.*:
             children:
                MCCO.VillagerShop: true
                MCCO.CheatCase: true
                MCCO.CheatKey: true


    Cases:
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]


    Datas:
    The sound names and enchantments in the config.yml and profits.yml are 1.9+ names. There is a link in the file for the older sound names!

    Code (Text):
    #############################
    ## MCCaseOpening by DomeDD ##
    #############################
    # If you don't know the Minecraft Sound names, take a look on this page: https://www.spigotmc.org/wiki/cc-sounds-list/

    Prices:
         # '1' == Minecraft; '2' == Vault
         Currency Mode: '1'
         # Only important if 'Prices.Currency Mode' == 1
         Case Currency Item: 263
         # Only important if 'Prices.Currency Mode' == 1
         Key Currency Item: 388
    Inventories:
         Pre Case:
             Possible Items Item Name: '&3Possible Items'
             Cancel Item Name: '&3Cancel'
             Open Item Name: '&3Open'
             Possible Items Lore: '&3Chance: &e[CHANCE]%'
    Messages:
         Opening Case: '&8[&6MCCaseOpening&8] &7&oOpening case...'
         No Keys: '&8[&6MCCaseOpening&8] &cYou are out of Keys. &3/mcco shop &cto buy one.'
         Not Enough Money: '&8[&6MCCaseOpening&8] &cYou don''t have enough resources to buy this item.'
         # Only enabled if 'Prices.Currency Mode' == 2
         Item Bought: '&8[&6MCCaseOpening&8] &e[AMOUNT]$ &7has been removed from your balance!'
         # Only enabled if 'Prices.Currency Mode' == 2
         Money Added: '&8[&6MCCaseOpening&8] &e[AMOUNT]$ &7has been added to your balance!'
         Item Found Announce: '&8[&6MCCaseOpening&8] &3[PLAYER] &8found &e[AMOUNT] [ITEM] &8in a [CASE]'
    Sounds:
         Open A Case: BLOCK_ENDERCHEST_OPEN
         Close A Case: BLOCK_ENDERCHEST_CLOSE
         Item Roll: ENTITY_EXPERIENCE_ORB_PICKUP
         Item Win: ENTITY_PLAYER_LEVELUP
    Item Roll:
         Rolls: 20
         # Delay in ticks (20 ticks == 1 second)
         Delay: 2
    Names:
         Shop Inventory: '&6MCCaseOpening Shop'
         Tier 1 Case:
             Name: '&1Mil-Spec Case'
             Lore: '&3Price: &e[PRICE] Coal'
         Tier 2 Case:
             Name: '&5Restricted Case'
             Lore: '&3Price: &e[PRICE] Coal'
         Tier 3 Case:
             Name: '&dClassified Case'
             Lore: '&3Price: &e[PRICE] Coal'
         Tier 4 Case:
             Name: '&4Covert Case'
             Lore: '&3Price: &e[PRICE] Coal'
         Tier 5 Case:
             Name: '&6Premium Case'
             Lore: '&3Price: &e[PRICE] Coal'
         Tier 1 Key:
             Name: '&1Mil-Spec Key'
             Lore: '&3Price: &e[PRICE] Emerald'
         Tier 2 Key:
             Name: '&5Restricted Key'
             Lore: '&3Price: &e[PRICE] Emeralds'
         Tier 3 Key:
             Name: '&dClassified Key'
             Lore: '&3Price: &e[PRICE] Emeralds'
         Tier 4 Key:
             Name: '&4Covert Key'
             Lore: '&3Price: &e[PRICE] Emeralds'
         Tier 5 Key:
             Name: '&6Premium Key'
             Lore: '&3Price: &e[PRICE] Emeralds'
     
    Code (Text):
    Prices:
      Tier 1:
        Case: 5
        VIP Case: 1
        Key: 5
        VIP Key: 1
      Tier 2:
        Case: 10
        VIP Case: 5
        Key: 10
        VIP Key: 5
      Tier 3:
        Case: 20
        VIP Case: 10
        Key: 20
        VIP Key: 10
      Tier 4:
        Case: 30
        VIP Case: 20
        Key: 30
        VIP Key: 20
      Tier 5:
        Case: 60
        VIP Case: 50
        Key: 60
        VIP Key: 50
    Code (Text):
    # ID:SubID, MaxAmount, Chance, Name, Enchantment, EnchantmentLevel
    # ID:SubID, MaxAmount, Chance, Name, Money amount$
    # Available Enchantments: MENDING, DIG_SPEED, DAMAGE_ALL, PROTECTION_ENVIRONMENTAL, ARROW_DAMAGE, ARROW_INFINITE, FIRE_ASPECT, SILK_TOUCH, LOOT_BONUS_MOBS, LOOT_BONUS_BLOCKS, PROTECTION_FALL, FROST_WALKER, WATER_WORKER, DURABILITY, ARROW_FIRE
    # 9 items per case tier
    Profits:
      Tier 1:
        Profits:
        - 371:0, 10, 25, &610$
        - 263:0, 64, 15, &1Coal
        - 287:0, 64, 15, &1String
        - 351:1, 32, 10, &1Red Dye
        - 15:0, 20, 10, &1Iron Ore
        - 412:0, 16, 10, &5Cooked Rabbit
        - 300:0, 1, 9, &dLeather Leggings
        - 303:0, 1, 5, &4Chainmail Chestplate
        - 264:0, 1, 1, &6Diamond
      Tier 2:
        Profits:
        - 4:0, 64, 25, &7Cobblestone
        - 12:0, 64, 15, &1Sand
        - 364:0, 20, 10, &1Steak
        - 15:0, 40, 15, &1Iron Ore
        - 331:0, 32, 10, &1Redstone
        - 14:0, 16, 10, &5Gold Ore
        - 317:0, 1, 9, &dGold Boots
        - 307:0, 1, 5, &4Iron Chestplate
        - 276:0, 1, 1, &6Diamond Sword
      Tier 3:
        Profits:
        - 338:0, 64, 25, &1Sugarcane
        - 334:0, 64, 15, &1Leather
        - 261:0, 1, 10, &1Bow
        - 267:0, 1, 15, &1Iron Sword
        - 351:4, 32, 10, &1Blue Dye
        - 378:0, 16, 10, &5Magma Cream
        - 130:0, 1, 9, &dEnder Chest
        - 312:0, 1, 5, &4Diamond Leggings
        - 278:0, 1, 1, &6Diamond Pickaxe
      Tier 4:
        Profits:
        - 265:0, 64, 25, &1Iron Ingot
        - 266:0, 64, 15, &1Gold Ingot
        - 369:0, 20, 15, &1Blaze Rod
        - 322:0, 20, 10, &1Golden Apple
        - 450:0, 10, 10, &1Shulker Shell
        - 414:0, 8, 10, &5Rabbit Foot
        - 312:0, 1, 9, &dDiamond Leggings
        - 311:0, 1, 5, &4Diamond Chestplate
        - 443:0, 1, 1, &6Elytra
      Tier 5:
        Profits:
        - 384:0, 64, 25, &1Experience Bottle
        - 370:0, 64, 15, &1Ghast Tear
        - 261:0, 1, 15, &1Bow, MENDING, 1
        - 278:0, 1, 10, &1Diamond Pickaxe, MENDING, 1
        - 276:0, 1, 10, &5Diamond Sword, MENDING, 1
        - 312:0, 1, 10, &dDiamond Leggings, MENDING, 1
        - 311:0, 1, 9, &4Diamond Chestplate, MENDING, 1
        - 443:0, 1, 5, &6Elytra, MENDING, 1
        - 322:1, 1, 1, &2Golden Apple
    Code (Text):
    Profits:
      Tier 1:
        Profits:
        - 337:0, 64, 25, &1Clay
        - 263:0, 64, 15, &1Coal
        - 287:0, 64, 15, &1String
        - 351:1, 32, 10, &1Red Dye
        - 15:0, 20, 10, &1Iron Ore
        - 412:0, 16, 10, &5Cooked Rabbit
        - 300:0, 1, 9, &dLeather Leggings
        - 303:0, 1, 5, &4Chainmail Chestplate
        - 371:0, 1, 1, &61000$



    How to use it on your server:
    1. Install MC Case Opening on your Server
    2. Set up 'Prices.Currency Mode' to "Vault" if you want to use Vault and a economy plugin. Otherwise go to step 4
    3. Install Vault and your economy plugin on your server (optional)
    4. Set up everything in the config.yml
    5. Perform '/mcco' or '/mcco help' to get help ingame
    6. Spawn shop villagers with '/mcco spawnvillager'


    ToDo List:
    • Custom case item types and key item types []
    [] = coming soon [] = working on [] = coming in the next update [] = implemented


    Terms of Service
    • Describe errors, don't say 'it does not work'
    • Don't place a bad review if you didn't ask me for support
    • The review section is NOT the place to ask for support or to report bugs/request features, PM me or post it into the discussion
    You are not allowed to decompile/modify and/or redistribute the plugin without permission from me


    Does this Plugin support Java7? ~ Not it doesn't. Minecraft 1.12 requires Java8
    • Does this Plugin support older Minecraft versions? ~ It should work on 1.7 but it's not tested
    • I get an error like this: java.lang.IllegalArgumentException: No enum constant org.bukkit.Sound.ENTITY_ITEM_PICKUP. How to fix? ~ Make sure you use the correct sound names which are supported by your minecraft version
    • Some features of this Plugin don't work ~ Describe your Problem in the 'Discussion' section and make sure you use the correct Java and Minecraft Version
    Can I get the Source Code? ~ Sorry but you can't
    Can you develope Plugins for my Server/Network ~ Sorry but I can't
    If you like this resource and want to help me to keep this plugin for free,
    [​IMG]
    That would help me a lot!

Recent Updates

  1. Bug fix
  2. Bug fix
  3. Fixed some bugs

Recent Reviews

  1. Brokeskill
    Brokeskill
    4/5,
    Version: 1.6
    Wie kann ich da einstellen das man z.b votet um einen key da zu bekommen und wie kann ich mehr keys da rein machen also mehr crates
  2. sewek333
    sewek333
    3/5,
    Version: 1.6
    nice plugin, update 1.16 plsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
  3. Zoobastik
    Zoobastik
    3/5,
    Version: 1.6
    Такой себе плагин , он то по сути хороший но когда покупает например за уголь, уголь но не забирает , можно покупать вечно за один и тот же предмет
  4. EnderCrystalGuy
    EnderCrystalGuy
    5/5,
    Version: 1.5
    Nice plugin, but can u add a command mode to give players coins or ranks?

    ................
  5. Mitsu2k
    Mitsu2k
    1/5,
    Version: 1.5
    WTF Dude, where can i find the file? To download the old sounds... NOT WORKING IN 1.8.8
    1. DomeDD
      Author's Response
      Just change the sound names dude wtf!?
  6. Venntox
    Venntox
    1/5,
    Version: 1.5
    Plugin not working

    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at org.bukkit.craftbukkit.v1_8_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:228) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at org.bukkit.craftbukkit.v1_8_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:195) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at org.bukkit.craftbukkit.v1_8_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:191) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:717) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:52) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:1) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_144]
    at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_144]
    at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_144]
    Caused by: java.lang.IllegalArgumentException: No enum constant org.bukkit.Sound.BLOCK_ENDERCHEST_OPEN
    at java.lang.Enum.valueOf(Unknown Source) ~[?:1.8.0_144]
    at org.bukkit.Sound.valueOf(Sound.java:1) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
    at CaseOpening.Listeners.InvClickListener.onItemInteract(InvClickListener.java:396) ~[?:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_144]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_144]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_144]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_144]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
    ... 18 more
    [00:47:38] [Server thread/ERROR]: Could not pass event PlayerInteractEvent to MCCaseOpening v1.5
    1. DomeDD
      Author's Response
      Its not working because you did not read the whole plugin overview. You set a wrong sound name in the config.yml. please create a new review
  7. xMrJoint
    xMrJoint
    4/5,
    Version: 1.5
    The plugin does not save my config. Spigot Paper Server Engine 1.12.2 NEW. In addition, there is no command to reload the configuration, I am missing it.
  8. MkFromDK
    MkFromDK
    3/5,
    Version: 1.4
    Very good. but i dont know how to open them?? can you help me with that?????????
  9. YossiMan
    YossiMan
    4/5,
    Version: 1.3
    Wont remove items after buyning a crate or key!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  10. Tetech89
    Tetech89
    5/5,
    Version: 1.2
    Nice Plugin, keep up the good work, would like to see it Continued and added more Features! Well done!!!
    1. DomeDD
      Author's Response
      Thank you very much! :)