From 9961f89c88ca98e0bc5a87da51c26bcb781798be Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Tue, 2 Oct 2018 11:42:30 -0400 Subject: [PATCH] Make setPersistent also control player saving By: Ugleh --- paper-api/src/main/java/org/bukkit/entity/Entity.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/entity/Entity.java b/paper-api/src/main/java/org/bukkit/entity/Entity.java index 2cc60fe924..c798998cc2 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Entity.java +++ b/paper-api/src/main/java/org/bukkit/entity/Entity.java @@ -197,9 +197,10 @@ public interface Entity extends Metadatable, CommandSender, Nameable { * By default all entities are persistent. An entity will also not get * persisted, if it is riding an entity that is not persistent. *

- * The persistent flag has no effect on players. If a player is directly or - * indirectly riding a non-persistent entity, the vehicle at the root and - * all its passengers won't get persisted. + * The persistent flag on players controls whether or not to save their + * playerdata file when they quit. If a player is directly or indirectly + * riding a non-persistent entity, the vehicle at the root and all its + * passengers won't get persisted. *

* This should not be confused with * {@link LivingEntity#setRemoveWhenFarAway(boolean)} which controls