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:25:31 +02:00
parent 73898673f6
commit e18cfb4529

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()