mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Updating permissions for the /mcrefresh command.
This commit is contained in:
parent
93ffd950e9
commit
dee384c8b9
@ -19,7 +19,7 @@ public class McrefreshCommand implements CommandExecutor {
|
||||
PlayerProfile profile;
|
||||
String usage = LocaleLoader.getString("Commands.Usage.1", "mcrefresh", "[" + LocaleLoader.getString("Commands.Usage.Player") + "]");
|
||||
|
||||
if (CommandHelper.noCommandPermissions(sender, "mcmmo.tools.mcrefresh")) {
|
||||
if (CommandHelper.noCommandPermissions(sender, "mcmmo.commands.mcrefresh")) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -36,6 +36,10 @@ public class McrefreshCommand implements CommandExecutor {
|
||||
break;
|
||||
|
||||
case 1:
|
||||
if (CommandHelper.noCommandPermissions(sender, "mcmmo.commands.mcrefresh.others")) {
|
||||
return true;
|
||||
}
|
||||
|
||||
player = mcMMO.p.getServer().getOfflinePlayer(args[0]);
|
||||
profile = Users.getProfile(player);
|
||||
String playerName = player.getName();
|
||||
|
@ -336,6 +336,9 @@ permissions:
|
||||
mcmmo.tools.mcremove: true
|
||||
mcmmo.tools.mcrefresh:
|
||||
description: Allows access to mcrefresh command
|
||||
children:
|
||||
mcmmo.commands.mcrefresh: true
|
||||
mcmmo.commands.mcrefresh.others: true
|
||||
mcmmo.tools.mmoedit:
|
||||
default: false
|
||||
description: Allows access to mmoedit command
|
||||
@ -716,6 +719,8 @@ permissions:
|
||||
mcmmo.commands.mcgod.others: true
|
||||
mcmmo.commands.mcpurge: true
|
||||
mcmmo.commands.mcrank.others.all: true
|
||||
mcmmo.commands.mcrefresh: true
|
||||
mcmmo.commands.mcrefresh.others: true
|
||||
mcmmo.commands.mmoedit: true
|
||||
mcmmo.commands.mmoedit.others: true
|
||||
mcmmo.commands.mmoupdate: true
|
||||
@ -790,6 +795,10 @@ permissions:
|
||||
description: Allows access to the mcrank command for far players
|
||||
mcmmo.commands.mcrank.others.offline:
|
||||
description: Allows access to the mcrank command for offline players
|
||||
mcmmo.commands.mcrefresh:
|
||||
description: Allows access to the mcrefresh command
|
||||
mcmmo.commands.mcrefresh.others:
|
||||
description: Allows access to the mcrefresh command for other players
|
||||
mcmmo.commands.mcstats:
|
||||
description: Allows access to the mcstats command
|
||||
mcmmo.commands.mctop:
|
||||
|
Loading…
Reference in New Issue
Block a user