From a9007dcccb451f5aaf8c7656613e5024f14ff403 Mon Sep 17 00:00:00 2001 From: Luca Date: Wed, 24 Nov 2021 20:32:34 +0100 Subject: [PATCH] optimize --- .../java/rip/tilly/bedwars/game/GameTeam.java | 4 ---- .../currentgame/PlayerCurrentGameData.java | 19 ------------------- 2 files changed, 23 deletions(-) diff --git a/src/main/java/rip/tilly/bedwars/game/GameTeam.java b/src/main/java/rip/tilly/bedwars/game/GameTeam.java index 1003e14..426aba4 100644 --- a/src/main/java/rip/tilly/bedwars/game/GameTeam.java +++ b/src/main/java/rip/tilly/bedwars/game/GameTeam.java @@ -5,7 +5,6 @@ import lombok.Setter; import org.bukkit.entity.Player; import rip.tilly.bedwars.BedWars; import rip.tilly.bedwars.playerdata.PlayerTeam; -import rip.tilly.bedwars.playerdata.currentgame.PlayerCurrentGameData; import java.util.ArrayList; import java.util.List; @@ -26,8 +25,6 @@ public class GameTeam { private final int id; private final PlayerTeam playerTeam; - private final PlayerCurrentGameData playerCurrentGameData; - private boolean hasBed = true; public GameTeam(UUID leader, List allPlayers, int id, PlayerTeam playerTeam) { @@ -37,7 +34,6 @@ public class GameTeam { this.id = id; this.playerTeam = playerTeam; - this.playerCurrentGameData = new PlayerCurrentGameData(); } public void killPlayer(UUID uuid) { diff --git a/src/main/java/rip/tilly/bedwars/playerdata/currentgame/PlayerCurrentGameData.java b/src/main/java/rip/tilly/bedwars/playerdata/currentgame/PlayerCurrentGameData.java index 07e1ebf..69467c8 100644 --- a/src/main/java/rip/tilly/bedwars/playerdata/currentgame/PlayerCurrentGameData.java +++ b/src/main/java/rip/tilly/bedwars/playerdata/currentgame/PlayerCurrentGameData.java @@ -1,26 +1,7 @@ package rip.tilly.bedwars.playerdata.currentgame; import lombok.Data; -import org.bukkit.Material; -import org.bukkit.enchantments.Enchantment; -import org.bukkit.entity.Player; -import org.bukkit.inventory.ItemStack; -import org.bukkit.potion.PotionEffect; -import org.bukkit.potion.PotionEffectType; import rip.tilly.bedwars.BedWars; -import rip.tilly.bedwars.game.Game; -import rip.tilly.bedwars.game.GameTeam; -import rip.tilly.bedwars.generators.GeneratorTier; -import rip.tilly.bedwars.generators.GeneratorType; -import rip.tilly.bedwars.playerdata.PlayerData; -import rip.tilly.bedwars.upgrades.Upgrade; -import rip.tilly.bedwars.utils.CC; -import rip.tilly.bedwars.utils.ItemBuilder; - -import java.util.HashMap; -import java.util.ListIterator; -import java.util.Map; -import java.util.UUID; @Data public class PlayerCurrentGameData {