Ban IP (Version: 2.0.1)
With this plugin you can ban a user on the basis of its IP address. Those players will always be kicked.
One can use the following commands:
!banip player [reason]
!tempbanip player duration [reason]
!unbanip id|ip|nick
With !banip the player's ip address and nick, the admin's guid, the timestamp and the reason will be written into the database.
!tempbanip does the same as !banip, but also writes the duration in minutes. Is the duration is over a player with that ip can join the server.
Do one like to remove an entry, use !unbanip with the nickname or the ip address. Should there be more than one entry for the fiven nickname in the database, the admin will get a list of them containing their ids. These ids can be used by !unbanip id to remove the entry and allow the player to join.
Should a player try to join the server with an ip address which is registered in the database it will be kicked. Furthermore the nickname of the player will be updated in the database, to simplify the search.
Requirements
ManuAdminMod Version 0.11.3 or newer
PHP >= 5.3.0
PHP SQLite3 support
Installation Manual
Save the banip.php file into the plugin folder and restart the MAM.
Configuration Manual
[banip]
enabled = 1
usedefaulttempbanduration = 1
defaulttempbanduration = 30
cleanupeveryhour = 48
enabled: With 1 the plugin is active, with 0 it is not working.
usedefaulttempbanduration: Using !tempban without the duration parameter, can automatically sets the [banip]defaulttempbanduration for the duration. To disable this behaviour (and always have to call !tempbanip with the duration parameter) set this to 0.
defaulttempbanduration: Sets the duration in minutes when call !tempbanip without the duration parameter. Therefore [banip]usedefaulttempbanduration has to be 1.
cleanupeveryhour: After so many hours the database will be cleaned up, removing old tempban entries.
Changelog
version 2.0.1
- fixed: second constructor
version 2.0.0
- added: unbanip
- added: tempbanip
- removed: banip_kick_mode (see version 1.1.0), players always will be kicked
- using sqlite3 database instead of text file
- object oriented
version 1.1.2
- edited zip folder structure
version 1.1.1
- bugfix: semicolon was missing, remove version 1.1.0
version 1.1.0:
- added feature: $banip_kick_mode (player will be either kicked or banned)
version 1.0.0:
- first version