Package com.mcbans.firestar.mcbans.callBacks

Examples of com.mcbans.firestar.mcbans.callBacks.MessageCallback


        if (!Util.isValidIP(target)){
            throw new CommandException(ChatColor.RED + _("invalidIP"));
        }

        // Start
        BanIpRequest request = new BanIpRequest(plugin, new MessageCallback(plugin, sender), target, reason, senderName, senderUUID);
        Thread triggerThread = new Thread(request);
        triggerThread.start();
    }
View Full Code Here


public class DisconnectRequest extends BaseRequest<MessageCallback>{
    private long startTime;

    public DisconnectRequest(final MCBans plugin, final String playerName, final UUID playerUUID){
        super(plugin, new MessageCallback(plugin, null));

        this.items.put("player", playerName);
        this.items.put("player_uuid", playerUUID.toString());
        this.items.put("exec", "playerDisconnect");
    }
View Full Code Here

        this.items.put("player", playerName);
        this.items.put("player_uuid", playerUUID.toString());
        this.items.put("exec", "playerDisconnect");
    }
    public DisconnectRequest(final MCBans plugin, final String playerName){
        super(plugin, new MessageCallback(plugin, null));

        this.items.put("player", playerName);
        this.items.put("exec", "playerDisconnect");
    }
View Full Code Here

     * @param ip target ip address
     * @param senderName IPBan issued admin's name
     * @param reason Ban reason
     */
    public void ipBan(String ip, String senderName, String reason){
        this.ipBan(ip, senderName, "", reason, new MessageCallback(plugin));
    }
View Full Code Here

        /* Check response time */
        if (first.equalsIgnoreCase("ping")){
            if (!Perms.ADMIN.has(sender)){
                throw new CommandException(ChatColor.RED + _("permissionDenied"));
            }
            PingRequest request = new PingRequest(plugin, new MessageCallback(plugin, sender));
            (new Thread(request)).start();
            return;
        }
        /* Sync banned-players.txt */
        if (first.equalsIgnoreCase("sync")){
View Full Code Here

TOP

Related Classes of com.mcbans.firestar.mcbans.callBacks.MessageCallback

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.