From dafa690a0984303f412672a719a0aa038f02827d Mon Sep 17 00:00:00 2001 From: GJ Date: Sat, 16 Mar 2013 16:14:37 -0400 Subject: [PATCH] Make /mcnotify match the process of the other commands for getting the mcMMOPlayer object. --- src/main/java/com/gmail/nossr50/commands/McnotifyCommand.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/commands/McnotifyCommand.java b/src/main/java/com/gmail/nossr50/commands/McnotifyCommand.java index 11a664cb4..51fe1447b 100644 --- a/src/main/java/com/gmail/nossr50/commands/McnotifyCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/McnotifyCommand.java @@ -3,7 +3,6 @@ package com.gmail.nossr50.commands; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; -import org.bukkit.entity.Player; import com.gmail.nossr50.datatypes.player.McMMOPlayer; import com.gmail.nossr50.locale.LocaleLoader; @@ -14,7 +13,7 @@ public class McnotifyCommand implements CommandExecutor { public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { switch (args.length) { case 0: - McMMOPlayer mcMMOPlayer = UserManager.getPlayer((Player) sender); + McMMOPlayer mcMMOPlayer = UserManager.getPlayer(sender.getName()); if (mcMMOPlayer.useChatNotifications()) { sender.sendMessage(LocaleLoader.getString("Commands.Notifications.Off"));