Examples of PlayerBannedEvent


Examples of com.mcbans.firestar.mcbans.events.PlayerBannedEvent

                return;
            }
            if (response.get("result").equals("y")) {
                this.kickPlayer(playerName, playerUUID, _("localBanPlayer", I18n.PLAYER, playerName, I18n.SENDER, senderName, I18n.REASON, reason, I18n.IP, playerIP));
                Util.broadcastMessage(ChatColor.GREEN + _("localBanSuccess", I18n.PLAYER, playerName, I18n.SENDER, senderName, I18n.REASON, reason, I18n.IP, playerIP));
                plugin.getServer().getPluginManager().callEvent(new PlayerBannedEvent(playerName, playerIP, senderName, reason, action_id, duration, measure));

                log.info(playerName + " has been banned with a local type ban [" + reason + "] [" + senderName + "]!");
                return;
            } else if (response.get("result").equals("e")) {
                Util.message(senderName,
View Full Code Here

Examples of com.mcbans.firestar.mcbans.events.PlayerBannedEvent

                return;
            }
            if (response.get("result").equals("y")) {
                this.kickPlayer(playerName, playerUUID, _("globalBanPlayer", I18n.PLAYER, playerName, I18n.SENDER, senderName, I18n.REASON, reason, I18n.IP, playerIP));
                Util.broadcastMessage(ChatColor.GREEN + _("globalBanSuccess", I18n.PLAYER, playerName, I18n.SENDER, senderName, I18n.REASON, reason, I18n.IP, playerIP));
                plugin.getServer().getPluginManager().callEvent(new PlayerBannedEvent(playerName, playerIP, senderName, reason, action_id, duration, measure));

                log.info(playerName + " has been banned with a global type ban [" + reason + "] [" + senderName + "]!");
                return;
            } else if (response.get("result").equals("e")) {
                Util.message(senderName,
View Full Code Here

Examples of com.mcbans.firestar.mcbans.events.PlayerBannedEvent

                return;
            }
            if (response.get("result").equals("y")) {
                this.kickPlayer(playerName, playerUUID, _("tempBanPlayer", I18n.PLAYER, playerName, I18n.SENDER, senderName, I18n.REASON, reason, I18n.IP, playerIP));
                Util.broadcastMessage(ChatColor.GREEN + _("tempBanSuccess", I18n.PLAYER, playerName, I18n.SENDER, senderName, I18n.REASON, reason, I18n.IP, playerIP));
                plugin.getServer().getPluginManager().callEvent(new PlayerBannedEvent(playerName, playerIP, senderName, reason, action_id, duration, measure));

                log.info(playerName + " has been banned with a temp type ban [" + reason + "] [" + senderName + "]!");
                return;
            } else if (response.get("result").equals("e")) {
                Util.message(senderName,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.