Updating permissions for the /mcrefresh command.

This commit is contained in:
Glitchfinder 2013-02-03 13:45:37 -08:00
parent 93ffd950e9
commit dee384c8b9
2 changed files with 14 additions and 1 deletions

View File

@ -19,7 +19,7 @@ public class McrefreshCommand implements CommandExecutor {
PlayerProfile profile; PlayerProfile profile;
String usage = LocaleLoader.getString("Commands.Usage.1", "mcrefresh", "[" + LocaleLoader.getString("Commands.Usage.Player") + "]"); 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; return true;
} }
@ -36,6 +36,10 @@ public class McrefreshCommand implements CommandExecutor {
break; break;
case 1: case 1:
if (CommandHelper.noCommandPermissions(sender, "mcmmo.commands.mcrefresh.others")) {
return true;
}
player = mcMMO.p.getServer().getOfflinePlayer(args[0]); player = mcMMO.p.getServer().getOfflinePlayer(args[0]);
profile = Users.getProfile(player); profile = Users.getProfile(player);
String playerName = player.getName(); String playerName = player.getName();

View File

@ -336,6 +336,9 @@ permissions:
mcmmo.tools.mcremove: true mcmmo.tools.mcremove: true
mcmmo.tools.mcrefresh: mcmmo.tools.mcrefresh:
description: Allows access to mcrefresh command description: Allows access to mcrefresh command
children:
mcmmo.commands.mcrefresh: true
mcmmo.commands.mcrefresh.others: true
mcmmo.tools.mmoedit: mcmmo.tools.mmoedit:
default: false default: false
description: Allows access to mmoedit command description: Allows access to mmoedit command
@ -716,6 +719,8 @@ permissions:
mcmmo.commands.mcgod.others: true mcmmo.commands.mcgod.others: true
mcmmo.commands.mcpurge: true mcmmo.commands.mcpurge: true
mcmmo.commands.mcrank.others.all: true mcmmo.commands.mcrank.others.all: true
mcmmo.commands.mcrefresh: true
mcmmo.commands.mcrefresh.others: true
mcmmo.commands.mmoedit: true mcmmo.commands.mmoedit: true
mcmmo.commands.mmoedit.others: true mcmmo.commands.mmoedit.others: true
mcmmo.commands.mmoupdate: true mcmmo.commands.mmoupdate: true
@ -790,6 +795,10 @@ permissions:
description: Allows access to the mcrank command for far players description: Allows access to the mcrank command for far players
mcmmo.commands.mcrank.others.offline: mcmmo.commands.mcrank.others.offline:
description: Allows access to the mcrank command for offline players 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: mcmmo.commands.mcstats:
description: Allows access to the mcstats command description: Allows access to the mcstats command
mcmmo.commands.mctop: mcmmo.commands.mctop: