FancyRoulette
Description
FancyRoulette lets you add casino roulettes to your Minecraft server. Here's what I like it to look like :
Setting up a roulette table
Here's a video tutorial explaining how to set up a roulette table. It's using the old commands, so make sure to read text instructions!
Thanks to Mr_Bo_Jenkins for making the video!
Setting it up (thanks to LHammonds!)
1. Create a sign to convert dollars to tokens.
Sample text on a sign to convert $5 for 10 tokens:
[Tokens] 5:10
2. Create the spinner. Use the command "/roulette add <#> spinner" while looking at the spinner block.
Example: /roulette add 1 spinner
3. Setup a maximum of 16 blocks of colored wool. Look at each block of wool and type the associated command : /roulette <#>
Example: /roulette add 1
Permissions
The two permission nodes are :
- roulette.admin - Players with that permission are able to manage roulette tables and token trades
- roulette.spin - Players with that permission are abel to spin the roulette.
Commands
- /roulette add [id] - Adds the targeted block to the corresponding roulette table.
- /roulette remove - Removes the targeted block from any roulette it may be in.
- /roulette clear [id] - Clears the table from all of its blocks.
Configuration
The config.yml file looks like the following :
# If the reward is "Tokens" (case-sensitive), it'll give back the set amount of tokens. Otherwise, you can write the block id. # ex "reward type: 42" for iron blocks. Everyone love iron blocks. reward type: Tokens reward amount: 10 maximum bets per player: 14 # If you don't know what this is, please don't touch. # Read more at https://forums.bukkit.org/threads/mcstats-plugin-metrics-r7-easy-advanced-plugin-statistics.77352/ opt out of metrics: false
Dependencies
FancyRoulette works with Vault for all of its economic interactions. Download Vault : http://dev.bukkit.org/bukkit-plugins/vault/:
Metrics
This plugin uses MetricsLite, the limited-functionality version of McStats Metrics system. MetricsLite will track statistics and usage values about this plugin. Only the default values from Metrics (the one listed on Metrics' page) are tracked, such as number of players on your server, which version of the plugin you're using, amongst other things. Data collection shouldn't have any impact on the plugin's usage. If you want to opt out of data collection, you can toggle the "opt out of metrics" option in the config.yml file of this plugin's folder.
CoKoC Plugins
If there's anything you need related to this plugin, like a feature request or an update. If you're mad, happy, angry, sad... leave me a comment or send me a private message! If you have a request for a public plugin, for post it on https://forums.bukkit.org/forums/plugin-requests.13/ and then send me a message! Anything happens, send me a message!
Please, update for 1.12.2
How to translate the plugin?
Great plugin, also works on Spigot 1.8.8.
Check: play.pixelhuntersmc.com
Thanks for the awesome plugin!
We Need To Be Able To Change The Spinner Blocks
say for example spinner blocks : 35,35:4,35:
Tokens Need To Be Lost Per Spin!
its not good to be able to keep your bets on the table for this plugin we need to be able to lose our tokens from spinning!
Please This Suggestion Would Make Your Plugin Even Better Unless Of Course You Have This Feature!
Add An Option In Config To Have Automatic Spin Timer Say Like Every 5 or 7 Seconds The Spinner Will Spin On Its Own. This Would Make It Easy To Just Stay At The Table And Not Haft To Walk Back And Forth To Spin.
@NightHavoc
I have the same problems as NightHavoc. I managed to bypass the first problem by doing some extremely overcomplicated worldguarding, but the thing is, not only can the players now place tokens on the table, They can place any block they want. The plugin tells them they can't place it, but it doesn't cancel the block from being placed.
The first and second problems seem pretty easy to fix... 1. Just add protection bypassing by checking if the event that places the tokens is canceled, and if it is, forcibly spawn a token there. Hell, you wouldn't even really need to check. Just forcibly place the tokens. If a block is detected that isn't a token(You seem to already detect this) just cancel the placement of that block.
2. The second one also seems kind of similar. The plugin already checks for max number of bets, and obviously keeps track of which players placed bets on what colors. Just remove any tokens placed after that from the player's bet list, and then tell the plugin to remove the token from the table that corresponds to that bet.
Come on, get programming! xD I'll buy ya a beer or two ;)
So I love this plugin.. but a couple major issues... If a player can't place blocks, they can still bet.. So they lose no Tokens from their inventories, but still win.
Also, the limits don't actually stop players from placing bets. They still get a payout even if the color bet they won on, was after their initial 2 bets. (I have it set at 2.)
Lastly.. If a player clicks to place a bet, then re-clicks. It says you've bet another on that color, but does not remove the Tokens from the player's inventory either. It also allows the player to place bets on all colors in one round, giving them bets for each consecutive spin based on how many times they clicked each color..
Example: I bet on all colors and re-click them 5 times before spinning. i lose 14 tokens from placing on 14 colors. I win guaranteed though and get the 20 token prize. I spin again without placing any extra bets and I win again because it counted the extra clicks as bets for future spins, but did not take them from my inventory.
This makes it a guaranteed unlimited win for every spin.. Please fix these few things and this plugin will be perfect! The mechanics work amazingly otherwise! Great job!
@CoKoC
yes. Coins
@Arizrain
By coins do you mean money?
ok thank you, since it uses vault for economy. Can I let it reward with coins? like givecoins: 5 (/givecoins playername 5) or can I let it run a command for a win like: givepoints (enjin)
I uploaded a new version which changed the commands and fixed the bug reported by Jeiswirth.
Arizrain, sorry but I wasn't able to reproduce your problem.
I'm using Spigot 1.8 is this broke for giving payouts? It sets up fine, runs fine, gives tokens with a sign, but will not pay tokens on a win.
my config -
maximum bets per player: 14
@beansbeenz
I am having the same error as both of these gentlemen. when i buy tokens and place them on my board i get "you can only place roulette tokens on a roulette tile" but of course i am using roulette tokens. I figured i should bump there errors.
@Neophytex1988
im having the same problems but it will also let players place normal pots. also i noticed if a token is placed onto the floor and picked up, it turns to a normal pot.
hey your Version 1.0.5 works not correct for me :\ can´t place normal flower pots but he say me not that i placed a bet on the Color and i get nothing when i win....only the pot´s was cleared :\
@ShadowedDreamer
I uploaded a new version which should fix this problem.
Can we get an emergency update? Players can just take flower pots and use them as tokens then take said tokens and resell... will post as a ticket but just thought id leave this here as well.
edit: ... if i COULD leave a ticket
some commands it gives me the good ol 'An internal error occurred while attempting to preform this command'