Allows admin to create item gamblings

Supported Games
GameServerKingsGameServerKings

Permissions

  • 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

{
  "preservePot": false,
  "showWinners": false
}

"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
This plugin is unlicensed and the original author reserves all rights to it.

The original author may request that this plugin be removed and there is a risk that the plugin may be unavailable in the future.

Note that the current maintainer may not have permission to assign a license to the plugin if they are not the original author, so explicit permission would need to be obtained from the original author in order for the plugin to remain openly available and guarantee that it will be around for all to enjoy going forward.

6.9K downloads
22 watchers

gamblingfununmaintained