FAQ
On this page(16)
How do I update SnFourInLine?
Download the newer snfourinline-v* release and replace the jar. Configs auto-merge on restart.
Does it support Folia?
No, SnFourInLine is not Folia-compatible. It targets Paper 1.20.x and 1.21.x.
Another menu replaced my board mid-game. Did I just lose?
No. Closing that menu brings the board back, and so does the bare /fourinline. Dying closes the board too; it returns when you respawn. Your turn timer keeps running throughout, so come back before it runs out.
Who gets the 3D board?
Players on a Java client at 1.20.5 or newer, when board-3d.enabled is on. Players on 1.20.4 or older, Bedrock players and anyone who ran /fourinline view menu get the chest menu. Install ViaVersion on the server so each player's real client version is known.
My 3D board stayed behind when I walked away
The board stays where it appeared. Run /fourinline while you are in the game and it moves in front of you again. Your turn timer keeps running.
I got the menu board although my client is new
There was no room for the board in front of you, and you were told so in chat. Stand in a more open spot for the next game. You also get the menu if you chose it with /fourinline view menu.
/fourinline prints help instead of opening the lobby
presentation.main is set to chat. Set it to gui, or use /fourinline lobby, which opens the lobby either way.
When is a bet actually charged?
bet charges nothing when the invite is sent: both players are charged the moment it is accepted, once both balances are verified. An invite that expires or is rejected has cost nobody anything. betcreate charges the creator immediately, because a listed game has to be funded before anyone can join; the joiner is charged when they join. Cancelling the listing, quitting the server or a shutdown all return that stake.
A player is told they have no balance when they clearly have one
The balance comes from the currency's balance-placeholder. Check it resolves to a plain number with /papi parse <player> %your_placeholder%. If PlaceholderAPI is missing, or the expansion behind the placeholder is, every balance reads as zero and every bet is refused.
A stake is refused as too fine
The stake has more decimal places than the currency's decimals allows. A fractional charge cannot be verified against a whole-number balance, so it is refused before anything is charged. Use a coarser amount, or raise decimals if the placeholder really renders that finely.
What happens to the money on a surrender, a timeout or a disconnect?
The opponent is paid exactly like a normal win, and the game is recorded as a loss for the player who gave up. A draw refunds both stakes.
The server stopped while games were running
Every running game ends with both stakes returned and no result recorded. One caveat: plugins disable in reverse load order, so if your economy plugin goes down before SnFourInLine, those refunds cannot reach it. The console then holds one WARN line per refund, naming the player and the amount owed. After a hard crash (a kill, a watchdog halt) there are no refunds at all, because escrow lives in memory: check the log for games and listings that were running.
A transfer failed. Who ate the money?
Nobody, silently. Every transfer is a console command with the balance read back around it, and watched for the currency's confirm-ticks: a take counts only once the balance is seen to drop, and a payout to an online player is checked for the rise. When a transfer does not move the money, the plugin refuses to start (or list) that bet, tells the player, and logs one WARN naming the exact currencies.<id>.<give|take>-command key, the player and the amount.
Bets say "unavailable", but the economy still took the money
The economy applies console commands later than the plugin waited for them. This is typical of a proxy economy (one whose command is forwarded to BungeeCord or Velocity, such as SnCredits), where the balance moves a round trip after the command runs. The console WARN says so and names the amount owed. Raise that currency's confirm-ticks (default 60, at most 200) and run /fourinline reload. A player who starts a bet while an earlier charge is still being confirmed is asked to try again in a moment.
Can I redesign the menus?
Yes. The three files under guis/ own the layout mask, materials, names, lore and click actions, and the code reads the cells from the mask. Moving the sidebar or repositioning the 42 board cells works; the grid itself is always 7 columns by 6 rows.
Run /fourinline preview while you work: it starts a real game with you in both seats, so you can see the board and play it with nobody else online. Edit a menu file, run /fourinline reload, and the board comes back painted from the new definition. Closing the board cancels the preview, so you can start a fresh one whenever you like.
The plugin will not enable and the console says License: FAIL
Either the key in plugins/.Sn-License/license.yml is missing, wrong or expired, or the server cannot reach the license host, or the jar has been modified. The check runs on every startup, retries three times, then disables the plugin. Allow the host through your firewall and use the jar exactly as downloaded.