Guest User

Untitled

a guest
Dec 5th, 2022
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. @EventHandler
  2. public void onServerSendCommand(PlayerCommandSendEvent event) {
  3. if(!getConfigSettings().hideMainCommand()) return;
  4. Collection<String> commands = List.of("functionalbans", "fb", "fbans", "funcbans");
  5. event.getCommands().removeIf((cmd) -> {
  6. for(String c : commands) {
  7. if(cmd.equalsIgnoreCase(c)) {
  8. return true;
  9. }
  10. }
  11. return false;
  12. });
  13. }
Advertisement
Add Comment
Please, Sign In to add comment