Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void onServerSendCommand(PlayerCommandSendEvent event) {
- if(!getConfigSettings().hideMainCommand()) return;
- Collection<String> commands = List.of("functionalbans", "fb", "fbans", "funcbans");
- event.getCommands().removeIf((cmd) -> {
- for(String c : commands) {
- if(cmd.equalsIgnoreCase(c)) {
- return true;
- }
- }
- return false;
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment