mirror of
https://github.com/Maxlego08/zKoth.git
synced 2025-02-22 02:42:15 +01:00
📝 Fix error with worlds
This commit is contained in:
parent
698ce5b3b1
commit
cd6df3d1a9
@ -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
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user