Remove logging in TeamPlayer for world border

Removed redundant log messages in the `resetWorldBorder` method to reduce clutter and improve clarity.
This commit is contained in:
Teriuihi 2025-02-08 20:55:37 +01:00
parent b8afe209bc
commit 53de0fe217

View File

@ -2,8 +2,6 @@ package com.alttd.ctf.team;
import com.alttd.ctf.game.GamePhase;
import com.alttd.ctf.game_class.GameClass;
import com.github.yannicklamprecht.worldborder.api.IWorldBorder;
import com.github.yannicklamprecht.worldborder.api.Position;
import com.github.yannicklamprecht.worldborder.api.WorldBorderApi;
import lombok.Getter;
import lombok.Setter;
@ -45,15 +43,12 @@ public class TeamPlayer {
}
public void resetWorldBorder(Player player, WorldBorderApi worldBorderApi, GamePhase gamePhase, Location worldBorderCenter) {
log.info("Resetting world border for {}", player.getName());
double worldBorderSize = gamePhase.getWorldBorderSize();
log.info("Resetting world border to {} for {}", worldBorderSize, player.getName());
if (worldBorderSize <= 0) {
log.info("Resetting world border to global for {}", player.getName());
worldBorderApi.resetWorldBorderToGlobal(player);
return;
}
log.info("Resetting world border to {} for {}", worldBorderCenter.toString(), player.getName());
worldBorderApi.setBorder(player, worldBorderSize, worldBorderCenter);
}