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:
parent
73898673f6
commit
e18cfb4529
@ -9,7 +9,7 @@ public class PlayerEntity extends Entity
|
|||||||
{
|
{
|
||||||
public Player getPlayer()
|
public Player getPlayer()
|
||||||
{
|
{
|
||||||
return Bukkit.getPlayer(this.getId());
|
return Bukkit.getPlayerExact(this.getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isOnline()
|
public boolean isOnline()
|
||||||
|
Loading…
Reference in New Issue
Block a user