global-ban

#203 - published a month ago

GlobalBan

This plugin overrides the /ban and /unban command to custom commands that save bans into a MySQL table. This allows to have syncronized bans between multiple servers.

Default configuration


<?xml version="1.0" encoding="utf-8"?>
<GlobalBanConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <DatabaseAddress>localhost</DatabaseAddress>
  <DatabaseUsername>unturned</DatabaseUsername>
  <DatabasePassword>password</DatabasePassword>
  <DatabaseName>unturned</DatabaseName>
  <DatabaseTableName>banlist</DatabaseTableName>
  <KickInterval>10</KickInterval>
  <DatabasePort>3306</DatabasePort>
  <KickInsteadReject>false</KickInsteadReject>
</GlobalBanConfiguration>

Default english translation


<?xml version="1.0" encoding="utf-8"?>
<Translations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Translation Id="default_banmessage" Value="you were banned by {0} on {1} for {2} seconds, contact the staff if you feel this is a mistake." />
  <Translation Id="command_generic_invalid_parameter" Value="Invalid parameter" />
  <Translation Id="command_generic_player_not_found" Value="Player not found" />
  <Translation Id="command_ban_public_reason" Value="The player {0} was banned for: {1}" />
  <Translation Id="command_ban_public" Value="The player {0} was banned" />
  <Translation Id="command_ban_private_default_reason" Value="you were banned from the server" />
  <Translation Id="command_kick_public_reason" Value="The player {0} was kicked for: {1}" />
  <Translation Id="command_kick_public" Value="The player {0} was kicked" />
  <Translation Id="command_kick_private_default_reason" Value="you were kicked from the server" />
</Translations>

Commands and permissions


/slay <player>

Permissions: slay

Banns a player for a year


/kick <player> [reason]

Permissions: kick

Kicks a player


/unban <player>

Permissions: unban

Unbanns a player


/ban <player> [reason] [duration]

Permissions: ban

Banns a player


Git changelog


b116100a1f08949 2017-03-29 16:21:52

Merge pull request #13 from Trojaner25/patch-1

  • Fix wrong name in unban message

Download

Build #203
By downloading this file, you agree to our license terms.

Repository

github.com

License

MIT

Author

Sven