Permissions murder: The Sequel.

This commit is contained in:
shatteredbeam 2013-02-12 18:26:40 -08:00
parent 12a2107601
commit 0684b1d425

View File

@ -10,7 +10,6 @@ import org.getspout.spoutapi.player.SpoutPlayer;
import com.gmail.nossr50.mcMMO;
import com.gmail.nossr50.config.Config;
import com.gmail.nossr50.locale.LocaleLoader;
import com.gmail.nossr50.util.Permissions;
public class McmmoCommand implements CommandExecutor {
@Override
@ -37,7 +36,7 @@ public class McmmoCommand implements CommandExecutor {
case 1:
if (args[0].equalsIgnoreCase("?") || args[0].equalsIgnoreCase("help") || args[0].equalsIgnoreCase("commands")) {
if (!Permissions.hasPermission(sender, "mcmmo.commands.mcmmo.help")) {
if (!sender.hasPermission("mcmmo.commands.mcmmo.help")) {
sender.sendMessage(command.getPermissionMessage());
return true;
}