mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-08-30 00:10:05 +02:00
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
d7a5970b85
commit
94816a6e52
|
@ -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