Advertisement
Guest User

Untitled

a guest
May 21st, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. @EventHandler (priority = EventPriority.HIGHEST)
  2. public void onFailCommand(PlayerCommandPreprocessEvent e){
  3. if(LoginCMD.patiented.contains(e.getPlayer())) {
  4. if(!e.getMessage().equalsIgnoreCase("login") || !e.getMessage().equalsIgnoreCase("register")){
  5. e.setCancelled(true);
  6. e.getPlayer().sendMessage(Pr.Prefix()+"§cVous devez être connecter pour faire des commandes !");
  7. }
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement