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 Feb 8, 2016@MikroAcse
1) No, it shouldn't. Even if there will be errors, plugin will tell you about that.
2) No, this bug hasn't been fixed. I don't know, how you can fix it yourself, but try to give player's inventory only after login (as I remember, AuthMe supports that...)
-
View User Profile
-
Send Message
Posted Feb 8, 2016@saharNooby
Hi! Your plugin is veery cool and I have some questions.
1) Will 2.5+ update (I have 2.4.4 now) ruin my configuration of boxes? Or it just will fix them to be compatible? 2) WIll 2.5+ update fix the bug, when unauthorized user (AuthMe) can use RandomBlocks? If no, when it will be fixed, or can I fix it myself?
Thank you!
-
View User Profile
-
Send Message
Posted Feb 2, 2016@koen1905
You need to change GUI format, Read documentation.
-
View User Profile
-
Send Message
Posted Feb 2, 2016itemsToSelectCount: 1
^ Does not work i only want that I Can get 1 item but he doesn't work plz help
-
View User Profile
-
Send Message
Posted Jan 16, 2016Looks good! i'm downloading it.
-
View User Profile
-
Send Message
Posted Jan 16, 2016@Darkmagic70
Sure
-
View User Profile
-
Send Message
Posted Jan 15, 2016Hello, greate plugin I love it but please mention somewhere that the box ID can't begin with 0 :D When I made my boxes with ID 0001 and 0002 I wasnt able to figure out why they dont work for pretty long time
-
View User Profile
-
Send Message
Posted Jan 7, 2016@saharNooby
Thank!
-
View User Profile
-
Send Message
Posted Jan 7, 2016@CJ190
SPADE
-
View User Profile
-
Send Message
Posted Jan 7, 2016It does not work the DIAMOND_SHOVEL item
config http://pastebin.com/HEirFHdi
What should I do?
-
View User Profile
-
Send Message
Posted Dec 13, 2015@Wubbitz
You can do it in a way like this:
-
View User Profile
-
Send Message
Posted Dec 12, 2015Is it possible to make it so they only get the middle item, and the wheel goes vertical with other blocks surrounding it that change?
-
View User Profile
-
Send Message
Posted Dec 4, 2015@TrackingJews766
I think you can't
-
View User Profile
-
Send Message
Posted Dec 4, 2015How can I put a gun ( crackshot plugin) in the config ??? help plz
-
View User Profile
-
Send Message
Posted Nov 2, 2015@KogenTheK
You can't.
-
View User Profile
-
Send Message
Posted Nov 2, 2015How do you get a random box in survival?
-
View User Profile
-
Send Message
Posted Oct 29, 2015[20:50:58 ERROR]: Could not pass event InventoryCloseEvent to RandomBox v2.4.4 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:310) [spigot.jar:git-Spigot-5f38d38-18fbb24] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav a:62) [spigot.jar:git-Spigot-5f38d38-18fbb24] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j ava:502) [spigot.jar:git-Spigot-5f38d38-18fbb24] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j ava:487) [spigot.jar:git-Spigot-5f38d38-18fbb24] at org.bukkit.craftbukkit.v1_8_R3.event.CraftEventFactory.handleInventor yCloseEvent(CraftEventFactory.java:852) [spigot.jar:git-Spigot-5f38d38-18fbb24] at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java :1411) [spigot.jar:git-Spigot-5f38d38-18fbb24] at net.minecraft.server.v1_8_R3.PacketPlayInCloseWindow.a(PacketPlayInCl oseWindow.java:18) [spigot.jar:git-Spigot-5f38d38-18fbb24] at net.minecraft.server.v1_8_R3.PacketPlayInCloseWindow.a(PacketPlayInCl oseWindow.java:1) [spigot.jar:git-Spigot-5f38d38-18fbb24] at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:1 3) [spigot.jar:git-Spigot-5f38d38-18fbb24] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [ ?:1.8.0_65] at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_65] at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [spigot.jar :git-Spigot-5f38d38-18fbb24] at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:7 15) [spigot.jar:git-Spigot-5f38d38-18fbb24] at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:3 74) [spigot.jar:git-Spigot-5f38d38-18fbb24] at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:6 54) [spigot.jar:git-Spigot-5f38d38-18fbb24] at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java :557) [spigot.jar:git-Spigot-5f38d38-18fbb24] at java.lang.Thread.run(Unknown Source) [?:1.8.0_65] Caused by: org.bukkit.command.CommandException: Unhandled exception executing co mmand 'manuadd' in plugin GroupManager v2.1.31 (Phoenix) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) [spi got.jar:git-Spigot-5f38d38-18fbb24] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:14 1) [spigot.jar:git-Spigot-5f38d38-18fbb24] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServe r.java:641) [spigot.jar:git-Spigot-5f38d38-18fbb24] at org.bukkit.Bukkit.dispatchCommand(Bukkit.java:576) [spigot.jar:git-S pigot-5f38d38-18fbb24] at saharnooby.randombox.box.DropCommand.execute(DropCommand.java:24) [? :?] at saharnooby.randombox.box.DropItem.give(DropItem.java:150) [?:?] at saharnooby.randombox.Boxes.giveItemList(Boxes.java:120) [?:?] at saharnooby.randombox.gui.BoxGui.onInventoryClose(BoxGui.java:70) [?: ?] at sun.reflect.GeneratedMethodAccessor116.invoke(Unknown Source) [?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [?:1 .8.0_65] at java.lang.reflect.Method.invoke(Unknown Source) [?:1.8.0_65] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:306) [spigot.jar:git-Spigot-5f38d38-18fbb24] ... 16 more Caused by: java.lang.IllegalArgumentException: Name cannot be null at org.apache.commons.lang.Validate.notNull(Validate.java:192) [spigot. jar:git-Spigot-5f38d38-18fbb24] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.getPlayer(CraftServer.java :403) [spigot.jar:git-Spigot-5f38d38-18fbb24] at org.bukkit.Bukkit.getPlayer(Bukkit.java:380) [spigot.jar:git-Spigot- 5f38d38-18fbb24] at org.anjocaido.groupmanager.data.User.getBukkitPlayer(User.java:319) ~ [?:?] at org.anjocaido.groupmanager.data.User.setGroup(User.java:183) [?:?] at org.anjocaido.groupmanager.data.User.setGroup(User.java:164) [?:?] at org.anjocaido.groupmanager.GroupManager.onCommand(GroupManager.java:5 51) [?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [spi got.jar:git-Spigot-5f38d38-18fbb24] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:14 1) [spigot.jar:git-Spigot-5f38d38-18fbb24] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServe r.java:641) [spigot.jar:git-Spigot-5f38d38-18fbb24] at org.bukkit.Bukkit.dispatchCommand(Bukkit.java:576) [spigot.jar:git-S pigot-5f38d38-18fbb24] at saharnooby.randombox.box.DropCommand.execute(DropCommand.java:24) [? :?] at saharnooby.randombox.box.DropItem.give(DropItem.java:150) [?:?] at saharnooby.randombox.Boxes.giveItemList(Boxes.java:120) [?:?] at saharnooby.randombox.gui.BoxGui.onInventoryClose(BoxGui.java:70) [?: ?] at sun.reflect.GeneratedMethodAccessor116.invoke(Unknown Source) [?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [?:1 .8.0_65] at java.lang.reflect.Method.invoke(Unknown Source) [?:1.8.0_65] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:306) [spigot.jar:git-Spigot-5f38d38-18fbb24] ... 16 more
-
View User Profile
-
Send Message
Posted Sep 8, 2015@SkullixHunterZIV
Sry for that late, but that bug seems to be fixed in last version. What version you have?
-
View User Profile
-
Send Message
Posted Sep 5, 2015@SkullixHunterZIV
I will think about that.
-
View User Profile
-
Send Message
Posted Sep 5, 2015Hi,
I found a bug while using a box, when players earned there reward the menu is still open and doesn't close by it self, they have to close it manualy with "esc". My point is that people cant drop/move items after they used a box, because u disabled dropping/moving items.
Possible solution (im not a programmer): It seems me logic that after the player earned there reward(s) the menu should close automatically and enable dropping/moving items.
For me and other server owners who have this plugins installed, its not really usefull in survival servers. People have to leave and join again to let them drop/move items again.
I hope you understand my point, if not you can join my server and see it by yourself (i will PM u the ip).
Sincerely
~ SkullixHunterZ