Permissions
This plugin uses the permission system. To assign a permission, use oxide.grant <user or group> <name or steam id> <permission>. To remove a permission, use oxide.revoke <user or group> <name or steam id> <permission>.- simplegambling.allowed -- Allows players to gamble
- simplegambling.admin -- Allows Admins to create/finish/resetpot gambles, etc
Chat Commands
Players
- `/gamble -- Show current gambles
- /gamble current -- Show current gambles
- /gamble play <gamble name> <number> -- Choose the name of the Gamble and the number you want to bet on. To use this command you need to have the item that the Gamble requires
Admin
- /gamble -- Show help
- /gamble set -- Show help on how to create a gamble
- /gamble finish -- Show help on how to finish a gamble and randomly choose a winner
- /gamble current -- Show current gambles
- /gamble config -- Change the config options (read more below)
- /gamble resetpot -- Resets current gamble pot
How It Works
Admins can create gambles with the "/gamble set" command, here is an example on how to create a gamble:/gamble set SulfurGamble sulfur 200 10
In this example the admin creates a gamble called SulfurGamble, to participate you need to bet 200 sulfur in numbers that range from 1 to 10.
To place your bet in the number 7 you have to type
/gamble play SulfurGamble 7
This will automatically remove 200 sulfur from your inventory and wont let you bet again on this same gamble (you can bet on a future one)
To finish this gamble the admin will have to use the finish command:
/gamble finish SulfurGamble
A random number will be chosen and the gamble is removed.
If a player won a gamble it will have to type /gamble reward to redeem the loot. If multiple players won the loot will be shared between them
Configuration
The settings and options can be configured in the SimpleGambling file under the config directory. The use of an editor and validator is recommended to avoid formatting issues and syntax errors."showWinners" enabling this option will display the name of the winners when a gamble finishes.
"PreservePot" enabling this option will let the pot(betted items) be part of the next gamble, players that already betted will be able to bet again.
TODO
- Add Server Rewards Support
- Add Economics Support
- Add UI option
- Add HumanNPC Support.
- Add A Automated Gamble time setting option