From 28dca6e66f42a6d949a3fce8fe4b128f664e7f5c Mon Sep 17 00:00:00 2001 From: shatteredbeam Date: Tue, 12 Feb 2013 19:54:17 -0800 Subject: [PATCH] sender, not player. --- src/main/java/com/gmail/nossr50/util/Permissions.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/util/Permissions.java b/src/main/java/com/gmail/nossr50/util/Permissions.java index ab51a8810..eac25fc59 100644 --- a/src/main/java/com/gmail/nossr50/util/Permissions.java +++ b/src/main/java/com/gmail/nossr50/util/Permissions.java @@ -102,7 +102,7 @@ public final class Permissions { */ @Deprecated public static boolean mmoedit(CommandSender sender) { - return player.hasPermission("mcmmo.tools.mmoedit"); + return sender.hasPermission("mcmmo.tools.mmoedit"); } /** @@ -110,7 +110,7 @@ public final class Permissions { */ @Deprecated public static boolean mcgod(CommandSender sender) { - return player.hasPermission("mcmmo.tools.mcgod"); + return sender.hasPermission("mcmmo.tools.mcgod"); } /*