diff --git a/src/main/java/uk/antiperson/stackmob/StackMob.java b/src/main/java/uk/antiperson/stackmob/StackMob.java index 62756852..aeec9027 100644 --- a/src/main/java/uk/antiperson/stackmob/StackMob.java +++ b/src/main/java/uk/antiperson/stackmob/StackMob.java @@ -88,13 +88,13 @@ public void onEnable() { commands.registerSubCommands(); int stackInterval = getMainConfig().getStackInterval(); new MergeTask(this).runTaskTimer(this, 5, stackInterval); - if (!Utilities.isNativeVersion() || getHookManager().getProtocolLibHook() == null) { + if (Utilities.isNativeVersion()) { + int tagInterval = getMainConfig().getTagNearbyInterval(); + new TagTask(this).runTaskTimer(this, 5, tagInterval); + } else if (getHookManager().getProtocolLibHook() == null) { getLogger().warning("You are not running the plugins native version and ProtocolLib could not be found (or has been disabled)."); getLogger().warning("The display name visibility setting 'NEARBY' will not work unless this is fixed."); - return; } - int tagInterval = getMainConfig().getTagNearbyInterval(); - new TagTask(this).runTaskTimer(this, 5, tagInterval); getEntityManager().registerAllEntities(); getUpdater().checkUpdate().whenComplete(((updateResult, throwable) -> { switch (updateResult.getResult()) {