Skip to content

SnFourInLine v2.1.1

Choose a tag to compare

@ValentinTarnovsky ValentinTarnovsky released this 04 Sep 22:36
· 30 commits to main since this release

Changes

  • Closing the /fourinline preview board now cancels the game. The close guard reopened the board of every live seat - the rule that keeps a real game alive when one of its two players closes their window - so a preview session outlived the window it was played in. The next /fourinline preview was then refused with "you are already in a game" until the turn countdown surrendered the admin against themselves.
  • A preview seat's own close of the board ends it with no result: no statistics, no broadcast, no cue, no stake to settle. Every other close (a reload, a teleport, another plugin's window, death) still hands the board back exactly like any other seat, so opening /fourinline top over a preview and closing it again returns to the game.
  • Watchers of a cancelled preview are told the game ended and their board is closed.

Language file

Two new keys are merged into lang/messages_en.yml on boot, values preserved:

  • messages.preview.cancelled
  • status.result-cancelled

messages.preview.started now says the board can be closed to end a preview; an existing server keeps its current text (the merge never overwrites a value you have).

Installation

Download the JAR below and place in your plugins folder. Requires SnLib.jar.