Changed the booster command name and its permission
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user