Updating permissions for the /mcgod command.

This commit is contained in:
Glitchfinder
2013-02-01 14:01:11 -08:00
parent d68dfe2a32
commit 749443454d
3 changed files with 81 additions and 24 deletions

View File

@ -83,8 +83,12 @@ public final class Permissions {
return hasPermission(sender, "mcmmo.tools.mmoedit");
}
public static boolean mcgod(Player player) {
return hasPermission(player, "mcmmo.tools.mcgod");
/**
* @deprecated Use {@link #mcgodCommand(player)} instead.
*/
@Deprecated
public static boolean mcgod(CommandSender sender) {
return hasPermission(sender, "mcmmo.tools.mcgod");
}
/*
@ -568,6 +572,10 @@ public final class Permissions {
return (hasPermission(player, "mcmmo.commands.mcability") || mcAbility(player));
}
public static boolean mcgodCommand(CommandSender sender) {
return (hasPermission(sender, "mcmmo.commands.mcgod"));
}
/**
* @deprecated Use {@link #mcAbilityCommand(player)} instead.
*/
@ -596,7 +604,6 @@ public final class Permissions {
return hasPermission(player, "mcmmo.skillreset");
}
/*
* MCMMO.CHAT.*
*/