GamblingWithItems
Gambling
This plugin allows players on a server to gamble using a certain item, determined by the server's administrator. There are three outcomes of gambling:
- Jackpot. In this case, the player gains back quintuple the amount of the item the player gambled.
- Win. In this case, the player gains back twice the amount of the item the player gambles.
- Loss. In this case, the player loses the amount of the item he gambled.
The chanced of all three outcomes are customizable in the config file, as is whether players are automatically allowed to gamble, or need express permission from an OP first.
Commands
/Gamble [number] - Gambles [number] of an item determined by the server's administrator, so long as the user has gambling rights.
/ToggleGamblingRights [player] - Bars [player] from gambling if they have the right to. Otherwise allows [player] to gamble. Only usable by OPs.
/ToggleAllGamblingRights - Flips the gambling rights for all players who have ever been on the server. Only usable by OPs. Note: To be used only when the default gambling rights are changed by the server's administrator.
Configuration
Item - String value. Determines the item used to gamble across the whole server.
maxItemsToGamble - Integer value. Determines the highest number a player on the server is allowed to gamble at a time.
allowedByDefault - Boolean value. True means automatically letting players gamble. False means the opposite.
jackpot - Integer value. Percentage chance of how likely a player is to win a jackpot.
win - Integer value. Percentage chance of how likely a player is to win.
Known problems
None. Please report them when you find any, and I'll fix it as soon as I'm able.
Comments