1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-07-04 14:44:44 +02:00

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
src/main
java
com
gmail
nossr50
database
resources

@ -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;
}