Changed the booster command name and its permission

This commit is contained in:
2022-09-06 23:50:48 +02:00
parent 2ef55fcfc0
commit 6679019e64
3 changed files with 3 additions and 3 deletions
@@ -40,7 +40,7 @@ public final class BoostersPlugin extends JavaPlugin {
getServer().getMessenger().registerOutgoingPluginChannel(this, Config.pluginMessageChannel);
getServer().getMessenger().registerIncomingPluginChannel(this, Config.pluginMessageChannel, new PluginMessage());
registerCommand("boosters", new BoosterCommand());
registerCommand("listboosters", new BoosterCommand());
ServerBoosterStorage.getServerBoosterStorage(); //this loads the boosters in
}
@@ -21,7 +21,7 @@ public class BoosterCommand implements CommandExecutor {
@Override
public boolean onCommand(@NotNull CommandSender commandSender, @NotNull Command command, @NotNull String s, @NotNull String[] strings) {
if (!commandSender.hasPermission("command.proxy.booster")) {
if (!commandSender.hasPermission("boosters.list")) {
commandSender.sendMiniMessage("<red>You don't have permission for this command", null);
return true;
}