[MECH] Mystery Box v1.4 - Create Mystery Box's Like In COD Zombies [935]

Discussion in 'Inactive/Unsupported Plugins' started by Jayjay110, May 31, 2011.

  1. Offline

    Jayjay110

    Mystery Box - Create Mystery Box's Like In COD Zombies!:

    Current Version: 1.4

    Basically this plugin allows you to create Mystery Box's like in black ops zombies etc. To use a Mystery Box right or left click it twice within 2 seconds and you can buy a random item that you specify in the config file. One thing you will notice is there are probabilities, technically the only way they become probabilities if all the items probabilities in the config file, add up to 100%, else it will just create a random guess will close probabilities but not direct ones.

    Mystery Box's are Chests! (Just so you know lol :p)

    To use type /mb or /mysterybox it doesnt matter:
    /mb create <name> - This creates Mystery Boxes, type this then place or click on a chest
    /mb remove - Toggles Removing Mode
    /mb toggle - Globally toggles Mystery Box's On and Off (Still protects Mystery Boxes from breaking)
    /mb list - List all Mystery Box's


    Features:
    • Allows you to create Mystery Box's
    • Permissions
    • iConomy 4 & 5 Support
    • BOSE Economy Support
    • Essentials Economy Support
    • Op Defaulting
    • Console command support (Toggle only!)
    • Config File Support
    • MySQL and SQLite Support
    • Multi-World Support
    • Saving and Loading of different items to use
    • Automatic Config Generation
    • Cool lightning effect on purchase
    • Ability to modify price, items, amounts and probabilities :D Special thanks to @garbagemule who helped me with doing the items :D
    • Auto-Updating Built in :)
    • Choice to enable or disable lightning effect!
    • Customizable messages! (Includes the colour coding system :D!)
    • When you are in range of a mystery box you get a delightful message :p
    • Enabling or Disabling Economy / Permissions
    • Allows you to set the box's access to free
    Config:

    Default Config (Generates Automatically!) (open)

    PHP:
    Enabled On Startuptrue
    Permissions
    ?: false
    Use An Economy Plugin?(False means everythings free!): false
    Price
    950.0
    Item Velocity
    0
    Database Settings
    :
        
    MySQLfalse
        Host
    Localhost
        User
    MysteryBox
        Pass
    '12345'
        
    DatabaseMysteryBox
    Lightning Effect
    ?: false
    Messages
    :
        
    'You do not have enough money, you need: ''§cYou do not have enough money, you
            need: '
        'Creation of Mystery Box''s - Started! Name: '
    '§bCreation of Mystery Box''s
            - Started! Name: '
        
    Creation of Mystery Box's - Stopped!: §cCreation of Mystery Box'Stopped!
        
    'Creation of Mystery Box''s - Complete! Name: ''§aCreation of Mystery Box''s
            - Complete! Name: '
        
    Removing of Mystery Box's - Started!: §bRemoving of Mystery Box'Started!
        
    Removing of Mystery Box's - Stopped!: §cRemoving of Mystery Box'Stopped!
        
    You have successfully removed a Mystery Box!: §cYou have successfully removed a Mystery Box!
        
    You forgot to specify a name for the Mystery Box!: §cYou forgot to specify a name for the Mystery Box!
        
    Your Mystery Box name may not contain spaces!: §cYour Mystery Box name may not contain spaces!
        
    That block is already a Mystery Box!: §cThat block is already a Mystery Box!
        
    There is already a Mystery Box with that nameplease choose another!: §cThere is already a Mystery Box with that nameplease choose another!
        
    Stop Creating Mystery Box's First!: §cStop Creating Mystery Box's First!
        
    Stop Removing Mystery Box's First!: §cStop Removing Mystery Box's First!
        
    'To Create Mystery Box''s Type: ''To Create Mystery Box''s Type: '
        'To Toggle The Mystery Box''s Plugin Type: '
    'To Toggle The Mystery Box''s Plugin
            Type: '
        'To Remove Mystery Box''s Type: '
    'To Remove Mystery Box''s Type: '
        'You just got the item: '
    '§aYou just got the item: '
        'For: '
    '§aFor: '
        'You are currently near the Mystery Box: '
    '§aYou are currently near the Mystery
            Box: '
        'Hit the box again to confirm your purchase! (It costs: '
    '§bHit the box again
            to confirm your purchase! (It costs: '
    Items:
        
    STONE:
            
    Amount'1'
            
    Probability'1'
        
    GRASS:
            
    Amount'1'
            
    Probability'1'


    Permissions:
    Permissions (open)

    • MysteryBox.Toggle - Gives access to /mb toggle
    • MysteryBox.Create - Gives access to /mb create
    • MysteryBox.Remove - Gives access to /mb remove
    • MysteryBox.Use - Gives access to using Mystery Boxes
    • MysteryBox.List - Gives access to /mb list



    Download

    Source Code

    Todo (open)



    Bugs (open)

    • No permissions, when permissions isn't enabled!
    • Null pointer on player interact :3
    • Command errors
    • Permission errors
    • Stupid block got destroyed by non permission players
    • Hashmap concurrent error thingy Thankyou to @rcjrrjcr for helping on this :D


    Changelog:
    Version 1.4:
    • Fixed a silly bug on block breaking
    • Added free box use
    • Added economy and permission choice
    • Added item velocity fun!
    • Small code fixes
    Version 1.3:
    • MAJOR UPDATE*
    • Fixed tons of bugs
    • Added Auto-Updating script
    • Support for Bose Economy and Essentials Economy
    • More Options
    Changelog (Long) (open)

    Version 1.4:
    • Fixed a silly bug on block breaking
    • Added free box use
    • Added economy and permission choice
    • Added item velocity fun!
    • Small code fixes
    Version 1.3:
    • MAJOR UPDATE*
    • Fixed tons of bugs
    • Added Auto-Updating script
    • Support for Bose Economy and Essentials Economy
    • More Options
    Version 1.2:

    • Fixed Null pointer exception :p
    Version 1.1:

    • Fixed No Permissions bug
    Version 1.0:

    • Initial Release
     
    rdemanta, NEO and kahlilnc like this.
  2. Offline

    embty

    MB is breaking :( boxes suddenly cant be used and act as a normal chest and /mb remove doesnt work it keeps poping up the help and commands. bukkit 1060
     
  3. Offline

    darkcammo

    has anyone got this working on 1060?
     
  4. Offline

    mrthu1000

    you must make a youtube video or smoething this is not working for me!
     
  5. Offline

    TheNander

    Well maybe because this was made ages ago for CB Build #935. This plugin is dead.
     
  6. Offline

    xsmas96

    well evry time ive downloaded one it takes 3/4 seconds and they all work for me lol
     
  7. Offline

    mrthu1000

    oh! sorry!

    lol im a noob!!!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  8. Offline

    Wiinick

    PLEASE update this for 1337 or higher
     
  9. Offline

    Jayjay110

    Ok, Minecraft is finally out, so I may be coming back to update this when Bukkit for 1.0 gets released!!! Sorry for the delay on stuff I have been doing many other things throught this school year to worry about rather than bukkit
     
  10. Offline

    Mixmaster1190

    Can you make it possible to use an item as a key?
    EDIT: I see this is no longer in development. I used the source to do it. Thanks anyway.
     
  11. Offline

    ogr93

    when load config file gives error.I have permissionsEX with true in the config file and V1.0.0
     
  12. Offline

    ogr93

    the config file give problems

    i have PEX , iconomy cradtbukkit 1.0.0
     
  13. Offline

    TehCParrett

    Would this work with the Quarantine zombie survival plugin?
     

Share This Page