Remove Core.getVersion calls

This commit is contained in:
2026-05-16 14:02:57 +02:00
parent ab3970981d
commit ce1f947f4b
45 changed files with 123 additions and 378 deletions
@@ -31,7 +31,6 @@ import de.steamwar.bausystem.utils.bossbar.BauSystemBossbar;
import de.steamwar.bausystem.utils.bossbar.BossBarService;
import de.steamwar.command.AbstractSWCommand;
import de.steamwar.command.SWCommand;
import de.steamwar.core.Core;
import de.steamwar.core.TPSWatcher;
import de.steamwar.inventory.SWAnvilInv;
import de.steamwar.inventory.SWItem;
@@ -59,16 +58,12 @@ public class TPSSystem implements Listener {
}
new TPSLimitCommand();
new TickLimitCommand();
if (Core.getVersion() >= 15) {
new TPSWarpCommand();
new TickWarpCommand();
if (TickManager.impl.canFreeze()) {
new TickWarpingCommand();
}
}
if (Core.getVersion() >= 21) {
new Tick21Command();
new TPSWarpCommand();
new TickWarpCommand();
if (TickManager.impl.canFreeze()) {
new TickWarpingCommand();
}
new Tick21Command();
new TPSDefaultCommand();
new TickDefaultCommand();
new TPSBaseCommand();