Code Optimizations that improves the report command performance.
Config File Cleanup The config.yml file is now easier to read and understand.
Code (YAML):
#SQL CONFIGURATION - You may setup your Sql Database here. sql:
enable: false
host:
port:
user:
pass: cache: # Data saves when N number of new players join. save-at: 100
# Sends a notif message to admins when cache is being stored. notify-save: false
# ENCLOSE MESSAGES IN QUOTATIONS # Formats: %staff% %duration% %reason% %unban-date% %player% %timeleft% /n pages:
tempban: "&c&lYou have been banned!/n/n&f You have been banned by &e&l%staff%&f for &e&l%duration% /n&f for the reason: /n &c%reason% /n/n&f Time remaining: %timeleft%" permban: "&c&lYou have been banned!/n/n&f You have been permanently banned by &e&l%staff% /n&f for the reason: /n &c%reason%" kick: "&c&lYou have been kicked!/n/n&f You have been kicked by &e&l%staff% /n&f for the reason: /n &c%reason%"
# Set to true if you want to use punishments without reason, and false if you want to use the default reasons if reason is blank. toggle-no-reason: false
announcers:
tempban: "&c&l%player%&f has been banned by &e&l%staff%&f for &c&l%duration%&f for: &c%reason%" permban: "&c&l%player%&f has been &c&lPermanently Banned&f by &e&l%staff%&f for: &c%reason%" tempipban: "&c&l%player%&f has been ip banned by &e&l%staff%&f for &c&l%duration%&f for: &c%reason%" permipban: "&c&l%player%&f has been permanently ip banned by &e&l%staff%&f for: &c%reason%" kick: "&c&l%player%&f has been kicked by &e&l%staff%&f for: &c%reason%" warn: "&c&l%player%&f has been warned by &e&l%staff%&f for: &c%reason%" mute: "&c&l%player%&f has been muted by &e&l%staff%&f for &c&l%duration%&f for: &c%reason%" unban: "&e&l%staff%&f unbanned &c&l%player%." unmute: "&e&l%staff%&f unmuted &c&l%player%." tempbanNoRsn: "&c&l%player%&f has been banned by &e&l%staff%&f for &c&l%duration%" permbanNoRsn: "&c&l%player%&f has been &c&lPermanently Banned&f by &e&l%staff%&f" tempipbanNoRsn: "&c&l%player%&f has been ip banned by &e&l%staff%&f for &c&l%duration%" permipbanNoRsn: "&c&l%player%&f has been permanently ip banned by &e&l%staff%" kickNoRsn: "&c&l%player%&f has been kicked by &e&l%staff%" warnNoRsn: "&c&l%player%&f has been warned by &e&l%staff%" muteNoRsn: "&c&l%player%&f has been muted by &e&l%staff%&f for &c&l%duration%" defaults:
reason: Struck by the Hammer!
mute-reason: The Mute Mallet has spoken!
warn-reason: You have been warned!
messages:
muted-player: "&cYou are muted!" report:
report-successful: "&aReport successful! The staff team has been notified of your report, please expect a response soon." blacklisted-message: "§cYou are blacklisted from using the report command." # Formats: %reporter% %reported% %report% staff-notify: "&a%reporter% has submitted a report against %reported%! Do /reports show %reported% to look into it. Report: %report%"
# Set enable-warn-titles to true if you want titles to appear on your warns. warn-title:
enable: true
warn-title: "&c&lYou have been warned!" # Set to true if you want the warn reason as the subtitle. custom-subtitle: false
warn-subtitle: "§fYou've been warned! Check your chat." updates: # Set to true if you want op players to receive plugin update notifications. notify: true
# Set intervals of when to check for updates. Follows the same duration patterns (Xs, Xm, Xh, Xd). interval: 3h