Make setPersistent also control player saving

By: Ugleh <troti@ymail.com>
This commit is contained in:
Bukkit/Spigot 2018-10-02 11:42:30 -04:00
parent b7719b7e4a
commit 9961f89c88

View file

@ -197,9 +197,10 @@ public interface Entity extends Metadatable, CommandSender, Nameable {
* By default all entities are persistent. An entity will also not get * By default all entities are persistent. An entity will also not get
* persisted, if it is riding an entity that is not persistent. * persisted, if it is riding an entity that is not persistent.
* <p> * <p>
* The persistent flag has no effect on players. If a player is directly or * The persistent flag on players controls whether or not to save their
* indirectly riding a non-persistent entity, the vehicle at the root and * playerdata file when they quit. If a player is directly or indirectly
* all its passengers won't get persisted. * riding a non-persistent entity, the vehicle at the root and all its
* passengers won't get persisted.
* <p> * <p>
* <b>This should not be confused with * <b>This should not be confused with
* {@link LivingEntity#setRemoveWhenFarAway(boolean)} which controls * {@link LivingEntity#setRemoveWhenFarAway(boolean)} which controls