Pass the actual player object to Bukkit.

This commit is contained in:
md_5 2012-06-11 08:45:15 +10:00
parent 43b3a9df23
commit 77b0415c1b
2 changed files with 1 additions and 2 deletions

View File

@ -148,7 +148,7 @@ public class EssentialsPlayerListener implements Listener
{ {
if (!user.isAuthorized("essentials.vanish.see")) if (!user.isAuthorized("essentials.vanish.see"))
{ {
user.hidePlayer(ess.getUser(p)); user.hidePlayer(ess.getUser(p).getBase());
} }
} }

View File

@ -2,7 +2,6 @@ package com.earth2me.essentials.commands;
import static com.earth2me.essentials.I18n._; import static com.earth2me.essentials.I18n._;
import com.earth2me.essentials.User; import com.earth2me.essentials.User;
import org.bukkit.ChatColor;
import org.bukkit.Server; import org.bukkit.Server;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;