Skip to content

Commit

Permalink
Update 3 (Addded reload command)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chiarchiaooo committed Feb 1, 2022
1 parent 7d894d7 commit 4a15897
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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/
2 changes: 1 addition & 1 deletion src/main/java/it/chiarchiaooo/commandblocker/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
8 changes: 2 additions & 6 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,12 @@ authors: [ Chiarchiaooo ]
description: CommandBlocker 1.17x

commands:
cmdblock:
cmdblockreload:
description: reload config
permission: cmdblock.reload

permissions:
cmdblock.bypass.*:
description: General bypass permission
cmdblock.bypass.<command>:
description: Single command bypass permission
cmdblock.reload:
description: Reload command permission
cmdblock.restart:
description: Force-restart command permission
description: Single command bypass permission

0 comments on commit 4a15897

Please sign in to comment.