Double or Nothing is a cool and unique gambling system. It's a very small and easy system, that comes with a user-friendly configuration file. The plugin is very simple, the player either doubles the money or the lose it.
» Permissions:
don.admin » Permission to reload the configuration file and reset stats.
don.stats » Show own stats
don.stats.other » Show other players stats
» Commands:
/don [amount] » Run a DoN game.
/don help » Show usage message
/don reload » Reload the configuration file.
/don toggle » Toggle broadcast messages
» Information:
You can customize almost everything, you can set the maximum and minimum bet to make sure that it matches your economy system. For more information about the configuration file check below.
» Dependencies:
Vault » To handle the economy ( https://www.spigotmc.org/resources/vault.34315/)
» Configuration:
Configuration
Storage:
# Types available:
# - SQLITE
# - MYSQL
Type: SQLITE
MySQL:
Host: localhost
Port: 3306
User: root
Pass: ""
Data: "database_name"
TablePrefix:
Driver: com.mysql.cj.jdbc.Driver
Settings:
MinPrice: 1000 # Min/max must be between 0 and 9,223,372,036,854,775,808
MaxPrice: 1000000000 # Min/max must be between 0 and 9,223,372,036,854,775,808
CheckForUpdate: true # update check on startup
Broadcast:
MinimumBroadcastWinnings: 1000 # How much needs to be won to broadcast to everyone? Set to 0 to broadcast all winnings.
MinimumBroadcastCreation: 1000 # How much needs to be to broadcast to everyone? Set to 0 to broadcast all creations.
BroadcastCoinflipCreation: true #should we broadcast if player creates coinflip game?
Tax:
Enabled: false
Rate: 5 # 5% tax
# Economy providers
Providers:
# This economy provider will be used if the player does /don <amount>
# without specifying a currency provider after the amount to use if multiple
# providers are enabled. Currently only VAULT supported
DefaultProvider: "VAULT"
# Vault Economy (requires Vault + economy plugin)
# https://dev.bukkit.org/projects/vault
VAULT:
Enabled: true
DisplayCurrencyName: "€"
AnimationGUI:
Rows: 3
Title: "§lWINNER.."
LoseSound: "ENTITY_VILLAGER_NO"
WinSound: "ENTITY_PLAYER_LEVELUP"
AnimationSound: "BLOCK_COMPARATOR_CLICK"
PlayerItem:
Slot: 13
Material: "PLAYER_HEAD"
DisplayName: "§f§l{NAME}"
Base64: 0
CustomModelData: 0
Amount: 1
Glow: false
ItemFlags:
- HIDE_ENCHANTS
- HIDE_ATTRIBUTES
Lore:
- ""
NonPlayerItem:
Slot: 13
Material: "BARRIER"
DisplayName: "§f§lNOTHING"
Base64: 0
CustomModelData: 0
Amount: 1
Glow: false
ItemFlags:
- HIDE_ENCHANTS
- HIDE_ATTRIBUTES
Lore:
- ""
# messages
Messages:
WinBroadcastWithTax: "§a{WINNER} §7wins §b{AMOUNT}{CURRENCY}§7 (-{TAX_DEDUCTION}{CURRENCY} {TAX}% tax) §7in DoubleOrNothing game §b/don <amount>"
WinBroadcastWithoutTax: "§a{WINNER} §7wins §b{AMOUNT}{CURRENCY}§7 in <GRADIENT:2C08BA>DoubleOrNothingt</GRADIENT:028A97> §7game §b/don <amount>"
WinBroadcastLost: "§a{WINNER} §7lose §b{AMOUNT}{CURRENCY}§7 in <GRADIENT:2C08BA>DoubleOrNothingt</GRADIENT:028A97> §7game §b/don <amount>"
ReceivedMoney: " §a§l+ {AMOUNT}{CURRENCY}"
LostMoney: " <SOLID:FF0080>§l- {AMOUNT}{CURRENCY}"
NotEnoughMoney: "<SOLID:FF0080>You don''t have enought money!"
NotEnoughEnterMoney: "<SOLID:FF0080>Amount must be bigger than §a{AMOUNT}<SOLID:FF0080>!"
TooMuchEnterMoney: "<SOLID:FF0080>Amount can''t be higher than §a{AMOUNT}<SOLID:FF0080>!"
ToggleON: "§aYou have toggled §a§lON §abroadcast messages."
ToggleOFF: "§vYou have toggled §v§lOFF <SOLID:FF0080>broadcast messages."
CantUseInCreative: "<SOLID:FF0080>Cant use in creative!"
Usage: "<SOLID:FF0080>Usage: §b/don <amount>"
CantFindPlayer: "<SOLID:FF0080>Cant find player {PLAYER}!"
ReloadSuccess: "§aReloaded successfuly!"
ReloadError: "<SOLID:FF0080>An error occured!"
NotEnoughPerm: "<SOLID:FF0080>You don''t have enought perms!"
StatsReset: "§aStatistics has been reset!"
SummaryLoss:
- ""
- "<center>§b§lGAME SUMMARY</center>"
- "<center><SOLID:FF0080>You lost, better luck next time.</center>"
- ""
- "<center>§7Amount: §f{WINNINGS}{CURRENCY}</center>"
- ""
SummaryWin:
- ""
- "<center>§b§lGAME SUMMARY</center>"
- "<center>§a§lWINNER</center>"
- ""
- "<center>§7Amount: §f{WINNINGS}{CURRENCY}</center>"
- ""
Stats:
- ""
- "§7Player: §b{PLAYER}"
- ""
- "§7Wins: §b{WINS}"
- "§7Loses: §b{LOSSES}"
- "§7Profit: §b{PROFIT}"
- "§7Win percentage: §b{WIN_PERCENTAGE}%"TOS
- You may not redistribute plugin, in any shape or form neither it's code or parts of it.
- You may ask me for support.
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta