Coinflip
Description
Permissions
coinflip.use- Permission to use/cfcoinflip.cancel- Permission to cancel your/cfcoinflip.limit.<#>- Amount of coinflips you can have opencoinflip.admin- Access to admin coinflip commands
Commands
/cfor/coinflip- Open main coinflip GUI/cf <amount>- Bet an amount in coinflip/cf cancel- Cancel your last bet/cf history- View your last coinflips/cf join <id>- Join a specific open game/cf toggle- Toggle coinflip broadcasts/cf stats- View your cf stats/cf reload- Admin command to reload config and messages
Commands
this is a command
Configuration Files
config.yml
# ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
# ┃ Coinflip Configuration by SimpleSetupMC ┃
# ┃ ┃
# ┃ VISIT THE WIKI FOR MORE INFO: ┃
# ┃ http://wiki.simplesetupmc.com ┃
# ┃ ┃
# ┃ JOIN OUR DISCORD FOR SUPPORT: ┃
# ┃ http://simplesetupmc.com ┃
# ┃ ┃
# ┃ ┃
# ┃ Use /cf reload after editing most values. ┃
# ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
storage:
# How to store stats:
# YAML = stats.yml in the plugin folder (default)
# SQLITE = SQLite database file in the plugin folder
# MYSQL = MySQL / MariaDB database
stats-format: "SQLite"
# How often to flush stats to disk / DB
save-interval-minutes: 5
# MySQL / MariaDB settings (used when stats-format: "MYSQL")
mysql:
host: "localhost"
port: 3306
database: "minecraft"
user: "root"
password: "changeme"
use-ssl: false
table-prefix: "coinflip_"
# SQLite settings (used when stats-format: "SQLITE" or "SQL")
sqlite:
file: "coinflip.db" # stored in the plugin's data folder
table-prefix: "coinflip_"
economy:
vault-required: true
# Vault bank account for rake, empty = sink
server-account: ""
currency-format: "$#,###"
limits:
min-bet: 100.0
max-bet: 1000000.0
# set to false to enable permission-based caps
single-game-per-player: true
default-max-open: 3
house:
rake-percent: 5.0
rake-rounding: "DOWN"
announce:
create: true
win: true
min-broadcast-amount: 0.0
sounds:
enabled: true
click: "UI_BUTTON_CLICK"
create: "ENTITY_EXPERIENCE_ORB_PICKUP"
win: "ENTITY_PLAYER_LEVELUP"
loss: "ENTITY_VILLAGER_NO"
timeouts:
open-game-minutes: 30
starting-seconds: 2
chat-prompt-seconds: 30
safety:
refund-on-shutdown: true
discord:
enabled: true
create_webhook: ""
resolve_webhook: ""
username: "CoinFlip"
avatar_url: ""
mention_role: ""
timeout_ms: 4000
min_broadcast_amount: 0.0
debug: false
message.yml
# Available Placeholders
# {prefix} {creator} {amount} {game_id} {rake} {winner}
prefix: "&6&lCoinflip&r &8»&r "
generic:
no-permission: "{prefix}&cYou don't have permission."
player-only: "{prefix}&cPlayers only."
reloaded: "{prefix}&aConfig and messages reloaded."
error: "{prefix}&cSomething went wrong."
create:
usage: "{prefix}&7Use &e/cf <amount>&7 e.g. &e/cf 10k"
minmax: "{prefix}&cAmount must be within limits."
insufficient: "{prefix}&cNot enough balance."
already-open: "{prefix}&cYou already have an open game."
success: "{prefix}&aCreated coinflip for &e{amount}&a! ID: &b{game_id}"
broadcast: "{prefix}&7{creator} started a coinflip for &e{amount}&7!"
max-open: "{prefix}&cYou already have &e{current}&c open (max &e{max}&c). Close one before creating another."
chat-prompt: "&aEnter a wager amount in chat &7(e.g. &b10k&e, &b250000&e) &aor type &c cancel &ato abort."
chat-cancelled: "&cCoinflip creation cancelled."
chat-invalid: "&cThat doesn't look like a valid amount. &7Try again, or type &c cancel &7to abort."
chat-timeout: "&cTimed out. Type /cf to open the menu again."
join:
not-found: "{prefix}&cNo game found with ID &e{id}&c."
own-game: "{prefix}&cYou can't join your own game."
insufficient: "{prefix}&cNot enough balance."
success: "{prefix}&aJoined {creator} for &e{amount}&a. Flipping..."
resolve:
win: "{prefix}&a{winner} won &e{payout}&a vs {loser} &7(rake: {rake})"
cancel:
success: "{prefix}&7Your open game was canceled and refunded."
stats:
header: "&x&f&f&d&7&0&0Your Stats"
line: "&7Wins: &a{wins}&7, Losses: &c{losses}&7, Wagered: &e{wagered}&7, Net: {net}"
toggle:
on: "{prefix}&aYou will now see Coinflip broadcasts."
off: "{prefix}&7You will no longer see Coinflip broadcasts."
placeholders:
live:
sort:
low: "Low"
high: "High"
recent: "Recent"
toggle:
status_on: "&aMessages: Enabled"
status_off: "&cMessages: Disabled"
hint_on: "&7Right-click to &cdisable &7messages"
hint_off: "&7Right-click to &aenable &7messages"
history:
win: "WIN"
loss: "LOSS"
Placeholders
%antiafk_status%%antiafk_time%