From 867794b29b1093f48e53e73cebebb9a871500331 Mon Sep 17 00:00:00 2001 From: Ugleh Date: Tue, 2 Oct 2018 11:42:30 -0400 Subject: [PATCH] Make setPersistent also control player saving --- src/main/java/org/bukkit/entity/Entity.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/bukkit/entity/Entity.java b/src/main/java/org/bukkit/entity/Entity.java index 2cc60fe9..c798998c 100644 --- a/src/main/java/org/bukkit/entity/Entity.java +++ b/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