@EventHandler public void playerKicked(PlayerKickEvent event) { Player player = event.getPlayer(); plugin.bot.sendMessage( plugin.getIRCChannel(), "[" + player.getName() + "] had been kicked off " + plugin.getServerName()); }
@Override public void onPlayerKick(PlayerKickEvent event) { Player triggerMessage = event.getPlayer(); String[] replaceThese = {"<<kick-reason>>", "<<kickedplayer>>"}; String[] withThese = {event.getReason(), triggerMessage.getName()}; plugin.triggerMessages(triggerMessage, "onkick", replaceThese, withThese); }
@EventHandler(priority = EventPriority.MONITOR) public void onPlayerKick(PlayerKickEvent event) { Player p = event.getPlayer(); if (TotalFreedomMod.fuckoffEnabledFor.containsKey(p)) { TotalFreedomMod.fuckoffEnabledFor.remove(p); } TFM_PlayerData playerdata = TFM_PlayerData.getPlayerData(p); playerdata.disarmMP44(); if (playerdata.isCaged()) { playerdata.regenerateHistory(); playerdata.clearHistory(); } }
@EventHandler(priority = EventPriority.MONITOR) public void onPlayerKick(PlayerKickEvent event) { Player player = event.getPlayer(); if (TotalFreedomMod.fuckoffEnabledFor.containsKey(player)) { TotalFreedomMod.fuckoffEnabledFor.remove(player); } TFM_PlayerData playerdata = TFM_PlayerData.getPlayerData(player); playerdata.disarmMP44(); if (playerdata.isCaged()) { playerdata.regenerateHistory(); playerdata.clearHistory(); } TFM_Log.info("[EXIT] " + player.getName() + " left the game.", true); }
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) public void onPlayerKick(PlayerKickEvent event) { plugin.debug("Player " + event.getPlayer().getName() + " was kicked, unregistering..."); plugin.unregisterPlayer(event.getPlayer()); }
@EventHandler public void onKick(PlayerKickEvent e) { PConfManager.setPValLong(e.getPlayer(), new Date().getTime(), "seen"); if (AFKUtils.isAfk(e.getPlayer())) AFKUtils.unsetAfk(e.getPlayer()); if (AFKUtils.moveTimesContains(e.getPlayer())) AFKUtils.removeLastMove(e.getPlayer()); }