Adding new permission for the /mmoupdate command.

This commit is contained in:
U-YUE\Sean
2013-01-30 10:03:32 -08:00
parent bcaa7ecacb
commit cbb941116f
2 changed files with 17 additions and 7 deletions

View File

@ -15,7 +15,10 @@ import com.gmail.nossr50.util.Users;
public class MmoupdateCommand implements CommandExecutor {
@Override
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
if (CommandHelper.noCommandPermissions(sender, "mcmmo.admin")) {
// DEPRECATED PERMISSION
boolean oldPermission = !CommandHelper.noCommandPermissions(sender, "mcmmo.admin");
if (!oldPermission && CommandHelper.noCommandPermissions(sender, "mcmmo.commands.mmoupdate")) {
return true;
}