public class chatKickAfterIpBan
extends java.lang.Object
implements org.bukkit.event.Listener
Constructor and Description |
---|
chatKickAfterIpBan(org.bukkit.plugin.Plugin aa)
Constructor, stores instance of AdminAnything for further use.
|
Modifier and Type | Method and Description |
---|---|
void |
addPlayerIP(org.bukkit.event.player.PlayerJoinEvent e)
Adds IP of a player that joins the game to the IP cache.
|
void |
addPlayerIP(org.bukkit.event.player.PlayerQuitEvent e)
Removes IP of a leaving player from the IP cache.
|
void |
redirectConsoleCommand(org.bukkit.event.server.ServerCommandEvent e)
If the command is an ip-ban one, check if the player is still in game
and kick them out if they are.
|
void |
redirectPlayerCommand(org.bukkit.event.player.PlayerCommandPreprocessEvent e)
If the command is an ip-ban one, check if the player is still in game
and kick them out if they are.
|
public chatKickAfterIpBan(org.bukkit.plugin.Plugin aa)
aa
- Instance of AdminAnything
.public void redirectPlayerCommand(org.bukkit.event.player.PlayerCommandPreprocessEvent e)
e
- The actual player command event to work with.public void redirectConsoleCommand(org.bukkit.event.server.ServerCommandEvent e)
e
- The actual console command event to work with.public void addPlayerIP(org.bukkit.event.player.PlayerJoinEvent e)
e
- The actual player join event to work with.public void addPlayerIP(org.bukkit.event.player.PlayerQuitEvent e)
e
- The actual player quit event to work with.