Skip to content

SnCoinFlip v2.4.0

Choose a tag to compare

@ValentinTarnovsky ValentinTarnovsky released this 31 Aug 01:04
· 52 commits to main since this release

Changes

/cf works again

The 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.

Abbreviated wagers

/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.

Requires

SnLib 1.33.0 or newer on the server (this build moved up from 1.24.1).

Installation

Download the JAR below and place in your plugins folder. Requires SnLib.jar (1.33.0 or newer)
and Vault.