Roll the Dice
Roll the Dice
Issue? Suggestion? Hate mail? File an issue on GitHub!
Just kidding about the hate mail ._.
Important info
RTD 1.1.0 BETA is now available for testing! (download)
The new beta introduces:
- {rtime} outcome variable
- a shiny new default config file
- a few code and speed optimizations (generally not as important)
Links
- How to Use RTD
- How to Set Up RTD (YouTube) - video embedded below
- View RTD on GitHub
Description
RTD was made to mimic dice-rolling plugins found on some custom multiplayer servers for other like Team Fortress 2. With these games and the user in mind, this plugin is the most customizable and user-friendly dice-rolling plugin available for Bukkit.
RTD's main functions (in more depth below) allow for the owner of the server to create and fully customize all potential outcomes of rolling the dice. In fact, the more outcomes, the better: more outcomes means more randomization. This can be exploited to a fault, of course: copying and pasting twenty copies of the same two outcomes still only gives each outcome a one-in-two shot, regardless of the number of copies.
Other plugins have preset outcomes out-of-the-box? Bah! RTD allows for easy customization, addition, and removal of outcomes.
Other plugins give you only numbers? What?! With RTD, you can replace all commands with "/say" followed by a number, and BAM!, you've just made RTD into one of those!
Got another plugin like CommandBook that you want to work with RTD? It already does! Just put the command you want into an outcome, and now your users are rolling for Thor's hammer (check that link back there).
What are outcomes?
"Outcomes", which refer to each outcome of having rolled the dice, are lists of player and console commands that will be executed should that outcome be selected by the plugin. For example, this config.yml...
# config.yml outcomes: suicide: - say $(player) rolled for SUICIDE! - kill diamond: - say $(player) rolled for a diamond! - give $(player) diamond 1
...could either give the player a diamond, or slaughter them and scatter their inventory like shredded paper. And it's totally random!
Setting up RTD
There's a bit of a guide here (link) on how to set up RTD, but it's really not that difficult.
There are three basic steps to setting up RTD:
- Download
- Download RTD from BukkitDev: just click that link up there on the right.
- Configure
- Place RTD in the plugins folder of your server
- Modify the configuration file to your heart's content
- Deploy
- Start or reload the server, and RTD is ready to go!
Basic info
Major functions
- Allows for total customization of outcomes using config.yml
- Features full bug and error reporting support
- If a command fails, RTD notifies the user and logs in the console
Commands (1)
/rtd
- Rolls the dice (selects one outcome from many defined outcomes at random)
Permissions
None yet as of initial release (1.0.0).
Planned permissions:
- Permission to execute the command
Changelog
1.0.1
- Added cooldown timer
- Added a bit of color cosmetics
1.0.0
- Initial release
-
View User Profile
-
Send Message
Posted Oct 1, 2016Make a 1.5.2 version please, this is a good plugin
-
View User Profile
-
Send Message
Posted Oct 27, 2013Permission plz, my users cant use it without permission.
-
View User Profile
-
Send Message
Posted Apr 9, 2013@x3chaos
im having the same issue zachary had using default commands that are in the config. no console errors and for the death all i see in chat is /kill {name}
-
View User Profile
-
Send Message
Posted Feb 24, 2013@Zachary_DuBois
That's really odd. Go ahead and file a ticket if you can; I'm still trying to work out setting those up on BukkitDev, so if you can't, let me know. I'll get around to resolving the issue first chance I get (soon!). :)
EDIT: I lied! Go ahead and file an issue on GitHub if you can. If not, then filing a ticket should work; if that doesn't work either, I'll try and duplicate and take out the bug by myself. :)
EDIT2: I actually went ahead and filed an issue for documentation's sake. Here's a link to it. Let me know if you have any more information that could help me solve this.
-
View User Profile
-
Send Message
Posted Feb 24, 2013@x3chaos
Nope. Nothing in the console.
-
View User Profile
-
Send Message
Posted Feb 24, 2013@Zachary_DuBois
That's odd. Can you check your console and let me know if it says anything related?
-
View User Profile
-
Send Message
Posted Feb 24, 2013Uh. I have a problem where the commands are not ran by console so they aren't being executed.
-
View User Profile
-
Send Message
Posted Feb 19, 2013@x3chaos
Sweet. Thanks. Always like to help.
New config example: http://dev.bukkit.org/paste/7154/
-
View User Profile
-
Send Message
Posted Feb 18, 2013@x3chaos
Nah i think you got it right :). Cant wait to see this finished.
-
View User Profile
-
Send Message
Posted Feb 17, 2013@Aaron14ps
The method that RTD uses to execute commands is dispatchCommand(CommandSender, String). This allows me (as the developer) to determine whether the console or the player is executing the command; for player commands, the CommandSender passed is actually the player (as Player is a subclass of CommandSender), whereas console commands are executed by the console sender retrieved by getConsoleSender(), a method of the Server class.
Basically, yes: the player can execute some commands. In future versions, the owner or admin who does the configuration can specify that the command is a player command, and that command will be executed by the player instead of the console. I've already implemented this, but as of this writing, 1.0.1 has been uploaded but not yet approved, and it did not include this feature.
Please let me know if I'm misunderstanding you! :)
-
View User Profile
-
Send Message
Posted Feb 17, 2013As i suggested before, would it not be easier to make the player initialize the command itself, this would get rid of having to make compatibility with other plugins. I know this is possible, seeing as command signs does it. Try to look into that, and if anything, put that as an option in the config :)
PS to everyone else: I am the one who suggested this plugin. :)
-
View User Profile
-
Send Message
Posted Feb 17, 2013@Zachary_DuBois
First, thanks for the suggestions! I'll look into implementing (most, if not all of) them.
And the TF2 /rtd was definitely in mind during concept, though this plugin specifically was requested. But kudos for spotting the parallel! :P
Some responses, in no particular order:
Also, I'm trying to keep RTD as stand-alone as possible. I can suggest some supplementary plugins like Essentials though, and just package them as soft dependencies (meaning that they're suggested, but not recommended). At that point, it would be up to the user to set up the outcomes in the config file to accommodate those plugins. But that's an idea, to package a version of RTD to be directly associated with other plugins.
Oh, and cooldown was packaged with version 1.0.1, which is currently awaiting the approval of the BukkitDev staff. :D
-
View User Profile
-
Send Message
Posted Feb 17, 2013Example config for this plugin:
Or: http://dev.bukkit.org/paste/7143/
-
View User Profile
-
Send Message
Posted Feb 17, 2013Suggestions:
Really great plugin. By any chance did you make this because of the TF2 Roll the Dice?
-
View User Profile
-
Send Message
Posted Feb 16, 2013@ThisUsernameIsMine
Yes it does! But that's in upcoming version 1.0.1, which is just a minor tweak to the initial release.
-
View User Profile
-
Send Message
Posted Feb 16, 2013Nice :) Does it have a cooldown timer already?
-
View User Profile
-
Send Message
Posted Feb 16, 2013Lets see this work
-
View User Profile
-
Send Message
Posted Feb 16, 2013nice, cant wait for this plugin.