diff --git a/src/main/java/me/libraryaddict/disguise/utilities/listeners/DisguiseListener.java b/src/main/java/me/libraryaddict/disguise/utilities/listeners/DisguiseListener.java index 7eb97389..92d82748 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/listeners/DisguiseListener.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/listeners/DisguiseListener.java @@ -551,6 +551,10 @@ public class DisguiseListener implements Listener { public void onQuit(PlayerQuitEvent event) { Player player = event.getPlayer(); + for (String meta : new String[]{"LastDisguise", "LD-LastAttacked", "forge_mods", "LibsRabbitHop", "ld_loggedin"}) { + player.removeMetadata(meta, LibsDisguises.getInstance()); + } + // Removed as its not compatible with scoreboard teams /*if (player.hasPermission("libsdisguises.seethrough")) { for (Set disguises : DisguiseUtilities.getDisguises().values()) {