📝 Fix error with worlds

This commit is contained in:
Maxlego08 2025-02-15 19:15:34 +01:00
parent 698ce5b3b1
commit cd6df3d1a9
2 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,8 @@
# Unreleased
- Fix command description
- Fix default koth create scoreboard. You now have a real configuration that will be created
- Fix default koth create scoreboard. A real configuration will now be created
- Fixed Discord Webhook. The configuration loading and sending are now correct
# 3.1.0

View File

@ -439,8 +439,10 @@ public class ZKoth extends ZUtils implements Koth {
if (this.blacklistTeamId.contains(this.kothTeam.getTeamId(player))) return;
Cuboid cuboid = this.getCuboid();
if (player.getWorld() != cuboid.getWorld()) return;
Location pLoc = player.getLocation();
if (pLoc.distanceSquared(this.getCenter()) > Math.pow(scoreboardRadius, 2)) {
plugin.getScoreBoardManager().delete(player);
plugin.getScoreBoardManager().getBoards().remove(player);