fix: make seen not run on non-essentials servers

This commit is contained in:
ChomeNS
2025-03-26 10:53:51 +07:00
parent 450b2a7b51
commit dd629d1dfa
2 changed files with 6 additions and 1 deletions

View File

@@ -96,6 +96,11 @@ public class PlayersPlugin extends Bot.Listener implements TickPlugin.Listener {
}
}
if (!bot.serverFeatures.hasEssentials) {
outputFuture.complete(null);
return;
}
final CompletableFuture<Component> trackedCoreFuture = bot.core.runTracked("essentials:seen " + target.profile.getIdAsString());
if (trackedCoreFuture == null) {