Advertisement
Pablo380YT

Untitled

Oct 26th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. @EventHandler(priority= EventPriority.HIGH)
  2. public void onPlayerLoginEvent(PlayerLoginEvent e) {
  3. Player p = e.getPlayer();
  4. if (isInGame == Boolean.TRUE && !p.hasPermission("crgamers.uhc.join.post-game")) {
  5. e.disallow(PlayerLoginEvent.Result.KICK_OTHER, "El UHC ya se encuentra en juego!");
  6. } else if (isInGame == Boolean.TRUE && !p.hasPermission("crgamers.uhc.join.ingame")) {
  7. e.disallow(PlayerLoginEvent.Result.KICK_OTHER, "El UHC ya se encuentra en juego!");
  8. } else if (isInGame == Boolean.TRUE && !Whitelist.contains(p.getName())) {
  9. e.disallow(PlayerLoginEvent.Result.KICK_OTHER, "El UHC ya se encuentra en juego!");
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement