Pages » Sunlight » Modules » Bans


Commands

Command Aliases Description Player only Permission(s)
/ban [player/ip] (time) (reason) - Bans specified player or IP address for specified time.
Ban will be permanent if no time provided.
No sunlight.bans.cmd.ban
/banip [player/ip] (time) (reason) - Bans specified IP address and all server players with that IP for specified time.
Ban will be permanent if no time provided.
No sunlight.bans.cmd.banip
/banlist (page) - List of banned players. No sunlight.bans.cmd.banlist
/kick [player] (reason) - Kicks specified player. No sunlight.bans.cmd.kick
/mute [player] (time) (reason) - Mute specified player for specified time.
Mute will be permanent if no time provided.
No sunlight.bans.cmd.mute
/warn [player] (reason) - Warns specified player. No sunlight.bans.cmd.warn
/unban [player/ip] - Unbans specified player or IP and all players with that IP. No sunlight.bans.cmd.unban
/unmute [player] - Unmutes specified player. No sunlight.bans.cmd.unmute
/unwarn [player] - Clear warns for specified player. No sunlight.bans.cmd.unwarn

Config


general:
  # Punishment date format.
  date-format: dd/MM/yyyy HH:mm

bans:
  # Default reason text when no reason is provided
  default-reason: Violation of the rules
  # Appeal message.
  appeal-text: '&7Appeal at: &fwww.myserver.com'

# Mute settings.
mutes:
  # List of blocked commands during the mute.
  # Command aliases are auto-detected.
  blocked-commands:
  - tell
  - me

# Warn settings.
warns:
  # Warn expire time in minutes.
  expire-time: 60
  # Commands that will be executed when player receives certain amount of warnings.
  actions:
    '3': mute %p 15min
    '5': kick %p
  # Max. warns amount per player before reset all warnings.
  max: 5

# List of player names/IPs that are unable to punish.
immunity:
- admin name
- 127.0.0.1
- 0.0.0.0

# Punishment time shortcuts.
times:
  SECONDS: s
  MINUTES: min
  HOURS: h
  DAYS: d
  WEEKS: w
  MONTHS: mon
  YEARS: y

Information
Empty Block

18+