PunishmentSystem
  • ✊Punishment System
    • 🔧Installation
    • 🖥️Commands
    • 🖼️Web Admin Panel
    • 📝Config
Powered by GitBook
On this page
  • Settings.yml
  • Messages.yml
  1. Punishment System

Config

Here you take a look at the the settings.yml and messages.yml config.

Settings.yml

# Punishment system configuration.
punishment:
  # The language of the plugin
  language: english

  # databaseType: The type of database to use.
  #               'MySQL' - To use a MySQL database.
  #               'SQLite' - To use a SQLite (Flatfile / local) database.
  #
  # Make sure to enter the correct information for your database if you use MySQL.
  #
  # IMPORTANT: If you want to use the Webinterface, you have to use MySQL.
  databaseType: 'SQLite'
  mysql:
    host: 'localhost'
    port: 3306
    username: 'root'
    password: 'password'
    database: 'database'

  # This needs to be enabled if you want to use the Webinterface.
  webinterface:
    enabled: true
    port: 42069

  # Max ban & mute duration in seconds. The player needs the
  # bansystem.ban.<group> or mutesystem.mute.<group> permission to use the duration
  ban:
    srmoderator: 31536000 # bansystem.ban.srmoderator permission to use this duration
    moderator: 2592000
    srsupporter: 604800
    supporter: 86400 # 86400 seconds = 1 day

  mute: # same as ban
    srmoderator: 2592000
    moderator: 604800
    srsupporter: 86400
    supporter: 3600

Messages.yml

punishment:
  playerNotFound: '&cPlayer %PLAYER% not found.'
  consoleName: CONSOLE
  timeFormat:
    years: ' Years '
    year: ' Year '
    days: ' Days '
    day: ' Day '
    hours: ' Hours '
    hour: ' Hour '
    minutes: ' Minutes '
    minute: ' Minute '
    seconds: ' Seconds '
    second: ' Second '
    permanent: PERMANENT
  textComponents: # the text components are used for hover-able messages
    banBroadcast: |-
      &6[INFO] {hovertext: &7Banned by &c%BANNED_BY_PREFIX%%BANNED_BY%
      &7Reason: &c%REASON%
      &7Duration: &c%DURATION%}
    unbanBroadcast: |-
      &6[INFO] {hovertext: &7Unbanned by &c%UNBANNED_BY_PREFIX%%UNBANNED_BY%
      &7Reason: &c%REASON%}
    currentBan: |-
      &6[INFO] {hovertext: &8------- &eCurrent ban of &e%PREFIX%%PLAYER% &8-------
      &7Reason: &e%REASON%
      &7Banned by: &e%BANNED_BY_PREFIX%%BANNED_BY%
      &7Banned on: &e%BAN_START%
      &7Banned until: &e%BAN_END%
      &7Ban duration: &e%DURATION%
      &7Remaining time: &e%REMAINING_TIME%
      &8------- &eCurrent ban of &e%PREFIX%%PLAYER% &8-------}
    pastBanUnbanned: |-
      &6[INFO] {hovertext: &8------- &ePrevious ban of &e%PREFIX%%PLAYER% &8-------
      &7Reason: &e%REASON%
      &7Banned by: &e%BANNED_BY_PREFIX%%BANNED_BY%
      &7Banned on: &e%BAN_START%
      &7Banned until: &e%BAN_END%
      &7Ban duration: &e%DURATION%
      &7Unbanned: &aYES
      &7Unbanned by: &e%UNBANNED_BY_PREFIX%%UNBANNED_BY%
      &7Unban reason: &e%UNBAN_REASON%
      &7Unban time: &e%UNBAN_TIME%
      &8------- &ePrevious ban of &e%PREFIX%%PLAYER% &8-------}
    pastBanNotUnbanned: |-
      &6[INFO] {hovertext: &8------- &ePrevious ban of &e%PREFIX%%PLAYER% &8-------
      &7Reason: &e%REASON%
      &7Banned by: &e%BANNED_BY_PREFIX%%BANNED_BY%
      &7Banned on: &e%BAN_START%
      &7Banned until: &e%BAN_END%
      &7Ban duration: &e%DURATION%
      &7Unbanned: &cNO
      &8------- &ePrevious ban of &e%PREFIX%%PLAYER% &8-------}
    muteBroadcast: |-
      &6[INFO] {hovertext: &7Muted by &c%MUTED_BY_PREFIX%%MUTED_BY%
      &7Reason: &c%REASON%
      &7Duration: &c%DURATION%}
    unmuteBroadcast: |-
      &6[INFO] {hovertext: &7Unmuted by &c%UNMUTED_BY_PREFIX%%UNMUTED_BY%
      &7Reason: &c%REASON%}
    currentMute: |-
      &6[INFO] {hovertext: &8------- &eCurrent mute of &e%PREFIX%%PLAYER% &8-------
      &7Reason: &e%REASON%
      &7Muted by: &e%MUTED_BY_PREFIX%%MUTED_BY%
      &7Muted on: &e%MUTE_START%
      &7Muted until: &e%MUTE_END%
      &7Mute duration: &e%DURATION%
      &7Remaining time: &e%REMAINING_TIME%
      &8------- &eCurrent mute of &e%PREFIX%%PLAYER% &8-------}
    pastMuteUnmuted: |-
      &6[INFO] {hovertext: &8------- &ePrevious mute of &e%PREFIX%%PLAYER% &8-------
      &7Reason: &e%REASON%
      &7Muted by: &e%MUTED_BY_PREFIX%%MUTED_BY%
      &7Muted on: &e%MUTE_START%
      &7Muted until: &e%MUTE_END%
      &7Mute duration: &e%DURATION%
      &7Unmuted: &aYES
      &7Unmuted by: &e%UNMUTED_BY_PREFIX%%UNMUTED_BY%
      &7Unmute reason: &e%UNMUTE_REASON%
      &7Unmute time: &e%UNMUTE_TIME%
      &8------- &ePrevious mute of &e%PREFIX%%PLAYER% &8-------}
    pastMuteNotUnmuted: |-
      &6[INFO] {hovertext: &8------- &ePrevious mute of &e%PREFIX%%PLAYER% &8-------
      &7Reason: &e%REASON%
      &7Muted by: &e%MUTED_BY_PREFIX%%MUTED_BY%
      &7Muted on: &e%MUTE_START%
      &7Muted until: &e%MUTE_END%
      &7Mute duration: &e%DURATION%
      &7Unmuted: &cNO
      &8------- &ePrevious mute of &e%PREFIX%%PLAYER% &8-------}
    kickBroadcast: |-
      &6[INFO] {hovertext: &7Kicked by &c%KICKED_BY_PREFIX%%KICKED_BY%
      &7Reason: &c%REASON%}
    kick: |-
      &6[INFO] {hovertext: &8------- &eKick of &e%PREFIX%%PLAYER% &8-------
      &7Reason: &e%REASON%
      &7Kicked by: &e%KICKED_BY_PREFIX%%KICKED_BY%
      &7Kicked on: &e%TIME%
      &8------- &eKick of &e%PREFIX%%PLAYER% &8-------}
    warnBroadcast: |-
      &6[INFO] {hovertext: &7Warned by &c%WARNED_BY_PREFIX%%WARNED_BY%
      &7Reason: &c%REASON%}
    warn: |-
      &6[INFO] {hovertext: &8------- &eWarn of &e%PREFIX%%PLAYER% &8-------
      &7Reason: &e%REASON%
      &7Warned by: &e%WARNED_BY_PREFIX%%WARNED_BY%
      &7Warned on: &e%TIME%
      &8------- &eWarn of &e%PREFIX%%PLAYER% &8-------}

  banSystem:
    prefix: '&4BanSystem &7» '
    help: |-
      &7&m-----------------&r&e« BanSystem »&7&m-----------------
      
      &7/ban &a<Player> [<Time>] <Reason> &8- &7Ban a player
      &7/ban &a<Player> #<template-id> &8- &7Ban a player
      &7/unban &a<Player> &8- &7Unban a player
      &7/baninfo &a<Player> &8-&7View player's ban history
      &7/clearbans &a<Player> &8- &7Clear all ban entries
      &7/bantemplate &alist &8- &7Show ban templates
      &7/bantemplate &aadd <time> <reason> &8- &7Add ban template
      &7/bantemplate &aedit <time> <reason> &8- &7Edit ban template
      &7/bantemplate &aremove <id> &8- &7Remove ban template
      &7/banReload &8- &7Reload messages from config
      
      &7&m-----------------&r&e« BanSystem »&7&m-----------------
    banMessage: |-
      &6&m---------------------------------------------
      
      &c&l  YOU HAVE BEEN BANNED!
      
      &e&lReason: &r&f%REASON%
      
      &e&lRemaining Time: &r%REMAINING_TIME%
      
      &aIf you believe this is an error, please contact the server staff.
      
      &6&m---------------------------------------------
    ban:
      syntax: '&cSyntax: /ban <Player> [<Time>] <Reason>'
      self: '&cYou can''t ban yourself.'
      noPermission: '&cYou don''t have permission to ban for this time period.'
      insufficientRank: '&cYou don''t have permission to ban this player.'
      successful: '&7Player &c%PREFIX%%PLAYER% &7was banned! {banBroadcast}'
      alreadyBanned: |-
        &cPlayer %PREFIX%%PLAYER% is already banned.
        &6Use /baninfo %PLAYER% to see the ban.
    unban:
      syntax: '&cSyntax: /unban <Player> [<Reason>]'
      notBanned: '&cPlayer &e%PREFIX%%PLAYER% &cis not banned.'
      successful: '&7Player &e%PREFIX%%PLAYER% &7was unbanned! {unbanBroadcast}'
    banInfo:
      syntax: '&cSyntax: /baninfo <Player>'
      noCurrentBan: '&aPlayer %PREFIX%%PLAYER% &ais not banned currently.'
      currentBan: '&7%PREFIX%%PLAYER% &cis currently banned! {currentBan}'
      noPastBan: '&aPlayer %PREFIX%%PLAYER% &ahas no previous/expired bans.'
      pastBanUnbanned: '&7Ban from &e%DATE% {pastBanUnbanned}'
      pastBanNotUnbanned: '&7Ban from &e%DATE% {pastBanNotUnbanned}'
    clearBans:
      syntax: '&cSyntax: /clearbans <Player>'
      successful: '&4!! &7Ban record of &e%PREFIX%%PLAYER% &7was cleared by &e%CLEARED_BY_PREFIX%%CLEARED_BY% &4!!'
      allBansRemoved: '&7All your ban entries have been cleared by &e%PREFIX%%PLAYER% &7:O'
    template:
      syntax: |-
        &cSyntax error. Possibilities:
        &7/bantemplate &alist &8- &7list existing ban templates
        &7/bantemplate &aadd <time> <reason> &8- &7add ban template
        &7/bantemplate &aedit <id> <time> <reason> &8- &7edit ban template
        &7/bantemplate &aremove <id> &8- &7remove ban template
      list:
        header: '&7------------------- &eBan Templates &7-------------------'
        content: '&7(&eID: %ID%&7) &8| &c%DURATION% &8| &e%REASON%'
        footer: '&7------------------- &eBan Templates &7-------------------'
      add:
        successful: '&aBan Template added!'
        error: '&cBan template not found!'
      edit:
        successful: '&aBan Template edited!'
      remove:
        successful: '&aBan Template removed!'
  muteSystem:
    prefix: '&4MuteSystem &7» '
    help: |-
      &7&m-----------------&r&e« MuteSystem »&7&m-----------------
      
      &7/mute &a<Player> [<Time>] <Reason> &8- &7Mute a player
      &7/mute &a<Player> #<template-id> &8- &7Mute a player
      &7/unmute &a<Player> &8- &7Unmute a player
      &7/muteinfo &a<Player> &8- &7View player's mute history
      &7/clearmutes &a<Player> &8- &7Clear all mute entries
      &7/mutetemplate &alist &8- &7Show mute templates
      &7/mutetemplate &aadd <time> <reason> &8- &7Add mute template
      &7/mutetemplate &aedit <time> <reason> &8- &7Edit mute template
      &7/mutetemplate &aremove <id> &8- &7Remove mute template
      &7/muteReload &8- &7Reload messages from config
      
      &7&m-----------------&r&e« MuteSystem »&7&m-----------------
    muteMessage: |-
      &cYou have been muted.
      &eReason: &c%REASON%
      &eMuted by: &c%MUTED_BY_PREFIX%%MUTED_BY%
      &eRemaining time: &c%REMAINING_TIME%
    mute:
      syntax: '&cSyntax: /mute <Player> [<Time>] <Reason>'
      noPermission: '&cYou don''t have enough permissions!'
      successful: '&7Player &c%PREFIX%%PLAYER% &7was muted! {muteBroadcast}'
      insufficientRank: '&cYou don''t have permission to mute this player.'
    unmute:
      syntax: '&cSyntax: /unmute <Player> [<Reason>]'
      notMuted: '&cPlayer &e%PREFIX%%PLAYER% &cis not muted.'
      successful: '&7Player &e%PREFIX%%PLAYER% &7was unmuted! {unmuteBroadcast}'
      youAreNoLongerMuted: |-
        &7You were unmuted by &e%PREFIX%%PLAYER%
        &7Reason: &e%REASON%
    muteInfo:
      syntax: '&cSyntax: /muteinfo <Player>'
      noCurrentMute: '&aPlayer %PREFIX%%PLAYER% &ais not muted currently.'
      currentMute: '&7Player %PREFIX%%PLAYER% &cis currently muted! {currentMute}'
      noPastMute: '&aPlayer %PREFIX%%PLAYER% &ahas no previous mutes.'
      pastMuteUnmuted: '&7Mute from &e%DATE% {pastMuteUnmuted}'
      pastMuteNotUnmuted: '&7Mute from &e%DATE% {pastMuteNotUnmuted}'
    clearMutes:
      syntax: '&cSyntax: /clearmutes <Player>'
      successful: '&4!! &7Mute entries of &e%PREFIX%%PLAYER% &7were cleared by &e%CLEARED_BY_PREFIX%%CLEARED_BY% &4!!'
      allMutesRemoved: '&7All your mute entries have been cleared by &e%PREFIX%%PLAYER% &7:O'
    template:
      syntax: |-
        &cSyntax error. Possibilities:
        &7/mutetemplate &alist &8- &7list existing mute templates
        &7/mutetemplate &aadd <time> <reason> &8- &7add mute template
        &7/mutetemplate &aedit <id> <time> <reason> &8- &7edit mute template
        &7/mutetemplate &aremove <id> &8- &7remove mute template
      list:
        header: '&7------------------- &eMute Templates &7-------------------'
        content: '&7(&eID: %ID%&7) &8| &c%DURATION% &8| &e%REASON%'
        footer: '&7------------------- &eMute Templates &7-------------------'
      add:
        successful: '&aMute Template added!'
        error: '&cMute template not found!'
      edit:
        successful: '&aMute Template edited!'
      remove:
        successful: '&aMute Template removed!'
  kickSystem:
    prefix: '&4KickSystem &7» '
    help: |-
      &7&m-----------------&r&e« KickSystem »&7&m-----------------

      &7/kick &a<Player> <Reason> &8- &7Kick a player
      &7/kickinfo &a<Player> &8- &7View player's kick history
      &7/clearkicks &a<Player> &8- &7Clear all kick entries

      &7&m-----------------&r&e« KickSystem »&7&m-----------------
    kickMessage: |-
      &cYou have been kicked.
      &eReason: &c%REASON%
      &eKicked by: &c%KICKED_BY_PREFIX%%KICKED_BY%
    kick:
      syntax: '&cSyntax: /kick <Player> <Reason>'
      noPermission: '&cYou don''t have enough permissions!'
      successful: '&7Player &c%PREFIX%%PLAYER% &7was kicked! {kickBroadcast}'
      insufficientRank: '&cYou don''t have permission to kick this player.'
    kickInfo:
      syntax: '&cSyntax: /kickinfo <Player>'
      noKicks: '&aPlayer %PREFIX%%PLAYER% &ahas no previous kicks.'
      kick: '&7Kick from &e%DATE% {kick}'
    clearKicks:
      syntax: '&cSyntax: /clearkicks <Player>'
      successful: '&4!! &7Kick entries of &e%PREFIX%%PLAYER% &7were cleared by &e%CLEARED_BY_PREFIX%%CLEARED_BY% &4!!'
      allKicksRemoved: '&7All your kick entries have been cleared by &e%PREFIX%%PLAYER% &7:O'
  warnSystem:
    prefix: '&4WarnSystem &7» '
    help: |-
      &7&m-----------------&r&e« WarnSystem »&7&m-----------------

      &7/warn &a<Player> <Reason> &8- &7Warn a player
      &7/warninfo &a<Player> &8- &7View player's warn history
      &7/clearwarns &a<Player> &8- &7Clear all warn entries

      &7&m-----------------&r&e« WarnSystem »&7&m-----------------
    warnMessage: |-
      &cYou have been warned.
      &eReason: &c%REASON%
      &eWarned by: &c%WARNED_BY_PREFIX%%WARNED_BY%
    warn:
      syntax: '&cSyntax: /warn <Player> <Reason>'
      self: '&cYou cannot warn yourself!'
      noPermission: '&cYou don''t have enough permissions!'
      successful: '&7Player &c%PREFIX%%PLAYER% &7was warned! {warnBroadcast}'
      insufficientRank: '&cYou don''t have permission to warn this player.'
    warnInfo:
      syntax: '&cSyntax: /warninfo <Player>'
      noWarns: '&aPlayer %PREFIX%%PLAYER% &ahas no previous warns.'
      warn: '&7Warn from &e%DATE% {warn}'
    clearWarns:
      syntax: '&cSyntax: /clearwarns <Player>'
      successful: '&4!! &7Warn entries of &e%PREFIX%%PLAYER% &7were cleared by &e%CLEARED_BY_PREFIX%%CLEARED_BY% &4!!'
      allWarnsRemoved: '&7All your warn entries have been cleared by &e%PREFIX%%PLAYER% &7:O'
PreviousWeb Admin Panel

Last updated 10 months ago

✊
📝