Updates version to 0.9.1.0, updates README and adds a permission for changing config values
Adds the stargate.admin.config permission, which is required to use /sg config
This commit is contained in:
@ -19,7 +19,7 @@ public class CommandConfig 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.admin")) {
|
||||
if (!player.hasPermission("stargate.admin.config")) {
|
||||
Stargate.getMessageSender().sendErrorMessage(commandSender, "Permission Denied");
|
||||
return true;
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ public class StarGateTabCompleter implements TabCompleter {
|
||||
if (!(commandSender instanceof Player player) || player.hasPermission("stargate.admin.reload")) {
|
||||
commands.add("reload");
|
||||
}
|
||||
if (!(commandSender instanceof Player player) || player.hasPermission("stargate.admin")) {
|
||||
if (!(commandSender instanceof Player player) || player.hasPermission("stargate.admin.config")) {
|
||||
commands.add("config");
|
||||
}
|
||||
return commands;
|
||||
|
Reference in New Issue
Block a user