diff --git a/src/main/java/me/libraryaddict/disguise/utilities/parser/DisguiseParser.java b/src/main/java/me/libraryaddict/disguise/utilities/parser/DisguiseParser.java index a484ca42..4b52584a 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/parser/DisguiseParser.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/parser/DisguiseParser.java @@ -571,6 +571,11 @@ public class DisguiseParser { public static Disguise parseDisguise(CommandSender sender, Entity target, String permNode, String[] args, DisguisePermissions permissions) throws DisguiseParseException, IllegalAccessException, InvocationTargetException { + if (!Bukkit.isPrimaryThread()) { + DisguiseUtilities.getLogger().warning( + "DisguiseParser should not be called async! This operation will become impossible in the future!"); + } + if (sender instanceof Player) { DisguiseUtilities.setCommandsUsed(); }