Package com.mcbans.firestar.mcbans.events

Examples of com.mcbans.firestar.mcbans.events.PlayerIPBanEvent


    @Override
    protected void execute() {
        JSONObject response = this.request_JOBJ();
       
        PlayerIPBanEvent ipBanEvent = new PlayerIPBanEvent(ip, issuedBy, issuedByUUID, reason);
        plugin.getServer().getPluginManager().callEvent(ipBanEvent);
        if (ipBanEvent.isCancelled()){
            return;
        }
        issuedBy = ipBanEvent.getSenderName();
        reason = ipBanEvent.getReason();
       
        // Add default bukkit ipban
        if (Util.isValidIP(ip)){
            Bukkit.getServer().banIP(ip);
        }
View Full Code Here

TOP

Related Classes of com.mcbans.firestar.mcbans.events.PlayerIPBanEvent

Copyright © 2018 www.massapicom. 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.