Supported Games

This plugin allows for betting on a random coin flip between two players using their Economics balance.
Players can create public coin flips that anybody can join, or private coin flips that can only be joined by a specified player.
The amount of a coin flip is withdrawn from the balance when creating or joining a coin flip, and refunded if the coin flip is canceled or the opponent has disconnected.
Winning a coin flip will deposit the pot, which is two times the amount of the coin flip, into the winners balance. The loser will receive nothing.
There is no bank involved that could win or lose money. Any money is taken from and given to the opponents of a coin flip. No money is destroyed and no money is created.
Configuration
AnnounceEverybody
-- Whether to announce joins or wins of a coin flip to everybody on the server or not.MinimumAmount
-- The minimum bet that is required to start a coin flipTimeout
-- The time in minutes until a coin flip is canceled when nobody joinsPrefix
-- The chat prefix of messages of this plugin
Permissions
coinflip.create
-- Allows the use of /coinflip and /cancelflip commands to create private or public coin flipscoinflip.join
-- Allows use of /joinflip command to join private or public coin flips
Localization
Default languages supplied with this plugin:
- English
- German
You can submit more translations in the Help section.
Chat Commands
/coinflip amount
-- Start a public coin flip for the specified amount./coinflip amount playerNameOrId
-- Start a private coin flip for the specified amount with the specified player./cancelflip
-- Cancel your current coin flip./joinflip playerNameOrId
-- Join the coin flip of this player.
Credits
- Veptaa for the idea
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.