Changed the booster command name and its permission

This commit is contained in:
Teriuihi 2022-09-06 23:50:48 +02:00
parent 2ef55fcfc0
commit 6679019e64
3 changed files with 3 additions and 3 deletions

View File

@ -67,7 +67,7 @@ tasks {
exclude { it.moduleName == "velocity" }
}
listOf(
"net.kyori.adventure.text.minimessage",
// "net.kyori.adventure.text.minimessage",
"org.spongepowered.configurate"
).forEach { relocate(it, "${rootProject.name}.lib.$it") }
}

View File

@ -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
}

View File

@ -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;
}