Adds missing info about Bungee-related permissions to the readme and adjusts permissions a bit

Adds stargate.server and stargate.admin.bungee permissions to the readme
Renames stargate.reload to stargate.admin.reload for better consistency
Makes the stargate.admin permission only give the reload, hidden, private and bungee permissions while the wildcard permission gives all permissions
This commit is contained in:
2021-10-29 01:45:50 +02:00
parent 544384f69b
commit 487cb3ad9e
3 changed files with 42 additions and 36 deletions

View File

@ -16,7 +16,7 @@ public class CommandReload implements CommandExecutor {
public boolean onCommand(@NotNull CommandSender commandSender, @NotNull Command command, @NotNull String s,
@NotNull String[] args) {
if (commandSender instanceof Player player) {
if (!player.hasPermission("stargate.reload")) {
if (!player.hasPermission("stargate.admin.reload")) {
Stargate.getMessageSender().sendErrorMessage(commandSender, "Permission Denied");
return true;
}