fix evil bug with getPlayer matching online players

if the offline player had similar name with the online player
ie. online "s2", offline "s", then "s" would show as online because
getPlayer("s") will return getPlayer("s2")
this is why getPlayerExact should be used
This commit is contained in:
basicsensei 2012-07-16 18:11:27 +02:00
parent d7a5970b85
commit 94816a6e52

View File

@ -9,7 +9,7 @@ public class PlayerEntity extends Entity
{
public Player getPlayer()
{
return Bukkit.getPlayer(this.getId());
return Bukkit.getPlayerExact(this.getId());
}
public boolean isOnline()