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.
@KirillKonyaev
Keys will be never added. :)
Please. Add key for box, please.
I love you! Gratitude beyond words! I want to sleep! Good night!
@qqlikebu
Open plugin config in plugins/RandomBox/config.yml, find 'metrics: true' and replace it with 'metrics: false'. Don't touch anything else.
# http://mcstats.org
opt-out: false
guid: 7989df51-9654-4d04-ba5d-eba338c9c227
debug: false
is false way error?
Very, very grateful! I get it! The last question!
How to false [metrics] error?
i Love You! You are one of the best developer!
@qqlikebu
This is metrics error, not plugin. Set 'metrics' setting in config to false.
[23:24:12 WARN]: org.apache.commons.lang.UnhandledException Plugin RandomBox v2
.2 generated an exception while executing task 2
at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftAsyncTask.run(CraftAsyn
cTask.java:56
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoSuchMethodError org.bukkit.Server.getOnlinePlayers()Ljav
a/util/Collection;
at saharnooby.randombox.metrics.MetricsLite.postPlugin(MetricsLite.java:
287)
at saharnooby.randombox.metrics.MetricsLite.access$3(MetricsLite.java:28
0)
at saharnooby.randombox.metrics.MetricsLite$1.run(MetricsLite.java:175)
at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftTask.run(CraftTask.java
:53)
at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftAsyncTask.run(CraftAsyn
cTask.java:53
... 3 more
[23:24:12 WARN]: Could not get latest artifact information: FileNotFoundExceptio
n
Even Added UTF8,error! OGM! I'm going crazy T A T
@qqlikebu
@echo OFF
title BC登陆端:25566
"C:\Program Files\Java\jre7\bin\java.exe" -Xincgc -Xmx1024M -XX:MaxPermSize=128M -jar Spigot.jar -nojline
This is my .bat how to modify? Very grateful!
My English is very bad! Sorry!
@qqlikebu
And don't use 2.2, it contains a serious bug.
@qqlikebu
OMG, please, use PasteBin. Add "-Dfile.encoding=UTF-8" argument in your server launch script (.bat or .sh).
BUKKIT 2.2 version does not work or will not work SPIGOT error:
[23:04:56 INFO]: [RandomBox] Enabling RandomBox v2.2
[23:04:56 INFO]: [RandomBox] Loading config...
[23:04:56 INFO]: [RandomBox] Created default config.
[23:04:56 ERROR]: Cannot load plugins\RandomBox\config.yml
org.bukkit.configuration.InvalidConfigurationException unacceptable character '
?' (0xFFFD) special characters are not allowed
in "<string>", position 8157
at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlCo
nfiguration.java:55 ~[Spigot.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguratio
n.java:149) ~[Spigot.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguratio
n.java:114) ~[Spigot.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(Yam
lConfiguration.java:176 [Spigot.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
at org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:150) [
Spigot.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
at saharnooby.randombox.RandomBox.loadConfig(RandomBox.java:54) [RandomB
ox.jar]
at saharnooby.randombox.RandomBox.onEnable(RandomBox.java:78) [RandomBox
.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:250) [Sp
igot.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
@Dyenx999
If you want to edit plugin messages, go to 'plugins/RandomBox/locales/' and open file 'en.yml'. Here is all messages.
@saharNooby
Can u please add a langauge.yml please
@xQxQx
See "Changelog" section :)
@Bajads
Create new section by copying other box section, change box id and items.
How do you make multiple different boxes? (warrior, potions...)
@captainlewiz110
If you said about this, then just use instructions from "CE's in Kits" section.