diff --git a/src/main/java/dev/ninjdai/werewolf/Main.java b/src/main/java/dev/ninjdai/werewolf/Main.java index d32c1f2..b894be2 100644 --- a/src/main/java/dev/ninjdai/werewolf/Main.java +++ b/src/main/java/dev/ninjdai/werewolf/Main.java @@ -18,9 +18,6 @@ import net.minestom.server.instance.InstanceContainer; import net.minestom.server.instance.InstanceManager; import net.minestom.server.instance.LightingChunk; import net.minestom.server.instance.block.Block; -import net.minestom.server.network.PlayerProvider; -import net.minestom.server.network.player.PlayerConnection; -import org.jetbrains.annotations.NotNull; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/main/java/dev/ninjdai/werewolf/commands/LGCommand.java b/src/main/java/dev/ninjdai/werewolf/commands/LGCommand.java index 5a44ae9..e6093c7 100644 --- a/src/main/java/dev/ninjdai/werewolf/commands/LGCommand.java +++ b/src/main/java/dev/ninjdai/werewolf/commands/LGCommand.java @@ -1,10 +1,6 @@ package dev.ninjdai.werewolf.commands; import net.minestom.server.command.builder.Command; -import net.minestom.server.command.builder.arguments.ArgumentType; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - public class LGCommand extends Command { public LGCommand() { super("lg", "loupgarou", "werewolf"); diff --git a/src/main/java/dev/ninjdai/werewolf/commands/LGRoleCommand.java b/src/main/java/dev/ninjdai/werewolf/commands/LGRoleCommand.java index 920c8f7..01ab106 100644 --- a/src/main/java/dev/ninjdai/werewolf/commands/LGRoleCommand.java +++ b/src/main/java/dev/ninjdai/werewolf/commands/LGRoleCommand.java @@ -1,11 +1,8 @@ package dev.ninjdai.werewolf.commands; -import dev.ninjdai.werewolf.Main; import dev.ninjdai.werewolf.uhc.UHCPlayer; import dev.ninjdai.werewolf.uhc.roles.Role; import dev.ninjdai.werewolf.uhc.roles.Roles; -import dev.ninjdai.werewolf.uhc.teams.Team; -import dev.ninjdai.werewolf.uhc.teams.Teams; import net.kyori.adventure.text.Component; import net.kyori.adventure.text.format.Style; import net.kyori.adventure.text.format.TextColor; @@ -14,7 +11,6 @@ import net.minestom.server.command.builder.Command; import net.minestom.server.command.builder.arguments.ArgumentEnum; import net.minestom.server.command.builder.arguments.ArgumentType; import net.minestom.server.command.builder.arguments.minecraft.ArgumentEntity; -import net.minestom.server.entity.Player; import net.minestom.server.utils.entity.EntityFinder; public class LGRoleCommand extends Command { diff --git a/src/main/java/dev/ninjdai/werewolf/commands/LGTeamCommand.java b/src/main/java/dev/ninjdai/werewolf/commands/LGTeamCommand.java index 354c452..21383ca 100644 --- a/src/main/java/dev/ninjdai/werewolf/commands/LGTeamCommand.java +++ b/src/main/java/dev/ninjdai/werewolf/commands/LGTeamCommand.java @@ -1,6 +1,5 @@ package dev.ninjdai.werewolf.commands; -import dev.ninjdai.werewolf.Main; import dev.ninjdai.werewolf.uhc.UHCPlayer; import dev.ninjdai.werewolf.uhc.teams.Team; import dev.ninjdai.werewolf.uhc.teams.Teams; @@ -12,7 +11,6 @@ import net.minestom.server.command.builder.Command; import net.minestom.server.command.builder.arguments.ArgumentEnum; import net.minestom.server.command.builder.arguments.ArgumentType; import net.minestom.server.command.builder.arguments.minecraft.ArgumentEntity; -import net.minestom.server.entity.Player; import net.minestom.server.utils.entity.EntityFinder; public class LGTeamCommand extends Command { diff --git a/src/main/java/dev/ninjdai/werewolf/uhc/UHCPlayer.java b/src/main/java/dev/ninjdai/werewolf/uhc/UHCPlayer.java index f6caee3..0420532 100644 --- a/src/main/java/dev/ninjdai/werewolf/uhc/UHCPlayer.java +++ b/src/main/java/dev/ninjdai/werewolf/uhc/UHCPlayer.java @@ -4,19 +4,15 @@ import dev.ninjdai.werewolf.uhc.roles.Role; import dev.ninjdai.werewolf.uhc.roles.Roles; import dev.ninjdai.werewolf.uhc.teams.Team; import dev.ninjdai.werewolf.uhc.teams.Teams; -import io.github.togar2.pvp.MinestomPvP; import io.github.togar2.pvp.player.CombatPlayerImpl; import lombok.Getter; import lombok.Setter; import net.minestom.server.entity.GameMode; -import net.minestom.server.network.packet.server.play.WorldBorderSizePacket; import net.minestom.server.network.player.PlayerConnection; import net.minestom.server.potion.Potion; import net.minestom.server.potion.PotionEffect; -import net.minestom.server.timer.TaskSchedule; import org.jetbrains.annotations.NotNull; -import java.util.Optional; import java.util.UUID; public class UHCPlayer extends CombatPlayerImpl { diff --git a/src/main/java/dev/ninjdai/werewolf/uhc/effects/EffectProperty.java b/src/main/java/dev/ninjdai/werewolf/uhc/effects/EffectProperty.java index f11eefc..bed5124 100644 --- a/src/main/java/dev/ninjdai/werewolf/uhc/effects/EffectProperty.java +++ b/src/main/java/dev/ninjdai/werewolf/uhc/effects/EffectProperty.java @@ -1,7 +1,6 @@ package dev.ninjdai.werewolf.uhc.effects; import net.minestom.server.potion.Potion; -import org.jetbrains.annotations.Nullable; import java.util.Optional; diff --git a/src/main/java/dev/ninjdai/werewolf/uhc/events/UHCPlayerDeathEvent.java b/src/main/java/dev/ninjdai/werewolf/uhc/events/UHCPlayerDeathEvent.java index 3361ebe..e6d20c4 100644 --- a/src/main/java/dev/ninjdai/werewolf/uhc/events/UHCPlayerDeathEvent.java +++ b/src/main/java/dev/ninjdai/werewolf/uhc/events/UHCPlayerDeathEvent.java @@ -1,28 +1,11 @@ package dev.ninjdai.werewolf.uhc.events; import dev.ninjdai.werewolf.uhc.UHCPlayer; -import dev.ninjdai.werewolf.uhc.roles.Role; -import dev.ninjdai.werewolf.uhc.roles.Roles; -import dev.ninjdai.werewolf.uhc.teams.Team; -import dev.ninjdai.werewolf.uhc.teams.Teams; -import dev.ninjdai.werewolf.uhc.teams.WinCondition; import io.github.togar2.pvp.events.EntityPreDeathEvent; -import net.kyori.adventure.sound.Sound; -import net.kyori.adventure.text.Component; -import net.kyori.adventure.text.format.Style; -import net.kyori.adventure.text.format.TextColor; import net.minestom.server.MinecraftServer; -import net.minestom.server.entity.GameMode; -import net.minestom.server.entity.Player; import net.minestom.server.event.EventFilter; import net.minestom.server.event.EventNode; import net.minestom.server.event.trait.EntityEvent; -import net.minestom.server.sound.SoundEvent; -import org.jetbrains.annotations.NotNull; - -import java.util.Set; -import java.util.stream.Collectors; -import java.util.stream.Stream; public class UHCPlayerDeathEvent { public static void onPlayerDeath(EntityPreDeathEvent event) { diff --git a/src/main/java/dev/ninjdai/werewolf/uhc/roles/Role.java b/src/main/java/dev/ninjdai/werewolf/uhc/roles/Role.java index 3f44604..071df61 100644 --- a/src/main/java/dev/ninjdai/werewolf/uhc/roles/Role.java +++ b/src/main/java/dev/ninjdai/werewolf/uhc/roles/Role.java @@ -9,7 +9,6 @@ import net.kyori.adventure.text.format.Style; import net.kyori.adventure.text.format.TextColor; import net.kyori.adventure.text.format.TextDecoration; import net.minestom.server.item.ItemStack; -import net.minestom.server.tag.Tag; import org.jetbrains.annotations.NotNull; import java.util.*; diff --git a/src/main/java/dev/ninjdai/werewolf/uhc/roles/Roles.java b/src/main/java/dev/ninjdai/werewolf/uhc/roles/Roles.java index 9f3b9fe..407ec67 100644 --- a/src/main/java/dev/ninjdai/werewolf/uhc/roles/Roles.java +++ b/src/main/java/dev/ninjdai/werewolf/uhc/roles/Roles.java @@ -2,9 +2,6 @@ package dev.ninjdai.werewolf.uhc.roles; import dev.ninjdai.werewolf.uhc.effects.werewolves.WerewolfStrength; -import java.util.HashMap; -import java.util.Map; - public enum Roles { WEREWOLF(new Role.Builder().setId("werewolf").setName("Werewolf").addRoleEffect(new WerewolfStrength()).build()), VILLAGER(new Role.Builder().setId("villager").setName("Villager").build()); diff --git a/src/main/java/dev/ninjdai/werewolf/uhc/teams/Team.java b/src/main/java/dev/ninjdai/werewolf/uhc/teams/Team.java index b89f767..ad71f72 100644 --- a/src/main/java/dev/ninjdai/werewolf/uhc/teams/Team.java +++ b/src/main/java/dev/ninjdai/werewolf/uhc/teams/Team.java @@ -2,7 +2,6 @@ package dev.ninjdai.werewolf.uhc.teams; import lombok.Getter; import net.minestom.server.color.Color; -import net.minestom.server.tag.Tag; import java.util.HashMap; import java.util.Map; diff --git a/src/main/java/dev/ninjdai/werewolf/uhc/teams/Teams.java b/src/main/java/dev/ninjdai/werewolf/uhc/teams/Teams.java index 62f0b9f..eea657a 100644 --- a/src/main/java/dev/ninjdai/werewolf/uhc/teams/Teams.java +++ b/src/main/java/dev/ninjdai/werewolf/uhc/teams/Teams.java @@ -1,11 +1,7 @@ package dev.ninjdai.werewolf.uhc.teams; -import dev.ninjdai.werewolf.uhc.roles.Role; import net.minestom.server.color.Color; -import java.util.HashMap; -import java.util.Map; - public enum Teams { WEREWOLVES(new Team.Builder().setId("werewolves").setName("Werewolves").setColor(new Color(150,10,10)).build()), VILLAGERS(new Team.Builder().setId("villagers").setName("Villagers").setColor(new Color(48,216,90)).build()),