@EventHandler public void PlayerKick(PlayerKickEvent e) { playerTab.remove(e.getPlayer().getName()); playerTabLast.remove(e.getPlayer().getName()); playerTab47.remove(e.getPlayer().getName()); playerTabLast47.remove(e.getPlayer().getName()); }
@EventHandler(priority = EventPriority.HIGHEST) private void onPlayerKick(PlayerKickEvent evt) { plugin .getPlayerLocationListener() .removePlayerFromPoint( plugin.getPlayerHandler().findPlayer(evt.getPlayer().getDisplayName())); if (plugin.getPlayerHandler().findPlayer(evt.getPlayer().getDisplayName()) != null) { plugin.getPlayerHandler().removePlayer(evt.getPlayer().getDisplayName()); // plugin.getLogger().info("removed " + evt.getPlayer().getDisplayName() + " from the game."); } }
@EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true) public void onPlayerKick(PlayerKickEvent event) { if (Bloodbending.isBloodbended(event.getPlayer())) { event.setCancelled(true); event.setReason(null); } if (EntityTools.isFallImmune(event.getPlayer())) { event.setCancelled(true); event.setReason(null); } Bending.getInstance().getBendingDatabase().release(event.getPlayer().getUniqueId()); }
@EventHandler public void bannedPlayer(PlayerKickEvent e) { if (ban.isBanned(e.getPlayer())) { e.setLeaveMessage(""); } else if (ban.isTempBanned(e.getPlayer())) { if (!timeunits.isOverTime( fileManager.getLongValue( e.getPlayer().getName().toLowerCase() + ".yml", "time", fileManager.getDir() + File.separator + "bans"))) { e.setLeaveMessage(""); } } }
@EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true) void playerKick(PlayerKickEvent event) { if (prefixOnQuit) { event.setLeaveMessage( "[" + plugin.getPlayerManager().getPlayer(event.getPlayer().getName()).getGroup() + "] " + event.getLeaveMessage()); } plugin.getPlayerManager().unregisterPlayer(event.getPlayer()); if (plugin.getIRCBot() != null) { MinecraftQuitEvent evt = new MinecraftQuitEvent(event.getPlayer().getName()); plugin.getServer().getPluginManager().callEvent(evt); } }
@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 player = event.getPlayer(); String playerName = player.getName(); plugin.getPlayerData().remove(playerName); }
@EventHandler public void onKick(PlayerKickEvent e) { if (!Config.separateInv) return; Player p = e.getPlayer(); if (getWorldGroup(p.getWorld()) == null) return; saveInventory(p, p.getInventory()); }
@EventHandler(ignoreCancelled = true) public void onPlayerKick(PlayerKickEvent event) { if (getSettingsManager().isLogoutTranslationEnabled()) { Localisation.sendGlobalMessage("message.logout", event.getPlayer()); event.setLeaveMessage(null); } }
@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.HIGHEST) public void onPlayerKick(PlayerKickEvent event) { SFPlayer player = getPlayer(event.getPlayer()); if (player.isFlying()) { event.setReason(""); event.setCancelled(true); } }
// Change kick message. @EventHandler public void onPlayerKick(PlayerKickEvent event) { if (!Utilities.getUtilities().onlyfirstjoin()) { String message = plugin.getConfig().getString("messages.kickmessage"); if (!message.equalsIgnoreCase("none")) { event.setLeaveMessage(Utilities.getUtilities().format(message, event.getPlayer())); } else { event.setLeaveMessage(null); } } }
@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.NORMAL) public void onPlayerKick(final PlayerKickEvent event) { if (event.isCancelled() || event.getLeaveMessage() == null) { return; } for (final IRCChannel c : Variables.channels) { if (!c.getBlockedEvents().contains("game_kick")) { IRC.sendMessageToChannel( c.getChannel(), ColorUtils.formatGametoIRC(event.getPlayer().getDisplayName() + " has been kicked.")); } } }
@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 public void onKick(PlayerKickEvent event) { try { if (running) { if (as != null && as.isValid() && event.getReason().contains("Fly")) { if (as.getLocation().distance(event.getPlayer().getLocation()) < 8) { event.setCancelled(true); System.out.println("UltraCosmetics >> Cancelling invalid Flight KicK."); return; } } event.setCancelled(true); System.out.println("UltraCosmetics >> Cancelling invalid Flight KicK."); return; } } catch (Exception exc) { } }
@EventHandler(priority = EventPriority.MONITOR) public void onPlayerKick(PlayerKickEvent event) { playerLeave(event.getPlayer()); }
@EventHandler(priority = EventPriority.HIGHEST) public void onPlayerKickEvent(PlayerKickEvent event) { event.setLeaveMessage(null); this.onExit(event.getPlayer()); }
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) public void onPlayerKick(final PlayerKickEvent event) { onLeave(event.getPlayer()); }
@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()); }
@EventHandler public void onPlayerKick(PlayerKickEvent event) { removePlayer(event.getPlayer()); }
@EventHandler(priority = EventPriority.NORMAL) public void onPlayerKick(PlayerKickEvent event) { Slogger.playerList.remove(event.getPlayer().getName()); }
@Override public void onPlayerKick(PlayerKickEvent event) { TMB.getInstance().removeScreen(event.getPlayer()); }
@EventHandler(priority = EventPriority.MONITOR) public void onPlayerLeave2(PlayerKickEvent e) { if (!e.isCancelled()) delayTime.remove(e.getPlayer()); }