refactor: remove unused imports
This commit is contained in:
parent
70276f4906
commit
623e458013
@ -18,9 +18,6 @@ import net.minestom.server.instance.InstanceContainer;
|
|||||||
import net.minestom.server.instance.InstanceManager;
|
import net.minestom.server.instance.InstanceManager;
|
||||||
import net.minestom.server.instance.LightingChunk;
|
import net.minestom.server.instance.LightingChunk;
|
||||||
import net.minestom.server.instance.block.Block;
|
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.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
package dev.ninjdai.werewolf.commands;
|
package dev.ninjdai.werewolf.commands;
|
||||||
|
|
||||||
import net.minestom.server.command.builder.Command;
|
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 class LGCommand extends Command {
|
||||||
public LGCommand() {
|
public LGCommand() {
|
||||||
super("lg", "loupgarou", "werewolf");
|
super("lg", "loupgarou", "werewolf");
|
||||||
|
@ -1,11 +1,8 @@
|
|||||||
package dev.ninjdai.werewolf.commands;
|
package dev.ninjdai.werewolf.commands;
|
||||||
|
|
||||||
import dev.ninjdai.werewolf.Main;
|
|
||||||
import dev.ninjdai.werewolf.uhc.UHCPlayer;
|
import dev.ninjdai.werewolf.uhc.UHCPlayer;
|
||||||
import dev.ninjdai.werewolf.uhc.roles.Role;
|
import dev.ninjdai.werewolf.uhc.roles.Role;
|
||||||
import dev.ninjdai.werewolf.uhc.roles.Roles;
|
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.Component;
|
||||||
import net.kyori.adventure.text.format.Style;
|
import net.kyori.adventure.text.format.Style;
|
||||||
import net.kyori.adventure.text.format.TextColor;
|
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.ArgumentEnum;
|
||||||
import net.minestom.server.command.builder.arguments.ArgumentType;
|
import net.minestom.server.command.builder.arguments.ArgumentType;
|
||||||
import net.minestom.server.command.builder.arguments.minecraft.ArgumentEntity;
|
import net.minestom.server.command.builder.arguments.minecraft.ArgumentEntity;
|
||||||
import net.minestom.server.entity.Player;
|
|
||||||
import net.minestom.server.utils.entity.EntityFinder;
|
import net.minestom.server.utils.entity.EntityFinder;
|
||||||
|
|
||||||
public class LGRoleCommand extends Command {
|
public class LGRoleCommand extends Command {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package dev.ninjdai.werewolf.commands;
|
package dev.ninjdai.werewolf.commands;
|
||||||
|
|
||||||
import dev.ninjdai.werewolf.Main;
|
|
||||||
import dev.ninjdai.werewolf.uhc.UHCPlayer;
|
import dev.ninjdai.werewolf.uhc.UHCPlayer;
|
||||||
import dev.ninjdai.werewolf.uhc.teams.Team;
|
import dev.ninjdai.werewolf.uhc.teams.Team;
|
||||||
import dev.ninjdai.werewolf.uhc.teams.Teams;
|
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.ArgumentEnum;
|
||||||
import net.minestom.server.command.builder.arguments.ArgumentType;
|
import net.minestom.server.command.builder.arguments.ArgumentType;
|
||||||
import net.minestom.server.command.builder.arguments.minecraft.ArgumentEntity;
|
import net.minestom.server.command.builder.arguments.minecraft.ArgumentEntity;
|
||||||
import net.minestom.server.entity.Player;
|
|
||||||
import net.minestom.server.utils.entity.EntityFinder;
|
import net.minestom.server.utils.entity.EntityFinder;
|
||||||
|
|
||||||
public class LGTeamCommand extends Command {
|
public class LGTeamCommand extends Command {
|
||||||
|
@ -4,19 +4,15 @@ import dev.ninjdai.werewolf.uhc.roles.Role;
|
|||||||
import dev.ninjdai.werewolf.uhc.roles.Roles;
|
import dev.ninjdai.werewolf.uhc.roles.Roles;
|
||||||
import dev.ninjdai.werewolf.uhc.teams.Team;
|
import dev.ninjdai.werewolf.uhc.teams.Team;
|
||||||
import dev.ninjdai.werewolf.uhc.teams.Teams;
|
import dev.ninjdai.werewolf.uhc.teams.Teams;
|
||||||
import io.github.togar2.pvp.MinestomPvP;
|
|
||||||
import io.github.togar2.pvp.player.CombatPlayerImpl;
|
import io.github.togar2.pvp.player.CombatPlayerImpl;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
import net.minestom.server.entity.GameMode;
|
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.network.player.PlayerConnection;
|
||||||
import net.minestom.server.potion.Potion;
|
import net.minestom.server.potion.Potion;
|
||||||
import net.minestom.server.potion.PotionEffect;
|
import net.minestom.server.potion.PotionEffect;
|
||||||
import net.minestom.server.timer.TaskSchedule;
|
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
public class UHCPlayer extends CombatPlayerImpl {
|
public class UHCPlayer extends CombatPlayerImpl {
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
package dev.ninjdai.werewolf.uhc.effects;
|
package dev.ninjdai.werewolf.uhc.effects;
|
||||||
|
|
||||||
import net.minestom.server.potion.Potion;
|
import net.minestom.server.potion.Potion;
|
||||||
import org.jetbrains.annotations.Nullable;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
|
||||||
|
@ -1,28 +1,11 @@
|
|||||||
package dev.ninjdai.werewolf.uhc.events;
|
package dev.ninjdai.werewolf.uhc.events;
|
||||||
|
|
||||||
import dev.ninjdai.werewolf.uhc.UHCPlayer;
|
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 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.MinecraftServer;
|
||||||
import net.minestom.server.entity.GameMode;
|
|
||||||
import net.minestom.server.entity.Player;
|
|
||||||
import net.minestom.server.event.EventFilter;
|
import net.minestom.server.event.EventFilter;
|
||||||
import net.minestom.server.event.EventNode;
|
import net.minestom.server.event.EventNode;
|
||||||
import net.minestom.server.event.trait.EntityEvent;
|
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 class UHCPlayerDeathEvent {
|
||||||
public static void onPlayerDeath(EntityPreDeathEvent event) {
|
public static void onPlayerDeath(EntityPreDeathEvent event) {
|
||||||
|
@ -9,7 +9,6 @@ import net.kyori.adventure.text.format.Style;
|
|||||||
import net.kyori.adventure.text.format.TextColor;
|
import net.kyori.adventure.text.format.TextColor;
|
||||||
import net.kyori.adventure.text.format.TextDecoration;
|
import net.kyori.adventure.text.format.TextDecoration;
|
||||||
import net.minestom.server.item.ItemStack;
|
import net.minestom.server.item.ItemStack;
|
||||||
import net.minestom.server.tag.Tag;
|
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
@ -2,9 +2,6 @@ package dev.ninjdai.werewolf.uhc.roles;
|
|||||||
|
|
||||||
import dev.ninjdai.werewolf.uhc.effects.werewolves.WerewolfStrength;
|
import dev.ninjdai.werewolf.uhc.effects.werewolves.WerewolfStrength;
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
public enum Roles {
|
public enum Roles {
|
||||||
WEREWOLF(new Role.Builder().setId("werewolf").setName("Werewolf").addRoleEffect(new WerewolfStrength()).build()),
|
WEREWOLF(new Role.Builder().setId("werewolf").setName("Werewolf").addRoleEffect(new WerewolfStrength()).build()),
|
||||||
VILLAGER(new Role.Builder().setId("villager").setName("Villager").build());
|
VILLAGER(new Role.Builder().setId("villager").setName("Villager").build());
|
||||||
|
@ -2,7 +2,6 @@ package dev.ninjdai.werewolf.uhc.teams;
|
|||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import net.minestom.server.color.Color;
|
import net.minestom.server.color.Color;
|
||||||
import net.minestom.server.tag.Tag;
|
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
@ -1,11 +1,7 @@
|
|||||||
package dev.ninjdai.werewolf.uhc.teams;
|
package dev.ninjdai.werewolf.uhc.teams;
|
||||||
|
|
||||||
import dev.ninjdai.werewolf.uhc.roles.Role;
|
|
||||||
import net.minestom.server.color.Color;
|
import net.minestom.server.color.Color;
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
public enum Teams {
|
public enum Teams {
|
||||||
WEREWOLVES(new Team.Builder().setId("werewolves").setName("Werewolves").setColor(new Color(150,10,10)).build()),
|
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()),
|
VILLAGERS(new Team.Builder().setId("villagers").setName("Villagers").setColor(new Color(48,216,90)).build()),
|
||||||
|
Loading…
Reference in New Issue
Block a user