Demo:
Creating "coin flip session"
Accepting "coin flip session"
Commands:
/cf help : displays the help menu
/cf reload : reloads the config.yml
/cf debug <true|false> : turn on/off debug mode
/cf <amount>[token|$] : start creating a coin flip session. If the currency type ['token' or '$'] is not specified the default currency specified in config.yml will be used (default : 'token')
Installation:
Simply drop CoinFli-x.x.x.jar file into plugins folder and restart your server.
Configuration:
config.yml
Messages:
ErrorMsg : "&c[CoinFlip] : Some error occured."
NoSuchPlayer : "&c[CoinFlip] : No such player online!"
NotEnoughMoney : "&c[CoinFlip] : You don't have that many %currency%s to bet!"
MatchCreated : "&a[CoinFlip] : You created a CoinFlip match!"
MatchCreatedBroadcast : "&a[CoinFlip] : %player% created a CoinFlip match!"
AlreadyInMatch : "&c[CoinFlip] : You are already in a CoinFlip!"
CanceledMatch : "&c[CoinFlip] : You have left your CoinFlip match!"
NotInMatch : "&c[CoinFlip] : You are not in a CoinFlip!"
CantMatchWager : "&c[CoinFlip] : You don't have enough %currency%s to match this bet!"
CantEnterOwnMatch : "&c[CoinFlip] : You cant bet against yourself!"
SessionsLoaded : "&c[CoinFlip] : %total% coin flip sessions are loaded!"
YouHaveLost : "&c[CoinFlip] : You have lost the CoinFlip"
YouHaveWon : "&a[CoinFlip] : You have won the CoinFlip!"
MatchNoLongerExists : "&c[CoinFlip] : This match no longer exists!"
HelpMessages:
help:
msg: "&a/cf help : displays this help menu."
reload:
msg: "&a/cf reload : reloads config file."
permission: "coinflip.reload"
debug:
msg: "&a/cf debug <true|false> : turn on / off the debug mode."
permission: "coinflip.debug"
# token (TokenEnchant's token), $ (economy via vault)
# if the keyword 'token' or '$' was not provided it is regarded as this default currency.
DefaultCurrency: token
BroadcastMessage : false
GUISoundEffects : true
Sound.movingSound : BLOCK_NOTE_BLOCK_BASS
Sound.prizeSound : ENTITY_ARROW_HIT_PLAYER
Sound.closeInvent
Head:
Name: "Head"
Material: "PLAYER_HEAD"
Texture: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNDM1NzFlYjQ5YjY2NWIzYTc5YWM5NTkzYmRmZjdjMWE4YjEwMmJjMGM3NDJiZWY3YWNiYjVjYTY2MDcwY2RmMSJ9fX0="
Tail:
Name: "Tail"
Material: "PLAYER_HEAD"
Texture: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDE3NWZkZTk5ZDJhMmZhY2RiZjIxZThkNzJmOTJiMWU5YmRhNjY1YzM1MTdmNWU3Yzk0NGNlZjZhN2NiZjI3NyJ9fX0="