Configuration Files - Coralise/CustomBansPlus GitHub Wiki

config.yml

#MYSQL CONFIGURATION - You may setup your MySql Database here.
# You may delete the .db file if you use this version.
mysql:
  enable: false
  host:
  port:
  user:
  pass:
  database-name: "custombansplus"
  useSSL: false
  allowPublicKeyRetrieval: false



# Changes the display name of your console. For example, when you ban a player using the console, it'll substitute, save, and display the name below instead of just "CONSOLE."
console-name: "The Great Console"



# Note: If both are set to false, the plugin will default to interval saving at a 15 minute duration.
cache:
  # Sends a notif message to admins when cache is being stored.
  notify-save: false
  # Data saves when N number of new players join.
  fixed-amount:
    enable: true
    save-at: 100
  # Data saves every N duration.
  intervals:
    enable: true
    save-at: 15m



# 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
# Set to true if you want to force use the preset severity reason regardless if the sender inputted their own reason or not.
force-severity-reason: false



# Add as many warn checkers as you want.
# Order of commands executed is top to bottom.
# Format: %player%
warn:
  3:
    console-commands:
    - eco take %player% 500
    - kick %player% Reached 3 warns.
  5:
    console-commands:
    - ban %player% s1 Reached 5 warns.



# 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."



# Input your server's whisper or communication commands. A muted player will not be able to use these commands.
whisper-commands:
  - "tell"
  - "whisper"
  - "w"
  - "msg"
  - "localchat"
  - "lc"
  - "factionchat"
  - "fc"

  

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



# Logs to the console when a ban or mute has been lifted (i.e. served their sentences).
log:
  ban-lifts: false
  mute-lifts: false

messages.yml

# ALWAYS ENCLOSE MESSAGES IN QUOTATIONS

silent-prefix: "&a&lSilent: &r"
severity-alias-error: "&cAlias &f%alias% &calready exists for Severity No. %sevnum%. Ignoring this alias."
player-instance-warning: "&eWarning: &cPlayer %username% has never entered the server prior to the plugin's first installment. The player will be saved, but will currently not have an IP. Action will continue as usual."
duration-accepted-values: "&eAccepted values: &dperm or Xd Xh Xm Xs (You may combine them, i.e. 1d6h30m)\n&eEnter new duration:"
balance-reduction-accepted-values: "&eAccepted values: &dRational Numbers and Percentages\n&eEnter new Balance Deduction Value:"
console-cmds-desc: "&eCommand without /. Separate each with comma (commandx,commandy). Enter player as \"&d%player%&e\" (reset %player%). Enter \"clear\" to clear commands. Type \"cancel\" to cancel action.\n&eEnter new Console Commands:"
alias-desc: "&eEnter new severity aliases. Separate each with comma (alias1,alias2). Enter \"clear\" to clear aliases. Type \"cancel\" to cancel action."
severity-fixed-reason-desc: "&eEnter new Fixed Reason. Enter &dcancel&e to cancel action."

# MessageFormats: %staff% %duration% %reason% %unban-date% %player% %timeleft% /n
pages:
  tempban:
  - "&c&lYou have been banned!"
  - ""
  - "&f You have been banned by &e&l%staff%&f for &e&l%duration%"
  - "&f for the reason:"
  - "&c%reason%"
  - ""
  - "&fTime remaining: %timeleft%"

  permban:
  - "&c&lYou have been banned!"
  - ""
  - "&f You have been permanently banned by &e&l%staff%"
  - "&f for the reason:"
  - "&c%reason%"

  kick:
  - "&c&lYou have been kicked!"
  - ""
  - "&f You have been kicked by &e&l%staff%"
  - "&f for the reason:"
  - "&c%reason%"

# Formats: %staff% %duration% %reason% %unban-date% %player% %timeleft% /n
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%"
  # Severity Number Format: %sevnum%
  severity:
    tempban: "&c&l%player%&f has been banned by &e&l%staff%&f with &eSeverity &f#&c&l%sevnum%&f for: &c%reason%"
    permban: "&c&l%player%&f has been &c&lPermanently Banned&f by &e&l%staff%&f with &eSeverity &f#&c&l%sevnum%&f for: &c%reason%"
    tempipban: "&c&l%player%&f has been ip banned by &e&l%staff%&f with &eSeverity &f#&c&l%sevnum%&f for: &c%reason%"
    permipban: "&c&l%player%&f has been permanently ip banned by &e&l%staff%&f with &eSeverity &f#&c&l%sevnum%&f for: &c%reason%"
    tempbanNoRsn: "&c&l%player%&f has been banned by &e&l%staff%&f with &eSeverity &f#&c&l%sevnum%&f"
    permbanNoRsn: "&c&l%player%&f has been &c&lPermanently Banned&f by &e&l%staff%&f with &eSeverity &f#&c&l%sevnum%&f"
    tempipbanNoRsn: "&c&l%player%&f has been ip banned by &e&l%staff%&f with &eSeverity &f#&c&l%sevnum%&f"
    permipbanNoRsn: "&c&l%player%&f has been permanently ip banned by &e&l%staff% with &eSeverity &f#&c&l%sevnum%&f"

# Format: %timeleft%
muted-player: "&cYou are muted! Time remaining: &f%timeleft%"
unmuted-message: "&aYou are now unmuted."

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%"

defaults:
  reason: Struck by the Ban Hammer!
  mute-reason: The Mute Mallet has spoken!
  warn-reason: You have been warned!

duration:
  second: "Second"
  seconds: "Seconds"
  minute: "Minute"
  minutes: "Minutes"
  hour: "Hour"
  hours: "Hours"
  day: "Day"
  days: "Days"

Codes

Color Codes