Temporarily disabled due to license key server updates and database updates.
Fixed
Also
- StaffChat lines and toggle messages now properly render prefix color codes (& codes) instead of showing raw &7, etc.
- Removed hard-coded Hungarian fragments; all StaffChat texts now come from messages.yml (English keys: staffchat.toggled-on/off/notify, staffchat.usage, staffchat.line).
- Ensured /staffchat (/sc) is fully wired and uses the existing netmod.notify permission.
New
- Global StaffChat
- Commands: /staffchat (/sc) with modes:
- on – read + write to StaffChat
- notify – read-only (your messages go to normal chat)
- off – disable StaffChat
- Displays the origin server for each staff message.
- Console echo option for StaffChat.
- Permission uses your existing notify perm: netmod.notify (no new perm needed).
- Server-aware staff notifications
- All StaffChat lines and report notifications include {server} so staff can see where messages originate.
🛠 Config & Messages
- config.yml additions:
staffchat:
enabled: true # Master switch for StaffChat. If false, /sc does nothing.
permission: "netmod.notify" # Permission required to read/use StaffChat (reuses your notify perm).
consoleEcho: true # Also echo StaffChat messages to the proxy console.- messages.yml additions:
staffchat:
usage: "&cUsage: &f/sc [on|off|notify] &7(Current: {mode})"
toggled-on: "&aStaffChat &2ON&a. &7(Write+Read)"
toggled-off: "&aStaffChat &7OFF."
toggled-notify: "&aStaffChat &eNOTIFY&a. &7(Read-only; your messages go to normal chat)"
line: "&b[StaffChat]&7 ({server}) &f{sender}&7: &f{text}"
Build & Compatibility
- Java 8-friendly code and dependencies.
- Maven POM cleaned up:
- Stable BungeeCord API repo coordinates.
- Shaded dependencies (HikariCP, MySQL, SQLite) with relocations to avoid classpath clashes.
- Avoided Configuration#getInt(key,def) / getLong(key,def) overloads; replaced with safe helpers compatible with Bungee’s Configuration.
API/Code Quality
- notifyStaff(...) overload kept for backward compatibility with older command classes.
- Clean separation:
- StaffChatCommand handles toggling.
- StaffChatListener redirects normal chat when mode is on and respects notify read-only mode.
- No database schema changes required.
Fixes
- Red “sender” references in commands resolved via the compatibility overload or updated calls.
- Consistent use of permission checks (reuses netmod.notify).
Upgrade Notes
- Drop-in update: replace the jar.
- Merge the new staffchat block into your config.yml.
- Add the new staffchat section to messages.yml (or keep your own wording).
- No migrations; restart the proxy.
Permissions
- Uses existing: netmod.notify for StaffChat read/write and /sc command.
