Changed the booster command name and its permission
This commit is contained in:
parent
2ef55fcfc0
commit
6679019e64
|
|
@ -67,7 +67,7 @@ tasks {
|
||||||
exclude { it.moduleName == "velocity" }
|
exclude { it.moduleName == "velocity" }
|
||||||
}
|
}
|
||||||
listOf(
|
listOf(
|
||||||
"net.kyori.adventure.text.minimessage",
|
// "net.kyori.adventure.text.minimessage",
|
||||||
"org.spongepowered.configurate"
|
"org.spongepowered.configurate"
|
||||||
).forEach { relocate(it, "${rootProject.name}.lib.$it") }
|
).forEach { relocate(it, "${rootProject.name}.lib.$it") }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ public final class BoostersPlugin extends JavaPlugin {
|
||||||
|
|
||||||
getServer().getMessenger().registerOutgoingPluginChannel(this, Config.pluginMessageChannel);
|
getServer().getMessenger().registerOutgoingPluginChannel(this, Config.pluginMessageChannel);
|
||||||
getServer().getMessenger().registerIncomingPluginChannel(this, Config.pluginMessageChannel, new PluginMessage());
|
getServer().getMessenger().registerIncomingPluginChannel(this, Config.pluginMessageChannel, new PluginMessage());
|
||||||
registerCommand("boosters", new BoosterCommand());
|
registerCommand("listboosters", new BoosterCommand());
|
||||||
ServerBoosterStorage.getServerBoosterStorage(); //this loads the boosters in
|
ServerBoosterStorage.getServerBoosterStorage(); //this loads the boosters in
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ public class BoosterCommand implements CommandExecutor {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCommand(@NotNull CommandSender commandSender, @NotNull Command command, @NotNull String s, @NotNull String[] strings) {
|
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);
|
commandSender.sendMiniMessage("<red>You don't have permission for this command", null);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user