public class WildCommandExecutor implements CommandExecutor { @Override public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, @NotNull String[] args) { if (sender instanceof Player && command.equals("wild")){ sender.sendMessage("you issues the command wild"); }else { sender.sendMessage("you dont have permission for this command"); } return false; } }