Updates
- New: approval of punishments from StarPunicoes to Discord. The bot posts each request to the channel configured in StarPunicoes with the Approve and Deny buttons; Deny opens a form for the reason (optional)
- It only appears for those who use the StarPunicoes approval system (1.0.12 or newer); nothing changes for those who don't use it
- New Debug option at config.yml (off by default): routine messages, such as boost recount every 30 minutes, reward verification at entry and job synchronization, only appear in the console with Debug: true
- The old Debug within Database never worked and left the config
- Fixed: on server 1.8.8 using SQLite, the database did not open or the data was not saved (the SQLite that comes with 1.8.8 is old). Tested on 1.8.8 and 1.20.4.
- /perfildiscord shows the head of the player with the linked account: user, ID, link date and how long they have been on Discord.
- /perfildiscord <nick | ID of Discord | @user> for staff to see the profile of those who are offline (read only).
- /discord opens menu (Opcoes.DiscordPorMenu): linked goes to profile; unlinked chooses between linking (entering the user in the chat) or receiving the link from Discord.
- Mirror ban: whoever is banned in the game (StarPunicoes 1.0.7) is banned from Discord or receives a position, and is released when the sentence expires. Optional: ban made in Discord runs commands in the game.
- /desvinculardc accepts the ID of Discord, and /vinculardc tells which player the ID is already with.
- /vincular <code> in the game accepts the code generated by /vincular from Discord; /vincular of Discord warns those who are already linked.
- Fixed: bond said 'success' without writing to SQLite, leaving player stuck in 'can't speak before bonding''.
- Fixed: blocking chat for unlinked people allowed the message to pass through; linking via chat did not give positions or rewards.
- Fixed: Repeated link code could point to someone else's account; There is now a limit on attempts.
- Clear message when the bank does not open, instead of the pool error stack.
- Without the Database section in config.yml, use SQLite instead of searching for a MySQL that no one configured.
- Fixed in SQLite mode: boost count never changed.
- The second MySQL database in the call competition came from plugin; who takes care of this now and the addon StarCompBot.
- Slash commands registered one by one, so as not to delete addon commands in the same bot.
- Boost recount: a line in place of the stack when Discord stumbles, and up to three attempts.
- Positions and rewards belong to the server owner: renaming or changing examples no longer indicates incomplete configuration.
Internal Java compatibility tweak 17.
- Boost count now anchors on who is actually boosting (treats expiration) and reads the boost channel by ID Discord, instead of the inaccurate global delta
- Periodic tasks now cancel themselves when the product goes offline: old and new versions are no longer checking the bank at the same time
- All access to the bank goes through a single guard, and a closed pool error no longer clogs the console
- Periodic tasks (mute scan, boost sync, StarComp) are now canceled on shutdown — the 'HikariDataSource has been closed' error disappears on shutdown and there are no more duplicate scans after updating
- Fixed the entire server crashing when a player entered: bank queries at login ran on the main thread and froze everyone's chat and commands until MySQL responded.
- Bond and reward checks now run in the background, without holding the server tick.
- Mirrors the mutes of StarPunitions on Discord, in the chat and in the call
- The mute position returns on its own for those who leave Discord and enter again
- Compatibility with older servers: menus and sounds work again from 1.13 to 1.21
- Internal stability fixes
- 4 digit numbers in chat are no longer confused with verification code
- plugin only waits for the code from whoever just used /vincular