1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-21 22:06:22 +02:00

Fix instanceof Player

This commit is contained in:
snowleo
2012-10-14 21:27:38 +02:00
parent 9ca4f53c1a
commit cb528935de
12 changed files with 50 additions and 50 deletions

View File

@@ -69,9 +69,9 @@ public abstract class EssentialsChatPlayer implements Listener
protected void charge(final CommandSender sender, final Trade charge) throws ChargeException
{
if (sender instanceof Player)
if (sender instanceof IUser)
{
charge.charge(ess.getUserMap().getUser((Player)sender));
charge.charge((IUser)sender);
}
}