Examples of playerLeave()


Examples of com.garbagemule.MobArena.framework.Arena.playerLeave()

        if (p == null || !p.isOnline()) return;
       
        Arena arena = plugin.getArenaMaster().getArenaWithPlayer(p);
        if (arena == null) return;
       
        arena.playerLeave(p);
    }

    public void onVehicleExit(VehicleExitEvent event) {
        LivingEntity entity = event.getExited();
        if (!(entity instanceof Player)) return;
View Full Code Here

Examples of com.garbagemule.MobArena.framework.Arena.playerLeave()

       
        // Grab the Player object.
        Player bp = am.getPlugin().getServer().getPlayer(args[0]);
       
        // Force leave.
        arena.playerLeave(bp);
        Messenger.tell(sender, "Player '" + args[0] + "' was kicked from arena '" + arena.configName() + "'.");
        Messenger.tell(bp, "You were kicked by " + sender.getName() + ".");
        return true;
    }
}
View Full Code Here

Examples of com.garbagemule.MobArena.framework.Arena.playerLeave()

                Messenger.tell(p, Msg.LEAVE_NOT_PLAYING);
                return true;
            }
        }
       
        if (arena.playerLeave(p)) {
            Messenger.tell(p, Msg.LEAVE_PLAYER_LEFT);
        }
        return true;
    }
}
View Full Code Here

Examples of com.garbagemule.MobArena.framework.Arena.playerLeave()

        if (!toArena.canJoin(p)) {
            return true;
        }

        // Force leave previous arena
        if (fromArena != null) fromArena.playerLeave(p);
       
        // Join the arena!
        return toArena.playerJoin(p, p.getLocation());
    }
}
View Full Code Here

Examples of com.garbagemule.MobArena.framework.Arena.playerLeave()

        if (!toArena.canSpec(p)) {
            return true;
        }

        // Force leave previous arena
        if (fromArena != null) fromArena.playerLeave(p);
       
        // Spec the arena!
        toArena.playerSpec(p, p.getLocation());
        return true;
    }
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.