Skip to content

Commit

Permalink
fix: check isSpectator
Browse files Browse the repository at this point in the history
  • Loading branch information
zly2006 committed Jun 22, 2024
1 parent 20fa9c2 commit 27709fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ private void onTick(CallbackInfo ci) {
sendFormattedMessage(player, lastArea, false);
}
}
if (area != null) {
if (area != null && !isSpectator()) {
visitedEnclosures.add(area.getUuid());
if (!area.hasPerm(player, MOVE)) {
player.sendMessage(MOVE.getNoPermissionMsg(player));
Expand Down

0 comments on commit 27709fb

Please sign in to comment.