RandomBox
Since bukkit.org reviews every plugin file and this process takes from one to several days, you may want to get updates from RandomBox page on SpigotMC, where plugin updates become available instantly.
RandomBox adds random boxes (the items that can drop you other random items) to your server.
Random box (or just box) is an enchanted item with custom name and lore (which contains list of names and amounts of items, that can drop).
GitHub source code | SpigotMC plugin page (I'm more active here. Updates are still going to be posted on both sites).


Videos
GUI
RandomBlocks
Configuring Plugin
You can read about Randombox configuration at documentation page.
Commands
- /givebox <player> <box id>: gives box to player.
- /openbox: opens the box in your hand.
- /randombox, /rb: plugin info.
- /randombox reload: reload config from disk.
- /randombox list: show all boxes in config.
- /randomblock create <box id> <cost or 0>: create a RandomBlock (it will open box gui, when player clicks on it).
- /randomblock remove: remove RandomBlocks
Permissions
- randombox.*: Allows you to do everything.
- randombox.main: Allows you to use /randombox command.
- randombox.main.reload: Allows you to reload plugin config.
- randombox.openbox: Allows you to open boxes.
- randombox.givebox: Allows you to give boxes.
- randombox.infinitebox: The box will not dissapear after opening (to use this permission, you need to set "useInfinitePermission" to true).
- randombox.open.<box id>: Allows you to open boxe with <id>. Checks, only if value checkPermission in box config set to true.
- randombox.open.*: Allows you to open all boxes. Checks, only if value checkPermission in box config set to true.
- randombox.randomblock: Allows you to create and remove RandomBlocks.
Video-guides
Slovak
Português
Changelog
Changelog is available on SpigotMC updates page.
"Unacceptable character '?' (0xFFFD)"
If you are getting this error when server starts, add "-Dfile.encoding=UTF-8" argument in your server launch script.
Boxes have been parsed, but doesn't open!
Check whether the box id starts with 0. If so, remove these zeros; if not -- write a bug report.
-
View User Profile
-
Send Message
Posted Mar 9, 2015Is it compatible with custom enchantments!?!?!? If not that would be an awesome feature to add :)
-
View User Profile
-
Send Message
Posted Feb 20, 2015@noahstrac
Some item's section has missed name. Add it, and plugin will work.
-
View User Profile
-
Send Message
Posted Feb 19, 2015Whats wrong...?
[00:44:33 INFO]: [RandomBox] Enabling RandomBox v2.0 [00:44:33 INFO]: [RandomBox] Loading config... [00:44:33 ERROR]: Error occurred while enabling RandomBox v2.0 (Is it up to date?) java.lang.NullPointerException at org.bukkit.ChatColor.translateAlternateColorCodes(ChatColor.java:206) [server.jar:git-Spigot-"606148f"] at saharnooby.randombox.parsers.ItemParser.parse(ItemParser.java:33) [?:?] at saharnooby.randombox.parsers.BoxParser.parse(BoxParser.java:70) [?:?] at saharnooby.randombox.Boxes.loadBoxes(Boxes.java:36) [?:?] at saharnooby.randombox.RandomBox.loadConfig(RandomBox.java:54) [?:?] at saharnooby.randombox.RandomBox.onEnable(RandomBox.java:75) [?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:316) [server.jar:git-Spigot-"606148f"] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:333) [server.jar:git-Spigot-"606148f"] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:412) [server.jar:git-Spigot-"606148f"] at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugin(CraftServer.java:352) [server.jar:git-Spigot-"606148f"] at org.bukkit.craftbukkit.v1_8_R1.CraftServer.enablePlugins(CraftServer.java:313) [server.jar:git-Spigot-"606148f"] at net.minecraft.server.v1_8_R1.MinecraftServer.q(MinecraftServer.java:400) [server.jar:git-Spigot-"606148f"] at net.minecraft.server.v1_8_R1.MinecraftServer.k(MinecraftServer.java:368) [server.jar:git-Spigot-"606148f"] at net.minecraft.server.v1_8_R1.MinecraftServer.a(MinecraftServer.java:323) [server.jar:git-Spigot-"606148f"] at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:211) [server.jar:git-Spigot-"606148f"] at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:496) [server.jar:git-Spigot-"606148f"] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_31]
-
View User Profile
-
Send Message
Posted Feb 16, 2015@ChengZi368
Are there any exceptions or errors in server log? Did you deleted config?
-
View User Profile
-
Send Message
Posted Feb 16, 2015@saharNooby
I dont know why but after I updated to 2.0, every command just says "nullnull", what went wrong?
-
View User Profile
-
Send Message
Posted Feb 9, 2015@ChengZi368
Ok, will be added in next update :)
-
View User Profile
-
Send Message
Posted Feb 9, 2015Translation:
boxList: '已配置的奖励箱:'
-
View User Profile
-
Send Message
Posted Jan 24, 2015@saharNooby
That's great, thank for you update :)
-
View User Profile
-
Send Message
Posted Jan 24, 2015@ChengZi368
I will leave it for debugging, but by default ops will not be able to have this permission. :)
-
View User Profile
-
Send Message
Posted Jan 23, 2015@saharNooby
Consider removing the infinityBox permission? If ops want to open more boxes they can just give themselves more.
-
View User Profile
-
Send Message
Posted Jan 21, 2015@saharNooby
"default: false" is better. And this permission can be removed since it has no use except debugging.
-
View User Profile
-
Send Message
Posted Jan 19, 2015@ChengZi368
"default: op" should work too, isn't it?
-
View User Profile
-
Send Message
Posted Jan 19, 2015@saharNooby
You should set randombox.infinitebox default to nobody(false).
-
View User Profile
-
Send Message
Posted Jan 17, 2015@madtomic
Plugin must work on any 1.7 version...
-
View User Profile
-
Send Message
Posted Jan 17, 2015please add support for 1.7.9-r0.3
thanks
-
View User Profile
-
Send Message
Posted Jan 15, 2015@JimiRebeld
You can set command instead of item, just add "commands" section to the item section and set item id to 0.
-
View User Profile
-
Send Message
Posted Jan 15, 2015Can u add a change to get coins?
-
View User Profile
-
Send Message
Posted Dec 22, 2014@Dan7heMan
Still nothing with craftbukkit-1.7.9-R0.2. I don't know what to do. Try add -Dfile.encoding=UTF-8 argument in server launch script.
And this is not my plugin error. If nothing works, read this topic: http://bukkit.org/threads/unacceptable-character-0xfffd-special-characters-are-not-allowed.68722/ Maybe, you find solution there.
-
View User Profile
-
Send Message
Posted Dec 22, 2014@saharNooby
I am using the default config and still getting the same error. And I am using craftbukkit-1.7.9-R0.2 if that has anything to do with it.
-
View User Profile
-
Send Message
Posted Dec 22, 2014@Dan7heMan
I don't get this error with default config. Did you change the config? If so, check it on http://yaml-online-parser.appspot.com/