Examples of Kick


Examples of com.mcbans.firestar.mcbans.request.Kick

    public void kick(String targetName, String targetUUID, String senderName, String senderUUID, String reason){
        //plugin.getLog().info("Plugin " + pname + " tried to kick player " + targetName);
        reason = (reason == null || reason == "") ? plugin.getConfigs().getDefaultKick() : reason;

        // Start
        Kick kickPlayer = new Kick(plugin, targetName, targetUUID, senderName, senderUUID, reason, true);
        Thread triggerThread = new Thread(kickPlayer);
        triggerThread.start();
    }
View Full Code Here

Examples of com.mcbans.firestar.mcbans.request.Kick

        if (args.size() > 0){
            reason = Util.join(args, " ");
        }

        // Start
        Kick kickPlayer = new Kick(plugin, target, targetUUID, senderName, senderUUID, reason, false);
        Thread triggerThread = new Thread(kickPlayer);
        triggerThread.start();
    }
View Full Code Here

Examples of net.md_5.bungee.protocol.packet.Kick

            {

                @Override
                public void run()
                {
                    unsafe().sendPacket( new Kick( ComponentSerializer.toString( reason ) ) );
                    ch.close();
                }
            }, 500, TimeUnit.MILLISECONDS );
        }
    }
View Full Code Here

Examples of net.md_5.bungee.protocol.packet.Kick

    public synchronized void disconnect(BaseComponent... reason)
    {
        if ( !ch.isClosed() )
        {
            // TODO: Can we just use a future here?
            unsafe().sendPacket( new Kick( ComponentSerializer.toString( reason ) ) );
            ch.getHandle().eventLoop().schedule( new Runnable()
            {
                @Override
                public void run()
                {
View Full Code Here

Examples of net.md_5.bungee.protocol.packet.Kick

            {

                @Override
                public void run()
                {
                    unsafe().sendPacket( new Kick( ComponentSerializer.toString( reason ) ) );
                    ch.close();
                }
            }, 500, TimeUnit.MILLISECONDS );

            if ( server != null )
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.