Thank you Eutherin for the reminder to break async!

This commit is contained in:
libraryaddict
2020-08-13 12:14:00 +12:00
parent 93936c3628
commit 9b7b232fbe
2 changed files with 42 additions and 60 deletions

View File

@@ -641,8 +641,8 @@ public class DisguiseParser {
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!");
throw new IllegalStateException(
"DisguiseParser should not be called async!");
}
if (sender instanceof Player) {