9 releases, newest first.
plugins/SnCoinFlip/scenes/, so improvements to the coin reach every server on update. To use a design of your own, put coin-win.json and coin-lose.json in that folder; delete them to return to the built-in coin. The untouched copies version 2.6.0 wrote there are removed automatically on the first start (a console line says so); a file you changed is kept and used./coinflip animation [3d|menu]: each player chooses how their coinflips are shown, and the choice is remembered. Without an argument it switches to the other view. It uses the existing sncoinflip.use permission.animation.coin, merged into your config.yml automatically: enabled (on by default; set it to false to keep the menu for everyone), default-view, min-protocol, and the distance, size, height and follow settings. The texts around the coin are in the new coin section of the language files.animation.duration-ticks and reveal-delay-ticks. A match both players watch on the menu is unchanged.plugins/SnCoinFlip/scenes/ and is restored by deleting its two files. A design that cannot be used turns the coin off with a console line and everybody gets the menu./cf works againThe alias was declared only in config.yml under command.aliases, and that binding fails
silently when the key is missing, so /cf did not exist on a real server across 2.0.0-2.3.0.
aliases: [cf] is back in plugin.yml, where Bukkit binds it at load.
command.aliases still works and is still re-read on /coinflip reload: anything you add there
is registered immediately and removed again when you take it out. The one change is that cf
itself can no longer be removed from that list.
/coinflip create <currency> <amount> now accepts 1k, 1.5m, 2B - suffixes k/m/b/t/qa/qi,
case-insensitive. Comma grouping (1,000) and the European decimal comma (1,5k) come with it.
The wager is still a whole number, so 1.5 is refused rather than truncated. 10.000 is refused
too: a lone dot is read as a decimal point, so it would have become a wager of ten. Write 10000
or 10k.
bet.suggested-amounts may use the abbreviated forms now as well.
SnLib 1.33.0 or newer on the server (this build moved up from 1.24.1).
broadcast.result-min-amount (global, default 0, so every finished match is still announced until you raise it), plus an optional result-broadcast-min override inside any single currency's entry under currencies:.currencies: is owner-owned, so the per-currency key is never inserted into an entry that already exists on disk.broadcast.min-amount (global, default 0 - same chat as before until you raise it) plus an optional broadcast-min override inside any single currency's entry under currencies:.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