AdminProtect 3.0.0 Beta 1
AdminProtect is PocketMine-MP plugin that protects the administrator (players with special permissions) from being banned and kicked and prevent offline player ban.
Now supports PMMP api 5.0.0+ only.
Commands
- /kick <player> [reason...] – kick specified player
- /multikick <players> [reason...] – kick specified players seperated by commas
- /ban <player> [reason...] – ban specified player
- /multiban <players> [reason...] – ban specified players players seperated by commas
- /tempban <player> <date or duration> [reason...] – temporary ban specified player
- /banip <player or IP adress> [reason...] – ban specified IP adress or specified player's IP adress
- /tbanip <player IP adress> <date or duration> [reason...] – temporary ban specified IP adress or specified player's IP adress
- /unban <player> /pardon <player> – unban specified player
- /unbanip <IP> /pardon-ip <IP> – unban specified IP adress
- /baninfo <player|address> - displays information about player's or IP's active ban and shows can you unban him or not
More information about commands can be found in the wiki.
Permissions
- adminprotect.* – all plugin permissions
- adminprotect.kick.protect – Protection from /kick
- adminprotect.kick.use – Allow to use /kick
- adminprotect.kick.use.multiple - Allow to use /multikick
- adminprotect.kick.use.protected – Allow to kick players with protection
- adminprotect.ban.protect – Protection from /ban
- adminprotect.ban.use – Allow to use /ban
- adminprotect.ban.use.multiple - Allow to use /multiban
- adminprotect.ban.use.offline – Allow to ban offline players
- adminprotect.ban.use.protected – Allow to ban players with protection
- adminprotect.tempban.protect – Protection from /tempban
- adminprotect.tempban.use – Allow to use /tempban
- adminprotect.tempban.use.offline – Allow to temporary ban offline players
- adminprotect.tempban.use.protected – Allow to temporary ban players with protection
- adminprotect.unban.use – Allow to use /unban
- adminprotect.unban.except.<admin> - prevent unblocking players/IPs that have been banned by <admin> (nick must be in lowercase)
- adminprotect.banip.protect – Protection from /banip
- adminprotect.banip.use – Allow to use /tbanip (only ban online players' IP and only temporary ban)
- adminprotect.banip.use.offline – Allow to ban offline players' IP
- adminprotect.banip.use.protected – Allow to IP-ban players with protection
- adminprotect.banip.use.permanent – Allow to use /banip (for permanentrly ban)
- adminprotect.unbanip.use – Allow to use /unbanip
- adminprotect.baninfo.use - Allow to use /baninfo
Features
- Protect admins from beign kicked, banned or ip-baned
- Protect offline players from beign baned or ip-baned (we can't check if offline players has protection permissions)
-
- Players without
adminprotect.banip.use.offline
can't ban specified ip-adress, they can only ban specified online player nick
- Special permissions for operators to ban and kick players with protection
- Prevent unblocking players that banned by specified admins
- Prevent editing bans issued by specified admins
- Temporary ban and ip-ban
- Multiple ban and multiple kick using one command — just specify players seperated by commas
- Broadcasting kick and ban messages for all players
- Simple ban duration setting
Temporary ban
You can specify the ban until date in the format dd.mm.YYYY (for example: 03.12.2022) or you can specify the ban duration time in the special format decribed below.
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
Or you can specify only count of days (/tban Steve 13
will ban Steve for 13 days).
Prevent unblocking
If player has adminprotect.unban.except.<admin>
, he will not be able to unban a player banned by <admin> (admin nick must be in lowercase). Also he will not be able to edit the ban issued by <admin>.This also applies to unblocking and editing an IP ban.
For example: adminprotect.unban.except.console
will be prevent unblocking players banned by CONSOLE (CONSOLE
can be changed in config.yml)