From cd5df563de34ee94831ff793840a081ebb2b6b7d Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Thu, 10 Mar 2022 23:10:56 +1300 Subject: [PATCH] Provide a way to remove a custom disguise, fixes #616 --- .../src/main/java/me/libraryaddict/disguise/DisguiseAPI.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/src/main/java/me/libraryaddict/disguise/DisguiseAPI.java b/plugin/src/main/java/me/libraryaddict/disguise/DisguiseAPI.java index 7683b7de..1f955785 100644 --- a/plugin/src/main/java/me/libraryaddict/disguise/DisguiseAPI.java +++ b/plugin/src/main/java/me/libraryaddict/disguise/DisguiseAPI.java @@ -105,6 +105,10 @@ public class DisguiseAPI { return disguise.getValue(); } + public static void removeCustomDisguise(String disguiseName) { + DisguiseConfig.removeCustomDisguise(disguiseName); + } + public static Disguise constructDisguise(Entity entity) { return constructDisguise(entity, true, false); }