SHARE
TWEET

Untitled

a guest Jul 19th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  @EventHandler
  2.     public void onCommand(PlayerCommandPreprocessEvent e) {
  3.         Player p = e.getPlayer();
  4.         String msg = e.getMessage();
  5.         String cmd = msg.split(" ")[0];
  6.         List<String> xd= LobbyPlugin.getInst().getConfig().getStringList("commynull");
  7.         for(int i=0;i<xd.size() -1;i++){
  8.             if (!cmd.contains(xd.get(i))) {
  9.                 Utilek.sendMessage(p, LobbyPlugin.getInst().getConfig().getString("nullcommand"));
  10.                 e.setCancelled(true);
  11.                 return;
  12.             }
  13.         }
  14.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top