Adding proper children for the deprecated permissions, and removing extra permissions checks.

This commit is contained in:
Glitchfinder
2013-02-01 14:36:01 -08:00
parent 749443454d
commit b633f36131
9 changed files with 37 additions and 30 deletions

View File

@ -10,13 +10,12 @@ import com.gmail.nossr50.commands.CommandHelper;
import com.gmail.nossr50.config.Config;
import com.gmail.nossr50.database.runnables.SQLConversionTask;
import com.gmail.nossr50.locale.LocaleLoader;
import com.gmail.nossr50.util.Permissions;
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.commands.mmoupdate") && !Permissions.admin((Player) sender)) {
if (CommandHelper.noCommandPermissions(sender, "mcmmo.commands.mmoupdate")) {
return true;
}