Skip to content

Commit

Permalink
fix: NPE in /tpall
Browse files Browse the repository at this point in the history
Signed-off-by: Thatsmusic99 <25277367+thatsmusic99@users.noreply.github.com>
  • Loading branch information
Thatsmusic99 committed Aug 17, 2023
1 parent 48d0af7 commit 72bc297
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -45,7 +45,7 @@ public boolean onCommand(
int requestLifetime = MainConfig.get().REQUEST_LIFETIME.get();
for (Player target : Bukkit.getOnlinePlayers()) {
if (target == player) continue;
if (!ConditionChecker.canTeleport(player, target, "tpahere").isEmpty()) {
if (ConditionChecker.canTeleport(player, target, "tpahere") != null) {
continue;
}
players++;
Expand Down

0 comments on commit 72bc297

Please sign in to comment.