Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler(priority= EventPriority.HIGH)
- public void onPlayerLoginEvent(PlayerLoginEvent e) {
- Player p = e.getPlayer();
- if (isInGame == Boolean.TRUE && !p.hasPermission("crgamers.uhc.join.post-game")) {
- e.disallow(PlayerLoginEvent.Result.KICK_OTHER, "El UHC ya se encuentra en juego!");
- } else if (isInGame == Boolean.TRUE && !p.hasPermission("crgamers.uhc.join.ingame")) {
- e.disallow(PlayerLoginEvent.Result.KICK_OTHER, "El UHC ya se encuentra en juego!");
- } else if (isInGame == Boolean.TRUE && !Whitelist.contains(p.getName())) {
- e.disallow(PlayerLoginEvent.Result.KICK_OTHER, "El UHC ya se encuentra en juego!");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement