From 0f84008abd6ba3c166cbb7f8b52633ec887489e0 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Fri, 1 Oct 2021 15:21:59 +1300 Subject: [PATCH] Somewhat fix #622 --- .../me/libraryaddict/disguise/disguisetypes/Disguise.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java b/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java index b7eca9ff..b204e885 100644 --- a/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java +++ b/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java @@ -796,7 +796,9 @@ public abstract class Disguise { getEntity().removeMetadata("LastDisguise", LibsDisguises.getInstance()); } - getEntity().setMetadata("LastDisguise", new FixedMetadataValue(LibsDisguises.getInstance(), System.currentTimeMillis())); + if (DisguiseConfig.getPvPTimer() > 0) { + getEntity().setMetadata("LastDisguise", new FixedMetadataValue(LibsDisguises.getInstance(), System.currentTimeMillis())); + } if (NmsVersion.v1_13.isSupported()) { removeBossBar();