3 releases, newest first.
config.yml ships lang: en, and the lobby and statistics menus (guis/lobby.yml, guis/stats.yml) are English.lang/messages_es.yml still ships complete, so lang: es plus /coinflip reload switches the messages back.lang never translated the menus, and now the files say so. Setting lang: en previously gave you English chat with Spanish menus; menu text is edited directly in guis/*.yml.Nothing to do, and nothing changes on a server that already ran this plugin. SnLib preserves the values already on disk, so your config.yml keeps its lang and your menus keep their current wording. Only a fresh install starts out in English.
plugin.yml declares depend: [SnLib, Vault]. A server without Vault.jar will not load
SnCoinFlip at all. Install Vault before updating.
vault: true is
served by whatever economy plugin registered its provider with Vault (EssentialsX, CMI,
XConomy, ...). It needs no other field - no id, no commands, no placeholder - so a fresh
install can wager with zero editing.vault: true currency registers either way and starts working the moment a provider appears -
no restart, no /coinflip reload. Until then its wagers are refused as unverifiable and the
players are told exactly that, not told they are broke.money currency first, one command-backed
example and one EdTools example. The five EdTools examples are down to one: copying the block
is all the other four ever were.Nothing in an existing config.yml changes meaning. vault: is a new key that means false when
absent, so every currency you already have keeps the backend it already had.
currencies: is a section this plugin never edits (# sn:extensible), which also means the new
money currency is not inserted into a config.yml that already exists. To pick it up, add it
by hand:
money:
display-name: "&aMONEY"
vault: trueor delete the whole currencies: block and let the plugin write the new defaults back on the next
boot.
PvP coinflip gambling for Paper 1.20.x / 1.21.x, with as many currencies as you care to configure.
A player stakes an amount, the wager goes up in a public lobby menu, someone accepts it, both stakes are debited, a fair 50/50 winner is drawn and an animation plays before the winner takes the pot. Lifetime totals are kept per player per currency.
guis/*.yml.lang/ merged on update so your edits and comments survive.SnLib.jar must be present in plugins/ (com.sn:snlib 1.24.1 or newer).plugins/.Sn-License/license.yml. One key covers every bundled Sn plugin.config.yml, lang/ and guis/ generate on first boot. Replace the shipped currencies: block with your own before letting players use it.edtoolapi: true.Two settings are worth reading the docs for, because getting either wrong costs players money and neither looks like a misconfiguration from the outside: balance-placeholder must render an exact, unabbreviated number, and verification.confirm-look-ticks must out-wait whatever refreshes that number on a proxied setup.
Requirements: Java 21+, Paper 1.20.x or 1.21.x
Full documentation: https://github.com/ValentinTarnovsky/Sn-Releases/tree/main/docs/gitbook/sncoinflip