From 4a158972ea6f4594314cf5dd9c5bfd731b5a5934 Mon Sep 17 00:00:00 2001 From: Chiarchiaooo Date: Tue, 1 Feb 2022 20:21:44 +0100 Subject: [PATCH] Update 3 (Addded reload command) --- .gitignore | 1 - src/main/java/it/chiarchiaooo/commandblocker/Main.java | 2 +- src/main/resources/plugin.yml | 8 ++------ 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index caa6eef..3f18a66 100644 --- a/.gitignore +++ b/.gitignore @@ -112,4 +112,3 @@ buildNumber.properties # Common working directory run/ /src/main/java/it/chiarchiaooo/commandblocker/Commands/Arguments/ -/src/main/java/it/chiarchiaooo/commandblocker/Commands/Arguments/ diff --git a/src/main/java/it/chiarchiaooo/commandblocker/Main.java b/src/main/java/it/chiarchiaooo/commandblocker/Main.java index 160f4ed..cbe804d 100644 --- a/src/main/java/it/chiarchiaooo/commandblocker/Main.java +++ b/src/main/java/it/chiarchiaooo/commandblocker/Main.java @@ -26,7 +26,7 @@ public void onEnable() { log.info(ChatColor.translateAlternateColorCodes('&',"&aEnabled ")); log.info(ChatColor.translateAlternateColorCodes('&',"&eMade by &6Chiarchiaooo&7 (&6Sussoliny#9971&7)")); saveDefaultConfig(); - getCommand("cmdblock").setExecutor(new ReloadCommand()); + getCommand("cmdblockreload").setExecutor(new ReloadCommand()); getServer().getPluginManager().registerEvents(new CommandEvent(), this); getServer().getPluginManager().registerEvents(new TabCompleteEvent(), this); diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 6457020..993e17c 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -6,7 +6,7 @@ authors: [ Chiarchiaooo ] description: CommandBlocker 1.17x commands: - cmdblock: + cmdblockreload: description: reload config permission: cmdblock.reload @@ -14,8 +14,4 @@ permissions: cmdblock.bypass.*: description: General bypass permission cmdblock.bypass.: - description: Single command bypass permission - cmdblock.reload: - description: Reload command permission - cmdblock.restart: - description: Force-restart command permission \ No newline at end of file + description: Single command bypass permission \ No newline at end of file