mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-08-22 22:53:01 +02:00
Just use isOnline()
This commit is contained in:
parent
81854db3d0
commit
a4f9666cd0
|
@ -368,8 +368,7 @@ public abstract class Disguise {
|
|||
public boolean isRemoveDisguiseOnDeath() {
|
||||
return getEntity() instanceof Player ?
|
||||
|
||||
(Bukkit.getPlayerExact(((Player) getEntity()).getName()) == null ? !isKeepDisguiseOnPlayerLogout()
|
||||
: !isKeepDisguiseOnPlayerDeath())
|
||||
(((Player) getEntity()).isOnline() ? !isKeepDisguiseOnPlayerLogout() : !isKeepDisguiseOnPlayerDeath())
|
||||
|
||||
:
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user