Skip to content

Commands

WeekThor edited this page Jul 8, 2023 · 4 revisions

Kick

Command: /kick <player> [reason...]
Permission to use: adminprotect.kick.use

Kick the specified player from the server. If the player has protection permission adminprotect.kick.protect he will not be kicked.
But super-admins (OP or console) who has adminprotect.kick.use.protected can kick players with protection anyway.

Multiple kick

Command: /mkick <players> [reason...]
Permission to use: adminprotect.kick.use.multiple

Kick the specified players, separated by commas. For example /mkick Steve,Alex Get out!.
This command will send in chat broadcasts for every specified players. If one of specified players has protection permission adminprotect.kick.protect, he will not be kicked and you will get an a error message, but other specified players who hasn't this permission will be kicked anyway.

Ban

Command: /ban <player> [reason...]
Permission to use: adminprotect.ban.use

Permanently ban the specified player. If the player has protection permission adminprotect.ban.protect he will not be banned.
But super-admins (OP or console) who has adminprotect.ban.use.protected can ban players with protection anyway.

If the player is offline, you must have permission adminprotect.ban.use.offline to ban him.
NOTE: if player is offline, plugin can't check, has he protection permission or not.

Also if the player is already banned by <admin> and you have permission adminprotect.unban.except.<admin> (where <admin> is admin nick in lowercase) you will be not able to change the ban.
For example: Steve has been temporary banned by WeekThor. If you have adminprotect.unban.except.weekthor you are not permitted to permanently ban Steve or change his ban duration before Steve will be unbanned.

Multiple ban

Command: /mban <players> [reason...]
Permission to use: adminprotect.ban.use.multiple

Ban the specified players, separated by commas. For example /mban Steve,Alex Get out!.
This command will send in chat broadcasts for every specified players.
Also all the protection permissions (adminprotect.ban.protect,adminprotect.ban.use.offline and adminprotect.unban.except.<admin>) are working with multiple ban command and you will get a error messages for every player you can't ban, but other players (who can be banned by you) will be banned.

Temporary ban

Command: /tempban <player> <date or duration> [reason...]
Aliases: /tban
Permission to use: adminprotect.tempban.use

Temporary ban the specified player. If the player has protection permission adminprotect.tempban.protect he will not be banned.
But super-admins with adminprotect.tempban.use.protected can ban players with protection.

If the player is offline, you must have permission adminprotect.tempban.use.offline to ban him.

Also if the player is already banned by <admin> and you have permission adminprotect.unban.except.<admin> (where <admin> is admin nick in lowercase) you will be not able to change the ban. If you don't, ban duration will be overwritten.

Ban duration

There are 3 ways to specify the ban durations:

  • You can specify the ban end date in format dd.mm.YYYY
  • You can specify the ban duration in days: /tban Steve 15 will ban Steve for 15 days
  • You can specify the ban duration in the special format.

Ban duration format

  • 1s - 1 second
  • 1m – 1 minute
  • 1h – 1 hour
  • 1d – 1 day
  • 1w – 1 week
  • 1mo – 1 month
  • 1y – 1 year

Ban duration is specifying without spaces: /tban Steve 1h30m will ban Steve for 1 hour 30 minutes; /tban Steve 1w3d will ban Steve for 1 week 3 days, etc.

IP ban

Temporary IP ban command

Command: /tempban-ip <player|IP> <date or duration> [reason...]
Aliases: /tban-ip, /tbanip, /tempbanip
Permission to use: adminprotect.banip.use

Temporary ban IP address belonging to the specified player or temporary ban the specified IP.

Permanently IP ban command

Command: /ban-ip <player|IP> [reason...]
Aliases: /banip
Permission to use: adminprotect.banip.use.permanent

Permanently ban IP address that belongs to the specified player or permanently ban the specified IP.

If the specified player has protection protection permission adminprotect.banip.protect his IP will not be banned.
But super-admins with adminprotect.banip.use.protected can ban players with protection.

If the specified player is offline, you must have permission adminprotect.banip.use.offline to ban his IP. Also without this permission you will be not able to ban specified IP address. You can only ip-ban specified online player.

Also if the player is already banned by <admin> and you have permission adminprotect.unban.except.<admin> (where <admin> is admin nick in lowercase) you will be not able to change the ban. If you don't, ban duration will be overwritten.

Unban

Command: /pardon <player>
Aliases: /unban
Permission to use: adminprotect.unban.use

Unban the specified player. If the player was banned by <admin> and you have permission adminprotect.unban.except.<admin> (where <admin> is admin nick in lowercase) he will be not unbanned.

Unban IP

Command: /pardon-ip <address>
Aliases: /unban-ip, /unbanip, /pardonip
Permission to use: adminprotect.unbanip.use

Unban the specified IP address. If the address was banned by <admin> and you have permission adminprotect.unban.except.<admin> (where <admin> is admin nick in lowercase) IP will be not unbanned.

Baninfo

Command: /baninfo <player|address>
Aliases: /bi
Permission to use: adminprotect.baninfo.use

Displays information about player's (or IP's) active ban and shows can you unban this player or not.

Clone this wiki locally