Config.yml example

############################################################
# Config File for PlayerWarn by DMac107
############################################################
#Debugging, normally off
debug: false

############################################################
# resetInfractionOnPunish causes the infraction count to
# reset back to 0 once a player reaches the "maxwarning"
# limit and is punished. If this is not reset, the effect
# will be that the user is punished at each warning after
# the limit.
# Default: true
############################################################
resetInfractionOnPunish: true

############################################################
# createPlayerDataAtLogin created files in the userdata
# folder at login, instead of at the first warning.
# Default: false
############################################################
createPlayerDataAtLogin: false

############################################################
# WarningCooldownSec forces moderators to wait this number
# of seconds before they can be warned again. This
# eliminates the possibility of two moderators
# warning a player at the same time.
# Default: 10
############################################################
WarningCooldownSec: 10

############################################################
# WarningCooldownPerInfraction means that the player cannot
# be warned for WarningCooldownSec seconds after being
# warned for the SAME infraction. A false statement means
# the player can't be warned within WarningCooldownSec
# seconds even for a different infraction.
# Default: true
############################################################
WarningCooldownPerInfraction: true

############################################################
# Infraction list. Make as many as you want. A "maxwarning"
# count MUST be provided for each infraction.
############################################################
infractions:
  cursing:
    maxwarning: 3
  logging:
    maxwarning: 3
  disrespect:
    maxwarning: 3
  spam:
    maxwarning: 3

############################################################
# Punishment list. Make as many as you want.
# The default is used whenever there is no match to another
# line. If you have an entry for 2, 4, and 6 punishments,
# then punishments 1, 3, 5 and 7-infinity will default.
# 
# Each MUST list a punishment. Valid punishments are:
# kick, ban, tempban
#
# "tempban" also requires a "time" entry. Use a number plus
# ONE letter to designate units. Valid units are:
# s: seconds
# m: minutes
# h: hours
# d: days
# M: months
# y: years
############################################################
punishments:
  default:
    punishment: kick
  '2':
    punishment: tempban
    time: 30s
  '3':
    punishment: tempban
    time: 1m
  '4':
    punishment: tempban
    time: 2m
  '5':
    punishment: tempban
    time: 5m
  '6':
    punishment: tempban
    time: 10m
  '7':
    punishment: tempban
    time: 20m
  '8':
    punishment: tempban
    time: 2d
  '9':
    punishment: ban
  '10':
    punishment: commands
    commands:
    - say <PLAYER> was severely punished for <INFRACTION> (<WARNINGS> of <MAXWARNINGS>) and a total of <PUNISHMENTS> punishments.
    - kick <PLAYER> Go away and stop your <INFRACTION>
    - ban-ip <PLAYER> Continuing to <INFRACTION> after <PUNISHMENTS> punishments!

Comments

Posts Quoted:
Reply
Clear All Quotes