mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2024-09-22 00:16:30 +00:00
Just use isOnline()
This commit is contained in:
parent
81854db3d0
commit
a4f9666cd0
|
@ -368,8 +368,7 @@ public abstract class Disguise {
|
||||||
public boolean isRemoveDisguiseOnDeath() {
|
public boolean isRemoveDisguiseOnDeath() {
|
||||||
return getEntity() instanceof Player ?
|
return getEntity() instanceof Player ?
|
||||||
|
|
||||||
(Bukkit.getPlayerExact(((Player) getEntity()).getName()) == null ? !isKeepDisguiseOnPlayerLogout()
|
(((Player) getEntity()).isOnline() ? !isKeepDisguiseOnPlayerLogout() : !isKeepDisguiseOnPlayerDeath())
|
||||||
: !isKeepDisguiseOnPlayerDeath())
|
|
||||||
|
|
||||||
:
|
:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue