diff --git a/FightSystem/FightSystem_10/build.gradle.kts b/FightSystem/FightSystem_10/build.gradle.kts
deleted file mode 100644
index 2ab25eda..00000000
--- a/FightSystem/FightSystem_10/build.gradle.kts
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-plugins {
- steamwar.java
-}
-
-dependencies {
- compileOnly(project(":SpigotCore", "default"))
- compileOnly(project(":FightSystem:FightSystem_Core", "default"))
-
- compileOnly(libs.nms10)
-}
diff --git a/FightSystem/FightSystem_10/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper10.java b/FightSystem/FightSystem_10/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper10.java
deleted file mode 100644
index 3b6c94f6..00000000
--- a/FightSystem/FightSystem_10/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper10.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-package de.steamwar.fightsystem.utils;
-
-import de.steamwar.fightsystem.Config;
-import de.steamwar.fightsystem.fight.FightWorld;
-import net.minecraft.server.v1_10_R1.Chunk;
-import org.bukkit.World;
-import org.bukkit.craftbukkit.v1_10_R1.CraftWorld;
-import org.bukkit.craftbukkit.v1_10_R1.entity.CraftEntity;
-import org.bukkit.entity.Entity;
-
-import java.util.stream.Stream;
-
-public class CraftbukkitWrapper10 implements CraftbukkitWrapper {
- @Override
- public void resetChunk(World world, World backup, int x, int z) {
- net.minecraft.server.v1_10_R1.World w = ((CraftWorld) world).getHandle();
- Chunk chunk = w.getChunkAt(x, z);
- Chunk backupChunk = ((CraftWorld) backup).getHandle().getChunkAt(x, z);
-
- System.arraycopy(backupChunk.getSections(), 0, chunk.getSections(), 0, chunk.getSections().length);
- System.arraycopy(backupChunk.heightMap, 0, chunk.heightMap, 0, chunk.heightMap.length);
- w.tileEntityListTick.removeAll(chunk.tileEntities.values());
- if (!FightWorld.isPAPER()) {
- w.tileEntityList.removeAll(chunk.tileEntities.values());
- }
- chunk.tileEntities.clear();
- chunk.tileEntities.putAll(backupChunk.tileEntities);
- }
-
- @Override
- public float headRotation(Entity e) {
- return ((CraftEntity)e).getHandle().getHeadRotation();
- }
-
- @Override
- public Stream> entityIterator() {
- return ((CraftWorld) Config.world).getHandle().entityList.stream();
- }
-
- @Override
- public void setupGamerule() { }
-}
diff --git a/FightSystem/FightSystem_12/build.gradle.kts b/FightSystem/FightSystem_12/build.gradle.kts
deleted file mode 100644
index 0654681f..00000000
--- a/FightSystem/FightSystem_12/build.gradle.kts
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-plugins {
- steamwar.java
-}
-
-dependencies {
- compileOnly(project(":SpigotCore", "default"))
- compileOnly(project(":FightSystem:FightSystem_Core", "default"))
- compileOnly(project(":FightSystem:FightSystem_8", "default"))
-
- compileOnly(libs.nms12)
- compileOnly(libs.worldedit12)
-}
diff --git a/FightSystem/FightSystem_12/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper12.java b/FightSystem/FightSystem_12/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper12.java
deleted file mode 100644
index cc6a1c50..00000000
--- a/FightSystem/FightSystem_12/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper12.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-package de.steamwar.fightsystem.utils;
-
-import de.steamwar.fightsystem.Config;
-import de.steamwar.fightsystem.fight.FightWorld;
-import net.minecraft.server.v1_12_R1.Chunk;
-import org.bukkit.World;
-import org.bukkit.craftbukkit.v1_12_R1.CraftWorld;
-import org.bukkit.craftbukkit.v1_12_R1.entity.CraftEntity;
-import org.bukkit.entity.Entity;
-
-import java.util.stream.Stream;
-
-public class CraftbukkitWrapper12 implements CraftbukkitWrapper {
- @Override
- public void resetChunk(World world, World backup, int x, int z) {
- net.minecraft.server.v1_12_R1.World w = ((CraftWorld) world).getHandle();
- Chunk chunk = w.getChunkAt(x, z);
- Chunk backupChunk = ((CraftWorld) backup).getHandle().getChunkAt(x, z);
-
- System.arraycopy(backupChunk.getSections(), 0, chunk.getSections(), 0, chunk.getSections().length);
- System.arraycopy(backupChunk.heightMap, 0, chunk.heightMap, 0, chunk.heightMap.length);
- w.tileEntityListTick.removeAll(chunk.tileEntities.values());
- if (!FightWorld.isPAPER()) {
- w.tileEntityList.removeAll(chunk.tileEntities.values());
- }
- chunk.tileEntities.clear();
- chunk.tileEntities.putAll(backupChunk.tileEntities);
- }
-
- @Override
- public float headRotation(Entity e) {
- return ((CraftEntity)e).getHandle().getHeadRotation();
- }
-
- @Override
- public Stream> entityIterator() {
- return ((CraftWorld) Config.world).getHandle().entityList.stream();
- }
-
- @Override
- public void setupGamerule() { }
-}
diff --git a/FightSystem/FightSystem_12/src/de/steamwar/fightsystem/utils/WorldOfColorWrapper12.java b/FightSystem/FightSystem_12/src/de/steamwar/fightsystem/utils/WorldOfColorWrapper12.java
deleted file mode 100644
index 0c9614b3..00000000
--- a/FightSystem/FightSystem_12/src/de/steamwar/fightsystem/utils/WorldOfColorWrapper12.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-package de.steamwar.fightsystem.utils;
-
-import org.bukkit.ChatColor;
-import org.bukkit.Location;
-import org.bukkit.Sound;
-import org.bukkit.SoundCategory;
-import org.bukkit.entity.Arrow;
-import org.bukkit.entity.Player;
-import org.bukkit.entity.Projectile;
-import org.bukkit.scoreboard.Team;
-
-public class WorldOfColorWrapper12 implements WorldOfColorWrapper {
- @Override
- public void setTeamColor(Team team, ChatColor color) {
- team.setColor(color);
- }
-
- @Override
- public boolean isInBlock(Projectile e) {
- if(e instanceof Arrow)
- return ((Arrow) e).isInBlock();
- return false;
- }
-
- @Override
- public void playSound(Location location, Sound sound, String soundCategory, float volume, float pitch) {
- location.getWorld().playSound(location, sound, SoundCategory.valueOf(soundCategory), volume, pitch);
- }
-
- @Override
- public void sendTitle(Player player, String title, String subtitle, int start, int hold, int stop) {
- player.sendTitle(title, subtitle, start, hold, stop);
- }
-}
diff --git a/FightSystem/FightSystem_12/src/de/steamwar/fightsystem/utils/WorldeditWrapper12.java b/FightSystem/FightSystem_12/src/de/steamwar/fightsystem/utils/WorldeditWrapper12.java
deleted file mode 100644
index d5869543..00000000
--- a/FightSystem/FightSystem_12/src/de/steamwar/fightsystem/utils/WorldeditWrapper12.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-package de.steamwar.fightsystem.utils;
-
-import com.sk89q.worldedit.blocks.BaseBlock;
-import org.bukkit.Material;
-
-@SuppressWarnings("deprecation")
-public class WorldeditWrapper12 extends WorldeditWrapper8 {
-
- static {
- colorBlocks.add(new BaseBlock(Material.CONCRETE.getId(), COLOR_TO_REPLACE));
- colorBlocks.add(new BaseBlock(Material.CONCRETE_POWDER.getId(), COLOR_TO_REPLACE));
- }
-}
diff --git a/FightSystem/FightSystem_14/build.gradle.kts b/FightSystem/FightSystem_14/build.gradle.kts
deleted file mode 100644
index dfa4eb5f..00000000
--- a/FightSystem/FightSystem_14/build.gradle.kts
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-plugins {
- steamwar.java
-}
-
-dependencies {
- compileOnly(project(":SpigotCore", "default"))
- compileOnly(project(":FightSystem:FightSystem_Core", "default"))
- compileOnly(project(":FightSystem:FightSystem_8", "default"))
- compileOnly(project(":FightSystem:FightSystem_9", "default"))
-
- compileOnly(libs.nms14)
- compileOnly(libs.worldedit15)
-
- compileOnly(libs.fastutil)
-}
diff --git a/FightSystem/FightSystem_14/src/de/steamwar/fightsystem/utils/BlockIdWrapper14.java b/FightSystem/FightSystem_14/src/de/steamwar/fightsystem/utils/BlockIdWrapper14.java
deleted file mode 100644
index 665fab12..00000000
--- a/FightSystem/FightSystem_14/src/de/steamwar/fightsystem/utils/BlockIdWrapper14.java
+++ /dev/null
@@ -1,96 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-package de.steamwar.fightsystem.utils;
-
-import de.steamwar.Reflection;
-import de.steamwar.core.Core;
-import de.steamwar.fightsystem.Config;
-import it.unimi.dsi.fastutil.ints.Int2ObjectMap;
-import org.bukkit.Material;
-import org.bukkit.World;
-import org.bukkit.block.Block;
-import org.bukkit.entity.Entity;
-import org.bukkit.entity.Player;
-
-import java.util.Map;
-
-public class BlockIdWrapper14 implements BlockIdWrapper {
-
- private static final Class> chunkProviderServer = Reflection.getClass("net.minecraft.server.level.ServerChunkCache");
- private static final Reflection.Method getChunkProvider = Reflection.getTypedMethod(worldServer, null, chunkProviderServer);
- private static final Class> playerChunkMap = Reflection.getClass("net.minecraft.server.level.ChunkMap");
- private static final Reflection.Field> getPlayerChunkMap = Reflection.getField(chunkProviderServer, playerChunkMap, 0);
- private static final Reflection.Field extends Map> entityTrackers = Core.getVersion() > 15 ? Reflection.getField(playerChunkMap, Int2ObjectMap.class, 0) : Reflection.getField(playerChunkMap, org.bukkit.craftbukkit.libs.it.unimi.dsi.fastutil.ints.Int2ObjectMap.class, 0);
- private static final Class> block = Reflection.getClass("net.minecraft.world.level.block.Block");
- private static final Class> iBlockData = Reflection.getClass("net.minecraft.world.level.block.state.BlockState");
- private static final Class> blockPosition = Reflection.getClass("net.minecraft.core.BlockPos");
-
- private final Map trackers;
- public BlockIdWrapper14() {
- trackers = entityTrackers.get(getPlayerChunkMap.get(getChunkProvider.invoke(getWorldHandle.invoke(Config.world))));
- }
-
- private static final Reflection.Method getCombinedId = Reflection.getTypedMethod(block, null, int.class, iBlockData);
- private static final Reflection.Method getNMS = Reflection.getTypedMethod(Reflection.getClass("org.bukkit.craftbukkit.block.CraftBlock"), "getNMS", iBlockData);
- @Override
- public int blockToId(Block block) {
- return (int) getCombinedId.invoke(null, getNMS.invoke(block));
- }
-
- private static final Reflection.Method getByCombinedId = Reflection.getTypedMethod(block, null, iBlockData, int.class);
- private static final Reflection.Constructor newBlockPosition = Reflection.getConstructor(blockPosition, int.class, int.class, int.class);
- private static final Reflection.Method getTypeAndData = Reflection.getMethod(worldServer, null, blockPosition, iBlockData, int.class);
- private static final Reflection.Method removeTileEntity = Reflection.getMethod(worldServer, Core.getVersion() > 15 ? "m" : "removeTileEntity", blockPosition);
- private static final Reflection.Method flagDirty = Reflection.getMethod(chunkProviderServer, null, blockPosition);
- @Override
- public void setBlock(World world, int x, int y, int z, int blockState) {
- Object blockData = getByCombinedId.invoke(null, blockState);
- Object nworld = getWorldHandle.invoke(world);
- Object pos = newBlockPosition.invoke(x, y, z);
-
- removeTileEntity.invoke(nworld, pos);
- getTypeAndData.invoke(nworld, pos, blockData, 1042);
- flagDirty.invoke(getChunkProvider.invoke(nworld), pos);
- }
-
- private static final Class> entityTracker = Reflection.getClass("net.minecraft.server.level.ChunkMap$TrackedEntity");
- private static final Reflection.Method updatePlayer = Reflection.getMethod(entityTracker, Core.getVersion() > 15 ? "b" : "updatePlayer", entityPlayer);
- @Override
- public void trackEntity(Player player, Entity entity) {
- Object tracker = trackers.get(entity.getEntityId());
- if(tracker != null)
- updatePlayer.invoke(tracker, getPlayer.invoke(player));
- }
-
- private static final Reflection.Method clearPlayer = Reflection.getMethod(entityTracker, Core.getVersion() > 15 ? "a" : "clear", entityPlayer);
- @Override
- public void untrackEntity(Player player, Entity entity) {
- Object tracker = trackers.get(entity.getEntityId());
- if(tracker != null)
- clearPlayer.invoke(tracker, getPlayer.invoke(player));
- }
-
- private static final Reflection.Method getMaterialByBlock = Reflection.getTypedMethod(Reflection.getClass("org.bukkit.craftbukkit.util.CraftMagicNumbers"), "getMaterial", Material.class, block);
- private static final Reflection.Method getBlockByBlockData = Reflection.getTypedMethod(iBlockData, null, block);
- @Override
- public Material idToMaterial(int blockState) {
- return (Material)getMaterialByBlock.invoke(null, getBlockByBlockData.invoke(getByCombinedId.invoke(null, blockState)));
- }
-}
diff --git a/FightSystem/FightSystem_14/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper14.java b/FightSystem/FightSystem_14/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper14.java
deleted file mode 100644
index 8945ca9d..00000000
--- a/FightSystem/FightSystem_14/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper14.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-package de.steamwar.fightsystem.utils;
-
-import de.steamwar.fightsystem.Config;
-import de.steamwar.fightsystem.fight.FightWorld;
-import net.minecraft.server.v1_14_R1.Chunk;
-import org.bukkit.World;
-import org.bukkit.craftbukkit.v1_14_R1.CraftWorld;
-import org.bukkit.craftbukkit.v1_14_R1.entity.CraftEntity;
-import org.bukkit.entity.Entity;
-
-import java.util.stream.Stream;
-
-public class CraftbukkitWrapper14 implements CraftbukkitWrapper {
- @Override
- public void resetChunk(World world, World backup, int x, int z) {
- net.minecraft.server.v1_14_R1.World w = ((CraftWorld) world).getHandle();
- Chunk chunk = w.getChunkAt(x, z);
- Chunk backupChunk = ((CraftWorld) backup).getHandle().getChunkAt(x, z);
-
- System.arraycopy(backupChunk.getSections(), 0, chunk.getSections(), 0, chunk.getSections().length);
- w.tileEntityListTick.removeAll(chunk.tileEntities.values());
- if (!FightWorld.isPAPER()) {
- w.tileEntityList.removeAll(chunk.tileEntities.values());
- }
- chunk.tileEntities.clear();
- chunk.tileEntities.putAll(backupChunk.tileEntities);
- chunk.heightMap.clear();
- chunk.heightMap.putAll(backupChunk.heightMap);
- }
-
- @Override
- public float headRotation(Entity e) {
- return ((CraftEntity)e).getHandle().getHeadRotation();
- }
-
- @Override
- public Stream> entityIterator() {
- return ((CraftWorld) Config.world).getHandle().entitiesById.values().stream();
- }
-
- @Override
- public void setupGamerule() { }
-}
diff --git a/FightSystem/FightSystem_14/src/de/steamwar/fightsystem/utils/FlatteningWrapper14.java b/FightSystem/FightSystem_14/src/de/steamwar/fightsystem/utils/FlatteningWrapper14.java
deleted file mode 100644
index c2e70dc9..00000000
--- a/FightSystem/FightSystem_14/src/de/steamwar/fightsystem/utils/FlatteningWrapper14.java
+++ /dev/null
@@ -1,116 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-package de.steamwar.fightsystem.utils;
-
-import org.bukkit.DyeColor;
-import org.bukkit.Material;
-import org.bukkit.World;
-import org.bukkit.block.Block;
-import org.bukkit.block.data.BlockData;
-import org.bukkit.block.data.Waterlogged;
-import org.bukkit.block.data.type.Dispenser;
-import org.bukkit.entity.Player;
-import org.bukkit.entity.Pose;
-import org.bukkit.event.block.BlockPhysicsEvent;
-import org.bukkit.inventory.ItemStack;
-import org.bukkit.inventory.meta.BlockDataMeta;
-import org.bukkit.inventory.meta.ItemMeta;
-
-import java.util.Objects;
-
-public class FlatteningWrapper14 implements FlatteningWrapper {
- @Override
- public DyeColor getSilver() {
- return DyeColor.LIGHT_GRAY;
- }
-
- @Override
- public boolean isWater(Block block) {
- if(block.getType() == Material.WATER)
- return true;
-
- BlockData data = block.getBlockData();
- if(!(data instanceof Waterlogged))
- return false;
-
- return ((Waterlogged) data).isWaterlogged();
- }
-
- @Override
- public boolean removeWater(Block block) {
- Material type = block.getType();
- if(type == Material.WATER || type == Material.LAVA){
- block.setType(Material.AIR);
- return true;
- }
-
- BlockData data = block.getBlockData();
- if(!(data instanceof Waterlogged))
- return false;
-
- Waterlogged waterlogged = (Waterlogged) data;
- if(waterlogged.isWaterlogged()){
- block.setType(Material.AIR);
- return true;
- }
-
- return false;
- }
-
- @Override
- public boolean containsBlockMeta(ItemMeta meta) {
- return meta instanceof BlockDataMeta && ((BlockDataMeta)meta).hasBlockData();
- }
-
- @Override
- public boolean hasAttributeModifier(ItemStack stack) {
- return stack.hasItemMeta() && Objects.requireNonNull(stack.getItemMeta()).hasAttributeModifiers();
- }
-
- @Override
- public boolean doRecord(BlockPhysicsEvent e) {
- return e.getBlock() == e.getSourceBlock() || e.getChangedType() == Material.AIR;
- }
-
- @Override
- public void forceLoadChunk(World world, int cX, int cZ) {
- world.setChunkForceLoaded(cX, cZ, true);
- }
-
- @Override
- public boolean checkPistonMoving(Block block) {
- return block.getType() == Material.MOVING_PISTON;
- }
-
- @Override
- public boolean isFacingWater(Block dispenser) {
- return dispenser.getRelative(((Dispenser) dispenser.getBlockData()).getFacing()).isLiquid();
- }
-
- @Override
- public boolean isCrouching(Player player) {
- return player.getPose() == Pose.SWIMMING;
- }
-
- @Override
- public void sendBlockChange(Player player, Block block, Material type) {
- player.sendBlockChange(block.getLocation(), type.createBlockData());
- }
-}
diff --git a/FightSystem/FightSystem_14/src/de/steamwar/fightsystem/utils/SWSound14.java b/FightSystem/FightSystem_14/src/de/steamwar/fightsystem/utils/SWSound14.java
deleted file mode 100644
index dcf5fd71..00000000
--- a/FightSystem/FightSystem_14/src/de/steamwar/fightsystem/utils/SWSound14.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-package de.steamwar.fightsystem.utils;
-
-import org.bukkit.Sound;
-
-public class SWSound14 implements SWSound.ISWSound {
- @Override
- public Sound getSound(SWSound sound) {
- switch(sound){
- case ENTITY_WITHER_DEATH:
- return Sound.ENTITY_WITHER_DEATH;
- case BLOCK_NOTE_BASS:
- return Sound.BLOCK_NOTE_BLOCK_BASS;
- case BLOCK_NOTE_PLING:
- return Sound.BLOCK_NOTE_BLOCK_PLING;
- case ENTITY_GENERIC_EXPLODE:
- return Sound.ENTITY_GENERIC_EXPLODE;
- default:
- return null;
- }
- }
-}
diff --git a/FightSystem/FightSystem_14/src/de/steamwar/fightsystem/utils/WorldeditWrapper14.java b/FightSystem/FightSystem_14/src/de/steamwar/fightsystem/utils/WorldeditWrapper14.java
deleted file mode 100644
index 4478100a..00000000
--- a/FightSystem/FightSystem_14/src/de/steamwar/fightsystem/utils/WorldeditWrapper14.java
+++ /dev/null
@@ -1,153 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-package de.steamwar.fightsystem.utils;
-
-import com.sk89q.jnbt.NBTInputStream;
-import com.sk89q.worldedit.EditSession;
-import com.sk89q.worldedit.WorldEdit;
-import com.sk89q.worldedit.WorldEditException;
-import com.sk89q.worldedit.bukkit.BukkitAdapter;
-import com.sk89q.worldedit.bukkit.BukkitWorld;
-import com.sk89q.worldedit.extent.clipboard.BlockArrayClipboard;
-import com.sk89q.worldedit.extent.clipboard.Clipboard;
-import com.sk89q.worldedit.extent.clipboard.io.*;
-import com.sk89q.worldedit.function.operation.ForwardExtentCopy;
-import com.sk89q.worldedit.function.operation.Operations;
-import com.sk89q.worldedit.math.BlockVector3;
-import com.sk89q.worldedit.math.Vector3;
-import com.sk89q.worldedit.math.transform.AffineTransform;
-import com.sk89q.worldedit.regions.CuboidRegion;
-import com.sk89q.worldedit.session.ClipboardHolder;
-import com.sk89q.worldedit.world.World;
-import com.sk89q.worldedit.world.block.BaseBlock;
-import com.sk89q.worldedit.world.block.BlockTypes;
-import de.steamwar.fightsystem.Config;
-import de.steamwar.fightsystem.FightSystem;
-import de.steamwar.sql.NodeData;
-import de.steamwar.sql.SchematicData;
-import de.steamwar.sql.SchematicNode;
-import org.bukkit.DyeColor;
-import org.bukkit.Location;
-import org.bukkit.util.Vector;
-
-import java.io.ByteArrayOutputStream;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Objects;
-import java.util.zip.GZIPInputStream;
-
-public class WorldeditWrapper14 implements WorldeditWrapper {
-
- private static final Map colorBlocks = new HashMap<>();
-
- static {
- colorBlocks.put(Objects.requireNonNull(BlockTypes.PINK_WOOL).getDefaultState().toBaseBlock(), "_wool");
- colorBlocks.put(Objects.requireNonNull(BlockTypes.PINK_TERRACOTTA).getDefaultState().toBaseBlock(), "_terracotta");
- colorBlocks.put(Objects.requireNonNull(BlockTypes.PINK_STAINED_GLASS).getDefaultState().toBaseBlock(), "_stained_glass");
- colorBlocks.put(Objects.requireNonNull(BlockTypes.PINK_STAINED_GLASS_PANE).getDefaultState().toBaseBlock(), "_stained_glass_pane");
- colorBlocks.put(Objects.requireNonNull(BlockTypes.PINK_CONCRETE).getDefaultState().toBaseBlock(), "_concrete");
- colorBlocks.put(Objects.requireNonNull(BlockTypes.PINK_CONCRETE_POWDER).getDefaultState().toBaseBlock(), "_concrete_powder");
- colorBlocks.put(Objects.requireNonNull(BlockTypes.PINK_CARPET).getDefaultState().toBaseBlock(), "_carpet");
- }
-
- @Override
- public void replaceTeamColor(Clipboard clipboard, DyeColor c) throws WorldEditException {
- BlockVector3 minimum = clipboard.getRegion().getMinimumPoint();
- Map replaceMap = new HashMap<>();
- colorBlocks.forEach((base, postfix) -> replaceMap.put(base, Objects.requireNonNull(BlockTypes.get(c.name().toLowerCase() + postfix)).getDefaultState().toBaseBlock()));
-
- for(int x = 0; x < clipboard.getDimensions().getX(); x++){
- for(int y = 0; y < clipboard.getDimensions().getY(); y++){
- for(int z = 0; z < clipboard.getDimensions().getZ(); z++){
- BlockVector3 pos = minimum.add(x, y, z);
- BaseBlock replacement = replaceMap.get(clipboard.getFullBlock(pos));
- if(replacement != null)
- clipboard.setBlock(pos, replacement);
- }
- }
- }
- }
-
- @Override
- public int getWaterDepth(Clipboard clipboard) {
- BlockVector3 it = clipboard.getMinimumPoint().add(0, 0, 1);
- int depth = 0;
- while(!clipboard.getBlock(it).getBlockType().getMaterial().isAir()){
- depth++;
- it = it.add(0, 1, 0);
- }
- return depth;
- }
-
- @Override
- public void pasteClipboard(Clipboard clipboard, Location position, Vector offset, AffineTransform aT) {
- EditSession e = WorldEdit.getInstance().getEditSessionFactory().getEditSession(new BukkitWorld(position.getWorld()), -1);
- ClipboardHolder ch = new ClipboardHolder(clipboard);
- ch.setTransform(aT);
- Operations.completeBlindly(ch.createPaste(e).to(BukkitAdapter.asVector(position).add(
- aT.apply(Vector3.at(offset.getX(), offset.getY(), offset.getZ()).add(clipboard.getOrigin().toVector3()).subtract(clipboard.getMinimumPoint().toVector3()))
- ).toBlockPoint()).build());
- e.flushSession();
- }
-
- @Override
- public Vector getDimensions(Clipboard clipboard) {
- BlockVector3 dims = clipboard.getDimensions();
- return new Vector(dims.getX(), dims.getY(), dims.getZ());
- }
-
- @Override
- public Clipboard loadChar(String charName) throws IOException {
- File file = new File(FightSystem.getPlugin().getDataFolder(), "text/" + charName + ".schem");
- Clipboard clipboard;
- try (ClipboardReader reader = Objects.requireNonNull(ClipboardFormats.findByFile(file)).getReader(new FileInputStream(file))) {
- clipboard = reader.read();
- }
- return clipboard;
- }
-
- @Override
- public void saveSchem(SchematicNode schem, Region region, int minY) throws WorldEditException {
- World w = new BukkitWorld(Config.world);
- BlockVector3 min = BlockVector3.at(region.getMinX(), minY, region.getMinZ());
- CuboidRegion cuboidRegion = new CuboidRegion(w, min, BlockVector3.at(region.getMaxX(), region.getMaxY(), region.getMaxZ()).subtract(BlockVector3.ONE));
- BlockArrayClipboard clipboard = new BlockArrayClipboard(cuboidRegion);
-
- ForwardExtentCopy forwardExtentCopy = new ForwardExtentCopy(
- WorldEdit.getInstance().getEditSessionFactory().getEditSession(w, -1), cuboidRegion, clipboard, min
- );
- forwardExtentCopy.setCopyingEntities(false);
- Operations.complete(forwardExtentCopy);
-
- ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
- try {
- ClipboardWriter writer = BuiltInClipboardFormat.SPONGE_SCHEMATIC.getWriter(outputStream);
- writer.write(clipboard);
- writer.close();
- } catch (IOException e) {
- throw new SecurityException(e);
- }
-
- SchematicData.saveFromBytes(schem, outputStream.toByteArray(), NodeData.SchematicFormat.SPONGE_V2);
- }
-}
diff --git a/FightSystem/FightSystem_15/build.gradle.kts b/FightSystem/FightSystem_15/build.gradle.kts
deleted file mode 100644
index a90121b6..00000000
--- a/FightSystem/FightSystem_15/build.gradle.kts
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-plugins {
- steamwar.java
-}
-
-dependencies {
- compileOnly(project(":SpigotCore", "default"))
- compileOnly(project(":FightSystem:FightSystem_Core", "default"))
-
- compileOnly(libs.nms15)
- compileOnly(libs.worldedit15)
-}
diff --git a/FightSystem/FightSystem_15/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper15.java b/FightSystem/FightSystem_15/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper15.java
deleted file mode 100644
index 617c8680..00000000
--- a/FightSystem/FightSystem_15/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper15.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-package de.steamwar.fightsystem.utils;
-
-import de.steamwar.fightsystem.Config;
-import de.steamwar.fightsystem.fight.FightWorld;
-import net.minecraft.server.v1_15_R1.Chunk;
-import org.bukkit.World;
-import org.bukkit.craftbukkit.v1_15_R1.CraftWorld;
-import org.bukkit.craftbukkit.v1_15_R1.entity.CraftEntity;
-import org.bukkit.entity.Entity;
-
-import java.util.stream.Stream;
-
-public class CraftbukkitWrapper15 implements CraftbukkitWrapper {
- @Override
- public void resetChunk(World world, World backup, int x, int z) {
- net.minecraft.server.v1_15_R1.World w = ((CraftWorld) world).getHandle();
- Chunk chunk = w.getChunkAt(x, z);
- Chunk backupChunk = ((CraftWorld) backup).getHandle().getChunkAt(x, z);
-
- System.arraycopy(backupChunk.getSections(), 0, chunk.getSections(), 0, chunk.getSections().length);
- w.tileEntityListTick.removeAll(chunk.tileEntities.values());
- if (!FightWorld.isPAPER()) {
- w.tileEntityList.removeAll(chunk.tileEntities.values());
- }
- chunk.tileEntities.clear();
- chunk.tileEntities.putAll(backupChunk.tileEntities);
- chunk.heightMap.clear();
- chunk.heightMap.putAll(backupChunk.heightMap);
- }
-
- @Override
- public float headRotation(Entity e) {
- return ((CraftEntity)e).getHandle().getHeadRotation();
- }
-
- @Override
- public Stream> entityIterator() {
- return ((CraftWorld) Config.world).getHandle().entitiesById.values().stream();
- }
-
- @Override
- public void setupGamerule() { }
-}
diff --git a/FightSystem/FightSystem_18/build.gradle.kts b/FightSystem/FightSystem_18/build.gradle.kts
deleted file mode 100644
index 363d7a4e..00000000
--- a/FightSystem/FightSystem_18/build.gradle.kts
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-plugins {
- steamwar.java
-}
-
-dependencies {
- compileOnly(project(":SpigotCore", "default"))
- compileOnly(project(":FightSystem:FightSystem_Core", "default"))
- compileOnly(project(":FightSystem:FightSystem_14", "default"))
-
- compileOnly(libs.spigotapi)
-
- compileOnly(libs.nms18)
- compileOnly(libs.fawe18)
-
- compileOnly(libs.authlib)
- compileOnly(libs.fastutil)
-}
diff --git a/FightSystem/FightSystem_18/src/de/steamwar/fightsystem/utils/BlockIdWrapper18.java b/FightSystem/FightSystem_18/src/de/steamwar/fightsystem/utils/BlockIdWrapper18.java
deleted file mode 100644
index b70a9d52..00000000
--- a/FightSystem/FightSystem_18/src/de/steamwar/fightsystem/utils/BlockIdWrapper18.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-package de.steamwar.fightsystem.utils;
-
-import com.comphenix.tinyprotocol.TinyProtocol;
-import com.mojang.authlib.GameProfile;
-import de.steamwar.core.ProtocolWrapper;
-import de.steamwar.fightsystem.FightSystem;
-import org.bukkit.GameMode;
-import org.bukkit.entity.Entity;
-import org.bukkit.entity.Player;
-
-public class BlockIdWrapper18 extends BlockIdWrapper14 {
-
- @Override
- public void trackEntity(Player player, Entity entity) {
- if(entity instanceof Player)
- TinyProtocol.instance.sendPacket(player, ProtocolWrapper.impl.playerInfoPacketConstructor(ProtocolWrapper.PlayerInfoAction.REMOVE, new GameProfile(entity.getUniqueId(), entity.getName()), GameMode.CREATIVE));
-
- player.showEntity(FightSystem.getPlugin(), entity);
- }
-
- @Override
- public void untrackEntity(Player player, Entity entity) {
- player.hideEntity(FightSystem.getPlugin(), entity);
-
- if(entity instanceof Player)
- TinyProtocol.instance.sendPacket(player, ProtocolWrapper.impl.playerInfoPacketConstructor(ProtocolWrapper.PlayerInfoAction.ADD, new GameProfile(entity.getUniqueId(), entity.getName()), GameMode.CREATIVE));
- }
-}
diff --git a/FightSystem/FightSystem_18/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper18.java b/FightSystem/FightSystem_18/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper18.java
deleted file mode 100644
index 762e909e..00000000
--- a/FightSystem/FightSystem_18/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper18.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-package de.steamwar.fightsystem.utils;
-
-import de.steamwar.Reflection;
-import de.steamwar.fightsystem.Config;
-import net.minecraft.server.level.WorldServer;
-import net.minecraft.world.level.chunk.Chunk;
-import net.minecraft.world.level.chunk.ChunkSection;
-import net.minecraft.world.level.entity.LevelEntityGetter;
-import org.bukkit.World;
-import org.bukkit.entity.Entity;
-
-import java.util.stream.Stream;
-import java.util.stream.StreamSupport;
-
-public class CraftbukkitWrapper18 implements CraftbukkitWrapper {
-
- private static final Reflection.Method getWorld = Reflection.getMethod(Reflection.getClass("org.bukkit.craftbukkit.CraftWorld"), "getHandle");
- private static final Reflection.Method getChunk = Reflection.getTypedMethod(net.minecraft.world.level.World.class, null, Chunk.class, int.class, int.class);
- private static final Reflection.Method getChunkSections = Reflection.getTypedMethod(Chunk.class, null, ChunkSection[].class);
- private ChunkSection[] getChunkSections(World world, int x, int z) {
- return (ChunkSection[]) getChunkSections.invoke(getChunk.invoke(getWorld.invoke(world), x, z));
- }
-
- @Override
- public void resetChunk(World world, World backup, int x, int z) {
- ChunkSection[] sections = getChunkSections(world, x, z);
- System.arraycopy(getChunkSections(backup, x, z), 0, sections, 0, sections.length);
- }
-
- private static final Reflection.Method getEntity = Reflection.getTypedMethod(Reflection.getClass("org.bukkit.craftbukkit.entity.CraftEntity"), "getHandle", net.minecraft.world.entity.Entity.class);
- protected net.minecraft.world.entity.Entity getEntity(Entity e) {
- return (net.minecraft.world.entity.Entity) getEntity.invoke(e);
- }
-
- @Override
- public float headRotation(Entity e) {
- return getEntity(e).ce();
- }
-
- private static final Reflection.Method getWorldEntities = Reflection.getTypedMethod(WorldServer.class, null, LevelEntityGetter.class);
- private static final Reflection.Method getIterable = Reflection.getTypedMethod(LevelEntityGetter.class, null, Iterable.class);
- @Override
- public Stream> entityIterator() {
- return StreamSupport.stream(((Iterable>) getIterable.invoke(getWorldEntities.invoke(getWorld.invoke(Config.world)))).spliterator(), false);
- }
-
- @Override
- public void setupGamerule() { }
-}
diff --git a/FightSystem/FightSystem_18/src/de/steamwar/fightsystem/utils/HullHiderWrapper18.java b/FightSystem/FightSystem_18/src/de/steamwar/fightsystem/utils/HullHiderWrapper18.java
deleted file mode 100644
index ddc01fa9..00000000
--- a/FightSystem/FightSystem_18/src/de/steamwar/fightsystem/utils/HullHiderWrapper18.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-package de.steamwar.fightsystem.utils;
-
-import de.steamwar.Reflection;
-import de.steamwar.fightsystem.Config;
-import it.unimi.dsi.fastutil.shorts.Short2ObjectArrayMap;
-import net.minecraft.core.BlockPosition;
-import net.minecraft.core.SectionPosition;
-import net.minecraft.network.protocol.game.PacketPlayOutBlockChange;
-import net.minecraft.network.protocol.game.PacketPlayOutMultiBlockChange;
-import net.minecraft.world.level.block.state.IBlockData;
-
-import java.util.List;
-
-
-public class HullHiderWrapper18 implements HullHiderWrapper {
-
- private static final Reflection.Method getState = Reflection.getTypedMethod(Reflection.getClass("org.bukkit.craftbukkit.block.data.CraftBlockData"), "getState", IBlockData.class);
- @Override
- public Object generateBlockChangePacket(List changes) {
- Object[] blockdata = new Object[changes.size()];
- for(int i = 0; i < blockdata.length; i++) {
- Hull.IntVector change = changes.get(i);
- blockdata[i] = getState.invoke(Config.world.getBlockData(change.getX(), change.getY(), change.getZ()));
- }
-
- return generateBlockChangePacket(changes, blockdata);
- }
-
- private Object generateBlockChangePacket(List changes, Object[] blockdata) {
- if(changes.size() > 1) {
- Hull.IntVector section = changes.get(0);
- section = new Hull.IntVector(section.getX() >> 4, section.getY() >> 4, section.getZ() >> 4);
- int xOffset = 16*section.getX();
- int yOffset = 16*section.getY();
- int zOffset = 16*section.getZ();
-
- short[] pos = new short[changes.size()];
- for(int i = 0; i < changes.size(); i++) {
- Hull.IntVector change = changes.get(i);
-
- pos[i] = (short) (((change.getX()-xOffset) << 8) + ((change.getZ()-zOffset) << 4) + (change.getY()-yOffset));
- }
-
- return constructMultiBlockChange(section, pos, blockdata);
- } else {
- Hull.IntVector pos = changes.get(0);
- return new PacketPlayOutBlockChange(new BlockPosition(pos.getX(), pos.getY(), pos.getZ()), (IBlockData) blockdata[0]);
- }
- }
-
- protected Object constructMultiBlockChange(Hull.IntVector section, short[] pos, Object[] blockdata) {
- return new PacketPlayOutMultiBlockChange(SectionPosition.a(section.getX(), section.getY(), section.getZ()), new Short2ObjectArrayMap<>(pos, blockdata, blockdata.length), false);
- }
-}
diff --git a/FightSystem/FightSystem_19/build.gradle.kts b/FightSystem/FightSystem_19/build.gradle.kts
deleted file mode 100644
index a8811e9d..00000000
--- a/FightSystem/FightSystem_19/build.gradle.kts
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-plugins {
- steamwar.java
-}
-
-dependencies {
- compileOnly(project(":FightSystem:FightSystem_Core", "default"))
- compileOnly(project(":FightSystem:FightSystem_18", "default"))
-
- compileOnly(libs.spigotapi)
-
- compileOnly(libs.nms19)
-}
diff --git a/FightSystem/FightSystem_19/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper19.java b/FightSystem/FightSystem_19/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper19.java
deleted file mode 100644
index e00428a3..00000000
--- a/FightSystem/FightSystem_19/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper19.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-package de.steamwar.fightsystem.utils;
-
-import org.bukkit.entity.Entity;
-
-public class CraftbukkitWrapper19 extends CraftbukkitWrapper18 {
-
- @Override
- public float headRotation(Entity e) {
- return getEntity(e).ck();
- }
-}
diff --git a/FightSystem/FightSystem_20/build.gradle.kts b/FightSystem/FightSystem_20/build.gradle.kts
deleted file mode 100644
index 71c024b1..00000000
--- a/FightSystem/FightSystem_20/build.gradle.kts
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-plugins {
- steamwar.java
-}
-
-dependencies {
- compileOnly(project(":FightSystem:FightSystem_Core", "default"))
- compileOnly(project(":FightSystem:FightSystem_18", "default"))
-
- compileOnly(libs.spigotapi)
-
- compileOnly(libs.nms20)
-
- compileOnly(libs.fastutil)
-}
diff --git a/FightSystem/FightSystem_20/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper20.java b/FightSystem/FightSystem_20/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper20.java
deleted file mode 100644
index 0bad44a2..00000000
--- a/FightSystem/FightSystem_20/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper20.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-package de.steamwar.fightsystem.utils;
-
-import org.bukkit.entity.Entity;
-
-public class CraftbukkitWrapper20 extends CraftbukkitWrapper18 {
-
- @Override
- public float headRotation(Entity e) {
- return getEntity(e).cm();
- }
-}
diff --git a/FightSystem/FightSystem_20/src/de/steamwar/fightsystem/utils/HullHiderWrapper20.java b/FightSystem/FightSystem_20/src/de/steamwar/fightsystem/utils/HullHiderWrapper20.java
deleted file mode 100644
index 56262ab0..00000000
--- a/FightSystem/FightSystem_20/src/de/steamwar/fightsystem/utils/HullHiderWrapper20.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-package de.steamwar.fightsystem.utils;
-
-import it.unimi.dsi.fastutil.shorts.Short2ObjectArrayMap;
-import net.minecraft.core.SectionPosition;
-import net.minecraft.network.protocol.game.PacketPlayOutMultiBlockChange;
-
-public class HullHiderWrapper20 extends HullHiderWrapper18 {
-
- @Override
- protected Object constructMultiBlockChange(Hull.IntVector section, short[] pos, Object[] blockdata) {
- return new PacketPlayOutMultiBlockChange(SectionPosition.a(section.getX(), section.getY(), section.getZ()), new Short2ObjectArrayMap<>(pos, blockdata, blockdata.length));
- }
-}
diff --git a/FightSystem/FightSystem_21/build.gradle.kts b/FightSystem/FightSystem_21/build.gradle.kts
deleted file mode 100644
index 6de2b25a..00000000
--- a/FightSystem/FightSystem_21/build.gradle.kts
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-plugins {
- steamwar.java
-}
-
-dependencies {
- compileOnly(project(":FightSystem:FightSystem_Core", "default"))
- compileOnly(project(":FightSystem:FightSystem_18", "default"))
- compileOnly(project(":SpigotCore", "default"))
-
- compileOnly(libs.paperapi21) {
- attributes {
- // Very Hacky, but it works
- attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 21)
- }
- }
-
- compileOnly(libs.nms21) {
- attributes {
- // Very Hacky, but it works
- attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 21)
- }
- }
-
- compileOnly(libs.fastutil)
- compileOnly(libs.authlib)
- compileOnly(project(":FightSystem:FightSystem_14"))
-}
diff --git a/FightSystem/FightSystem_21/src/de/steamwar/fightsystem/listener/WindchargeStopper21.java b/FightSystem/FightSystem_21/src/de/steamwar/fightsystem/listener/WindchargeStopper21.java
deleted file mode 100644
index 892312f6..00000000
--- a/FightSystem/FightSystem_21/src/de/steamwar/fightsystem/listener/WindchargeStopper21.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-package de.steamwar.fightsystem.listener;
-
-import de.steamwar.fightsystem.Config;
-import de.steamwar.fightsystem.states.FightState;
-import de.steamwar.fightsystem.states.StateDependentTask;
-import net.minecraft.world.entity.projectile.windcharge.WindCharge;
-import org.bukkit.Location;
-
-public class WindchargeStopper21 implements WindchargeStopper.IWindchargeStopper {
-
- public WindchargeStopper21() {
- new StateDependentTask(true, FightState.Running, this::run, 1, 1);
- }
-
- private static final int middleLine = Config.SpecSpawn.getBlockZ();
-
- private static final Class> windChargeClass = WindCharge.class;
-
- private void run() {
- Recording.iterateOverEntities(windChargeClass::isInstance, entity -> {
- Location location = entity.getLocation();
- Location prevLocation = location.clone().subtract(entity.getVelocity());
-
- boolean passedMiddle = location.getBlockZ() > middleLine && prevLocation.getBlockZ() > middleLine ||
- location.getBlockZ() < middleLine && prevLocation.getBlockZ() < middleLine;
-
- if(!passedMiddle) {
- entity.remove();
- }
- });
- }
-}
diff --git a/FightSystem/FightSystem_21/src/de/steamwar/fightsystem/utils/BlockIdWrapper21.java b/FightSystem/FightSystem_21/src/de/steamwar/fightsystem/utils/BlockIdWrapper21.java
deleted file mode 100644
index 105bbe36..00000000
--- a/FightSystem/FightSystem_21/src/de/steamwar/fightsystem/utils/BlockIdWrapper21.java
+++ /dev/null
@@ -1,77 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-package de.steamwar.fightsystem.utils;
-
-import com.comphenix.tinyprotocol.TinyProtocol;
-import com.mojang.authlib.GameProfile;
-import de.steamwar.core.ProtocolWrapper;
-import de.steamwar.fightsystem.FightSystem;
-import net.minecraft.core.BlockPos;
-import net.minecraft.server.level.ServerLevel;
-import net.minecraft.world.level.block.state.BlockState;
-import org.bukkit.GameMode;
-import org.bukkit.Material;
-import org.bukkit.World;
-import org.bukkit.block.Block;
-import org.bukkit.craftbukkit.CraftWorld;
-import org.bukkit.craftbukkit.block.CraftBlockState;
-import org.bukkit.craftbukkit.util.CraftMagicNumbers;
-import org.bukkit.entity.Entity;
-import org.bukkit.entity.Player;
-
-public class BlockIdWrapper21 implements BlockIdWrapper {
-
- @Override
- public Material idToMaterial(int blockState) {
- return CraftMagicNumbers.getMaterial(net.minecraft.world.level.block.Block.stateById(blockState)).getItemType();
- }
-
- @Override
- public int blockToId(Block block) {
- return net.minecraft.world.level.block.Block.getId(((CraftBlockState) block.getState()).getHandle());
- }
-
- @Override
- public void setBlock(World world, int x, int y, int z, int blockState) {
- BlockState blockData = net.minecraft.world.level.block.Block.stateById(blockState);
- ServerLevel level = ((CraftWorld) world).getHandle();
- BlockPos pos = new BlockPos(x, y, z);
-
- level.removeBlockEntity(pos);
- level.setBlock(pos, blockData, blockState);
- level.getChunkSource().blockChanged(pos);
- }
-
- @Override
- public void trackEntity(Player player, Entity entity) {
- if(entity instanceof Player)
- TinyProtocol.instance.sendPacket(player, ProtocolWrapper.impl.playerInfoPacketConstructor(ProtocolWrapper.PlayerInfoAction.REMOVE, new GameProfile(entity.getUniqueId(), entity.getName()), GameMode.CREATIVE));
-
- player.showEntity(FightSystem.getPlugin(), entity);
- }
-
- @Override
- public void untrackEntity(Player player, Entity entity) {
- player.hideEntity(FightSystem.getPlugin(), entity);
-
- if(entity instanceof Player)
- TinyProtocol.instance.sendPacket(player, ProtocolWrapper.impl.playerInfoPacketConstructor(ProtocolWrapper.PlayerInfoAction.ADD, new GameProfile(entity.getUniqueId(), entity.getName()), GameMode.CREATIVE));
- }
-}
diff --git a/FightSystem/FightSystem_21/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper21.java b/FightSystem/FightSystem_21/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper21.java
deleted file mode 100644
index 113f28c0..00000000
--- a/FightSystem/FightSystem_21/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper21.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-package de.steamwar.fightsystem.utils;
-
-import de.steamwar.fightsystem.Config;
-import net.minecraft.core.BlockPos;
-import net.minecraft.world.level.chunk.LevelChunk;
-import net.minecraft.world.level.chunk.LevelChunkSection;
-import org.bukkit.GameRule;
-import org.bukkit.World;
-import org.bukkit.craftbukkit.CraftWorld;
-import org.bukkit.entity.Entity;
-
-import java.util.HashSet;
-import java.util.Set;
-
-public class CraftbukkitWrapper21 extends CraftbukkitWrapper18 {
-
- @Override
- public float headRotation(Entity e) {
- return getEntity(e).getYHeadRot();
- }
-
- @Override
- public void setupGamerule() {
- Config.world.setGameRule(GameRule.LOCATOR_BAR, false);
- }
-
- private LevelChunk getChunk(World world, int x, int z) {
- return ((CraftWorld) world).getHandle().getChunk(x, z);
- }
-
- @Override
- public void resetChunk(World world, World backup, int x, int z) {
- LevelChunk worldChunk = getChunk(world, x, z);
- LevelChunk backupChunk = getChunk(backup, x, z);
- LevelChunkSection[] sections = worldChunk.getSections();
- System.arraycopy(backupChunk.getSections(), 0, sections, 0, sections.length);
- Set blocks = new HashSet<>(worldChunk.blockEntities.keySet());
- blocks.stream().filter(key -> !backupChunk.blockEntities.containsKey(key)).forEach(worldChunk::removeBlockEntity);
- worldChunk.heightmaps.clear();
- worldChunk.heightmaps.putAll(backupChunk.heightmaps);
- }
-}
diff --git a/FightSystem/FightSystem_21/src/de/steamwar/fightsystem/utils/FlatteningWrapper21.java b/FightSystem/FightSystem_21/src/de/steamwar/fightsystem/utils/FlatteningWrapper21.java
deleted file mode 100644
index ad535a6c..00000000
--- a/FightSystem/FightSystem_21/src/de/steamwar/fightsystem/utils/FlatteningWrapper21.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-package de.steamwar.fightsystem.utils;
-
-import org.bukkit.inventory.ItemStack;
-
-public class FlatteningWrapper21 extends FlatteningWrapper14 {
- @Override
- public boolean hasAttributeModifier(ItemStack stack) {
- return stack.hasItemMeta() && stack.getItemMeta() != null && stack.getItemMeta().hasAttributeModifiers();
- }
-}
diff --git a/FightSystem/FightSystem_21/src/de/steamwar/fightsystem/utils/ReflectionWrapper21.java b/FightSystem/FightSystem_21/src/de/steamwar/fightsystem/utils/ReflectionWrapper21.java
deleted file mode 100644
index 8e38938e..00000000
--- a/FightSystem/FightSystem_21/src/de/steamwar/fightsystem/utils/ReflectionWrapper21.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-package de.steamwar.fightsystem.utils;
-
-import io.papermc.paper.datacomponent.DataComponentType;
-import io.papermc.paper.datacomponent.DataComponentTypes;
-import org.bukkit.entity.Player;
-import org.bukkit.inventory.ItemStack;
-
-import java.util.HashSet;
-import java.util.Set;
-
-public class ReflectionWrapper21 implements ReflectionWrapper {
- private static final Set FORBIDDEN_TYPES = new HashSet<>();
-
- static {
- FORBIDDEN_TYPES.add(DataComponentTypes.CUSTOM_NAME);
- FORBIDDEN_TYPES.add(DataComponentTypes.PROFILE);
- FORBIDDEN_TYPES.add(DataComponentTypes.UNBREAKABLE);
- FORBIDDEN_TYPES.add(DataComponentTypes.BLOCK_DATA);
- FORBIDDEN_TYPES.add(DataComponentTypes.BLOCKS_ATTACKS);
- FORBIDDEN_TYPES.add(DataComponentTypes.BUNDLE_CONTENTS);
- FORBIDDEN_TYPES.add(DataComponentTypes.CUSTOM_MODEL_DATA);
-
- FORBIDDEN_TYPES.add(DataComponentTypes.ATTRIBUTE_MODIFIERS);
- FORBIDDEN_TYPES.add(DataComponentTypes.TOOL);
- FORBIDDEN_TYPES.add(DataComponentTypes.WEAPON);
- FORBIDDEN_TYPES.add(DataComponentTypes.FOOD);
- FORBIDDEN_TYPES.add(DataComponentTypes.CONSUMABLE);
- FORBIDDEN_TYPES.add(DataComponentTypes.POTION_CONTENTS);
- FORBIDDEN_TYPES.add(DataComponentTypes.STORED_ENCHANTMENTS);
- FORBIDDEN_TYPES.add(DataComponentTypes.CAN_BREAK);
- FORBIDDEN_TYPES.add(DataComponentTypes.CAN_PLACE_ON);
- FORBIDDEN_TYPES.add(DataComponentTypes.MAX_DAMAGE);
- FORBIDDEN_TYPES.add(DataComponentTypes.USE_REMAINDER);
- FORBIDDEN_TYPES.add(DataComponentTypes.USE_COOLDOWN);
- FORBIDDEN_TYPES.add(DataComponentTypes.SUSPICIOUS_STEW_EFFECTS);
- FORBIDDEN_TYPES.add(DataComponentTypes.CHARGED_PROJECTILES);
- FORBIDDEN_TYPES.add(DataComponentTypes.INTANGIBLE_PROJECTILE);
- FORBIDDEN_TYPES.add(DataComponentTypes.FIREWORKS);
- FORBIDDEN_TYPES.add(DataComponentTypes.FIREWORK_EXPLOSION);
- FORBIDDEN_TYPES.add(DataComponentTypes.EQUIPPABLE);
- FORBIDDEN_TYPES.add(DataComponentTypes.REPAIR_COST);
- FORBIDDEN_TYPES.add(DataComponentTypes.ENCHANTABLE);
- }
-
- @Override
- public Object explosionHider(Player player, Object packet, PacketHiderFunction packetHiderFunction) {
- return packet;
- }
-
- @Override
- public boolean hasItems(ItemStack stack) {
- FORBIDDEN_TYPES.forEach(stack::resetData);
- return false;
- }
-}
diff --git a/FightSystem/FightSystem_21/src/de/steamwar/fightsystem/utils/TpsWarper21.java b/FightSystem/FightSystem_21/src/de/steamwar/fightsystem/utils/TpsWarper21.java
deleted file mode 100644
index 94e8d5d6..00000000
--- a/FightSystem/FightSystem_21/src/de/steamwar/fightsystem/utils/TpsWarper21.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package de.steamwar.fightsystem.utils;
-
-import net.minecraft.server.MinecraftServer;
-
-public class TpsWarper21 implements TpsWarper {
-
- @Override
- public void warp(float tps) {
- MinecraftServer.getServer().tickRateManager().setTickRate(tps);
- }
-}
diff --git a/FightSystem/FightSystem_8/build.gradle.kts b/FightSystem/FightSystem_8/build.gradle.kts
deleted file mode 100644
index ff60010d..00000000
--- a/FightSystem/FightSystem_8/build.gradle.kts
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-plugins {
- steamwar.java
-}
-
-dependencies {
- compileOnly(project(":SpigotCore", "default"))
- compileOnly(project(":FightSystem:FightSystem_Core", "default"))
-
- compileOnly(libs.nms8)
- compileOnly(libs.worldedit12)
-}
diff --git a/FightSystem/FightSystem_8/src/de/steamwar/fightsystem/listener/WindchargeStopper8.java b/FightSystem/FightSystem_8/src/de/steamwar/fightsystem/listener/WindchargeStopper8.java
deleted file mode 100644
index 74f769c5..00000000
--- a/FightSystem/FightSystem_8/src/de/steamwar/fightsystem/listener/WindchargeStopper8.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-package de.steamwar.fightsystem.listener;
-
-public class WindchargeStopper8 implements WindchargeStopper.IWindchargeStopper {
-}
diff --git a/FightSystem/FightSystem_8/src/de/steamwar/fightsystem/utils/BlockIdWrapper8.java b/FightSystem/FightSystem_8/src/de/steamwar/fightsystem/utils/BlockIdWrapper8.java
deleted file mode 100644
index 9f0687e7..00000000
--- a/FightSystem/FightSystem_8/src/de/steamwar/fightsystem/utils/BlockIdWrapper8.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-package de.steamwar.fightsystem.utils;
-
-import de.steamwar.Reflection;
-import de.steamwar.fightsystem.Config;
-import org.bukkit.Material;
-import org.bukkit.World;
-import org.bukkit.block.Block;
-import org.bukkit.entity.Entity;
-import org.bukkit.entity.Player;
-
-public class BlockIdWrapper8 implements BlockIdWrapper {
-
- private static final Class> entityTracker = Reflection.getClass("net.minecraft.EntityTracker");
- private static final Reflection.Field> getEntityTracker = Reflection.getField(worldServer, entityTracker, 0);
- private static final Class> intHashMap = Reflection.getClass("net.minecraft.IntHashMap");
- private static final Reflection.Field> getTrackedEntities = Reflection.getField(entityTracker, intHashMap, 0);
-
- private final Object trackers;
- public BlockIdWrapper8() {
- trackers = getTrackedEntities.get(getEntityTracker.get(getWorldHandle.invoke(Config.world)));
- }
-
- @Override
- @SuppressWarnings("deprecation")
- public int blockToId(Block block) {
- return block.getTypeId() << 4 + block.getData();
- }
-
- @Override
- @SuppressWarnings("deprecation")
- public void setBlock(World world, int x, int y, int z, int blockState) {
- if((blockState >> 4) > 256) // Illegal blockstate / corrupted replay
- blockState = 0;
-
- world.getBlockAt(x, y, z).setTypeIdAndData(blockState >> 4, (byte)(blockState & 0b1111), false);
- }
-
- private static final Class> entityTrackerEntry = Reflection.getClass("net.minecraft.EntityTrackerEntry");
- private static final Reflection.Method get = Reflection.getTypedMethod(intHashMap, "get", Object.class, int.class);
- private static final Reflection.Method updatePlayer = Reflection.getMethod(entityTrackerEntry, "updatePlayer", entityPlayer);
- @Override
- public void trackEntity(Player player, Entity entity) {
- Object tracker = get.invoke(trackers, entity.getEntityId());
- if(tracker != null)
- updatePlayer.invoke(tracker, getPlayer.invoke(player));
- }
-
- private static final Reflection.Method clearPlayer = Reflection.getMethod(entityTrackerEntry, "a", entityPlayer);
- @Override
- public void untrackEntity(Player player, Entity entity) {
- Object tracker = get.invoke(trackers, entity.getEntityId());
- if(tracker != null)
- clearPlayer.invoke(tracker, getPlayer.invoke(player));
- }
-
- @Override
- @SuppressWarnings("deprecation")
- public Material idToMaterial(int blockState) {
- if((blockState >> 4) > 256) // Illegal blockstate / corrupted replay
- blockState = 0;
-
- return Material.getMaterial(blockState >> 4);
- }
-}
diff --git a/FightSystem/FightSystem_8/src/de/steamwar/fightsystem/utils/BountifulWrapper8.java b/FightSystem/FightSystem_8/src/de/steamwar/fightsystem/utils/BountifulWrapper8.java
deleted file mode 100644
index b4fa5886..00000000
--- a/FightSystem/FightSystem_8/src/de/steamwar/fightsystem/utils/BountifulWrapper8.java
+++ /dev/null
@@ -1,116 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-package de.steamwar.fightsystem.utils;
-
-import de.steamwar.fightsystem.Config;
-import de.steamwar.fightsystem.fight.FightTeam;
-import de.steamwar.fightsystem.listener.Recording;
-import de.steamwar.fightsystem.record.GlobalRecorder;
-import net.minecraft.server.v1_8_R3.DataWatcher;
-import net.minecraft.server.v1_8_R3.EntityEnderDragon;
-import net.minecraft.server.v1_8_R3.PacketPlayOutEntityMetadata;
-import net.minecraft.server.v1_8_R3.PacketPlayOutSpawnEntityLiving;
-import org.bukkit.Effect;
-import org.bukkit.Location;
-import org.bukkit.Material;
-import org.bukkit.World;
-import org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer;
-import org.bukkit.entity.Player;
-import org.bukkit.event.Listener;
-import org.bukkit.scoreboard.Team;
-
-import java.util.HashSet;
-import java.util.Set;
-
-public class BountifulWrapper8 implements BountifulWrapper {
-
- public BountifulWrapper8() {
- EntityEnderDragon dragon = new EntityEnderDragon(null);
- dragon.setLocation(Config.ArenaRegion.centerX(), -100, Config.ArenaRegion.centerZ(), 0, 0);
- this.spawnDragonId = dragon.getId();
- this.spawnDragon = new PacketPlayOutSpawnEntityLiving(dragon);
- }
-
- @Override
- public boolean mainHand(Object packet) {
- return true;
- }
-
- @Override
- public boolean bowInHand(boolean mainHand, Player p) {
- return p.getInventory().getItemInHand().getType() == Material.BOW;
- }
-
- @Override
- public void setAttackSpeed(Player player) {
- // nothing to do
- }
-
- @Override
- public void setNametagVisibility(Team team) {
- //nothing to do
- }
-
- @Override
- public Listener newDenyArrowPickupListener() {
- return new Listener() {};
- }
-
- @Override
- public Listener newDenyHandSwapListener() {
- return new Listener() {};
- }
-
- @Override
- public void recordHandItems(Player player) {
- GlobalRecorder.getInstance().item(player, Recording.disarmNull(player.getInventory().getItemInHand()), "MAINHAND");
- }
-
- @Override
- public Listener newHandSwapRecorder() {
- return new Listener() {};
- }
-
- @Override
- public void spawnParticle(World world, String particleName, double x, double y, double z) {
- world.playEffect(new Location(world, x, y, z), Effect.valueOf(particleName), 1);
- }
-
- private final Set seesDragon = new HashSet<>();
- private final PacketPlayOutSpawnEntityLiving spawnDragon;
- private final int spawnDragonId;
- @Override
- public void sendBar(Player player, FightTeam team, double progress, String text) {
- seesDragon.removeIf(p -> !p.isOnline());
-
- if(!seesDragon.contains(player)) {
- ((CraftPlayer)player).getHandle().playerConnection.sendPacket(spawnDragon);
- seesDragon.add(player);
- }
-
- DataWatcher watcher = new DataWatcher(null);
- watcher.a(0, (byte) 0x20);
- watcher.a(2, text);
- watcher.a(3, (byte) 1);
- watcher.a(4, (byte) 1);
- watcher.a(6, (float)(progress * 200));
- ((CraftPlayer) player).getHandle().playerConnection.sendPacket(new PacketPlayOutEntityMetadata(spawnDragonId, watcher, true));
- }
-}
diff --git a/FightSystem/FightSystem_8/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper8.java b/FightSystem/FightSystem_8/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper8.java
deleted file mode 100644
index f431d71d..00000000
--- a/FightSystem/FightSystem_8/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper8.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-package de.steamwar.fightsystem.utils;
-
-import de.steamwar.fightsystem.Config;
-import net.minecraft.server.v1_8_R3.Chunk;
-import org.bukkit.World;
-import org.bukkit.craftbukkit.v1_8_R3.CraftWorld;
-import org.bukkit.craftbukkit.v1_8_R3.entity.CraftEntity;
-import org.bukkit.entity.Entity;
-
-import java.util.stream.Stream;
-
-public class CraftbukkitWrapper8 implements CraftbukkitWrapper {
- @Override
- public void resetChunk(World world, World backup, int x, int z) {
- net.minecraft.server.v1_8_R3.World w = ((CraftWorld) world).getHandle();
- Chunk chunk = w.getChunkAt(x, z);
- ((CraftWorld) backup).getHandle().chunkProviderServer.forceChunkLoad = true;
- Chunk backupChunk = ((CraftWorld) backup).getHandle().getChunkAt(x, z);
-
- System.arraycopy(backupChunk.getSections(), 0, chunk.getSections(), 0, chunk.getSections().length);
- System.arraycopy(backupChunk.heightMap, 0, chunk.heightMap, 0, chunk.heightMap.length);
- w.tileEntityList.removeAll(chunk.tileEntities.values());
- chunk.tileEntities.clear();
- chunk.tileEntities.putAll(backupChunk.tileEntities);
- }
-
- @Override
- public float headRotation(Entity e) {
- return ((CraftEntity)e).getHandle().getHeadRotation();
- }
-
- @Override
- public Stream> entityIterator() {
- return ((CraftWorld) Config.world).getHandle().entityList.stream();
- }
-
- @Override
- public void setupGamerule() { }
-}
diff --git a/FightSystem/FightSystem_8/src/de/steamwar/fightsystem/utils/FlatteningWrapper8.java b/FightSystem/FightSystem_8/src/de/steamwar/fightsystem/utils/FlatteningWrapper8.java
deleted file mode 100644
index 0c6c7c9f..00000000
--- a/FightSystem/FightSystem_8/src/de/steamwar/fightsystem/utils/FlatteningWrapper8.java
+++ /dev/null
@@ -1,92 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-package de.steamwar.fightsystem.utils;
-
-import org.bukkit.DyeColor;
-import org.bukkit.Material;
-import org.bukkit.World;
-import org.bukkit.block.Block;
-import org.bukkit.entity.Player;
-import org.bukkit.event.block.BlockPhysicsEvent;
-import org.bukkit.inventory.ItemStack;
-import org.bukkit.inventory.meta.ItemMeta;
-
-public class FlatteningWrapper8 implements FlatteningWrapper {
- @Override
- public DyeColor getSilver() {
- return DyeColor.SILVER;
- }
-
- @Override
- public boolean isWater(Block block) {
- Material type = block.getType();
- return type == Material.WATER || type == Material.STATIONARY_WATER || type == Material.LAVA || type == Material.STATIONARY_LAVA;
- }
-
- @Override
- public boolean removeWater(Block block) {
- if(isWater(block)){
- block.setType(Material.AIR);
- return true;
- }
- return false;
- }
-
- @Override
- public boolean containsBlockMeta(ItemMeta meta) {
- return false;
- }
-
- @Override
- public boolean hasAttributeModifier(ItemStack stack) {
- return false;
- }
-
- @Override
- public boolean doRecord(BlockPhysicsEvent e) {
- return e.getChangedType() != e.getBlock().getType();
- }
-
- @Override
- public void forceLoadChunk(World world, int cX, int cZ) {
- world.setKeepSpawnInMemory(true);
- }
-
- @Override
- public boolean checkPistonMoving(Block block) {
- return block.getType() == Material.PISTON_MOVING_PIECE;
- }
-
- @Override
- public boolean isFacingWater(Block dispenser) {
- return false;
- }
-
- @Override
- public boolean isCrouching(Player player) {
- return false;
- }
-
- @Override
- @SuppressWarnings("deprecation")
- public void sendBlockChange(Player player, Block block, Material type) {
- player.sendBlockChange(block.getLocation(), type, (byte)0);
- }
-}
diff --git a/FightSystem/FightSystem_8/src/de/steamwar/fightsystem/utils/HullHiderWrapper8.java b/FightSystem/FightSystem_8/src/de/steamwar/fightsystem/utils/HullHiderWrapper8.java
deleted file mode 100644
index 0c2716f3..00000000
--- a/FightSystem/FightSystem_8/src/de/steamwar/fightsystem/utils/HullHiderWrapper8.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-package de.steamwar.fightsystem.utils;
-
-import de.steamwar.Reflection;
-import de.steamwar.fightsystem.Config;
-
-import java.util.List;
-
-public class HullHiderWrapper8 implements HullHiderWrapper {
-
- private static final Reflection.Constructor newMultiBlockChange = Reflection.getConstructor("net.minecraft.PacketPlayOutMultiBlockChange", int.class, short[].class, Reflection.getClass("net.minecraft.Chunk"));
- private static final Reflection.Method getHandle = Reflection.getMethod("org.bukkit.craftbukkit.CraftChunk", "getHandle");
- @Override
- public Object generateBlockChangePacket(List changes) {
- Hull.IntVector chunk = changes.get(0);
- chunk = new Hull.IntVector(chunk.getX() >> 4, chunk.getY() >> 4, chunk.getZ() >> 4);
- int xOffset = 16*chunk.getX();
- int zOffset = 16*chunk.getZ();
- short[] pos = new short[changes.size()];
-
- for(int i = 0; i < changes.size(); i++) {
- Hull.IntVector change = changes.get(i);
- pos[i] = (short) (((change.getX()-xOffset) << 12) + ((change.getZ()-zOffset) << 8) + change.getY());
- }
-
- return newMultiBlockChange.invoke(pos.length, pos, getHandle.invoke(Config.world.getChunkAt(chunk.getX(), chunk.getZ())));
- }
-}
diff --git a/FightSystem/FightSystem_8/src/de/steamwar/fightsystem/utils/ReflectionWrapper8.java b/FightSystem/FightSystem_8/src/de/steamwar/fightsystem/utils/ReflectionWrapper8.java
deleted file mode 100644
index 6da5308a..00000000
--- a/FightSystem/FightSystem_8/src/de/steamwar/fightsystem/utils/ReflectionWrapper8.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * This file is a part of the SteamWar software.
- *
- * Copyright (C) 2025 SteamWar.de-Serverteam
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-package de.steamwar.fightsystem.utils;
-
-import de.steamwar.Reflection;
-import org.bukkit.Location;
-import org.bukkit.entity.Player;
-import org.bukkit.inventory.ItemStack;
-
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-import java.util.function.Function;
-
-public class ReflectionWrapper8 implements ReflectionWrapper {
-
- private static final Class> packetPlayOutExplosion = Reflection.getClass("net.minecraft.network.protocol.game.ClientboundExplodePacket");
- private static final Reflection.Field explosionBlocks = Reflection.getField(packetPlayOutExplosion, List.class, 0);
- private static final Function