diff --git a/src/main/java/plugin/Ploogin.java b/src/main/java/plugin/Ploogin.java index 3ee69a4..2d1ea89 100644 --- a/src/main/java/plugin/Ploogin.java +++ b/src/main/java/plugin/Ploogin.java @@ -1,7 +1,10 @@ package plugin; -import arc.*; -import arc.util.*; +import arc.ApplicationListener; +import arc.Events; +import arc.util.CommandHandler; +import arc.util.Log; +import arc.util.Timer; import com.mongodb.client.MongoClient; import com.mongodb.client.MongoClients; import com.mongodb.client.MongoCollection; @@ -9,24 +12,21 @@ import com.mongodb.client.model.Filters; import com.mongodb.client.model.UpdateOptions; import com.mongodb.client.model.Updates; -import mindustry.Vars; -import mindustry.game.*; +import mindustry.game.EventType; +import mindustry.game.Team; import mindustry.gen.Call; import mindustry.gen.Groups; -import mindustry.mod.Plugin; import mindustry.gen.Player; +import mindustry.mod.Plugin; import org.bson.Document; import org.bson.conversions.Bson; -import org.bson.types.ObjectId; import org.json.simple.parser.ParseException; import plugin.discord.Bot; import useful.Bundle; + import java.io.IOException; -import java.util.Date; import static mindustry.Vars.mods; -import static mindustry.Vars.player; -import static plugin.ConfigJson.discordurl; import static plugin.commands.BanMenu.loadBanMenu; import static plugin.functions.MongoDB.*; import static plugin.functions.Other.kickIfBanned; diff --git a/src/main/java/plugin/commands/BanMenu.java b/src/main/java/plugin/commands/BanMenu.java index 1b11e0d..4bd661e 100644 --- a/src/main/java/plugin/commands/BanMenu.java +++ b/src/main/java/plugin/commands/BanMenu.java @@ -1,30 +1,34 @@ package plugin.commands; import arc.Events; -import arc.util.*; +import arc.util.Log; +import arc.util.Strings; import com.mongodb.client.model.Filters; import com.mongodb.client.model.UpdateOptions; import com.mongodb.client.model.Updates; import mindustry.game.EventType.AdminRequestEvent; import mindustry.game.Team; -import mindustry.gen.*; +import mindustry.gen.AdminRequestCallPacket; +import mindustry.gen.Call; +import mindustry.gen.Player; import mindustry.net.Administration.TraceInfo; import mindustry.net.Packets.KickReason; import org.bson.Document; import org.bson.conversions.Bson; -import org.javacord.api.entity.message.embed.EmbedBuilder; import plugin.Ploogin; import plugin.discord.Bot; -import useful.*; -import useful.text.TextInput; +import useful.Action; +import useful.Action2; +import useful.Bundle; import useful.State.StateKey; +import useful.text.TextInput; -import java.awt.*; import java.time.Duration; import java.util.Date; import java.util.concurrent.TimeUnit; -import static mindustry.Vars.*; +import static mindustry.Vars.logic; +import static mindustry.Vars.net; import static plugin.ConfigJson.discordurl; import static plugin.discord.Embed.banEmbed; diff --git a/src/main/java/plugin/discord/Embed.java b/src/main/java/plugin/discord/Embed.java index 55aa6bd..90c4657 100644 --- a/src/main/java/plugin/discord/Embed.java +++ b/src/main/java/plugin/discord/Embed.java @@ -2,7 +2,6 @@ import org.bson.Document; import org.javacord.api.entity.message.embed.EmbedBuilder; -import org.javacord.api.event.interaction.SlashCommandCreateEvent; import java.awt.*; diff --git a/src/main/java/plugin/utils/MenuHandler.java b/src/main/java/plugin/utils/MenuHandler.java index 15b2986..7de37eb 100644 --- a/src/main/java/plugin/utils/MenuHandler.java +++ b/src/main/java/plugin/utils/MenuHandler.java @@ -1,6 +1,5 @@ package plugin.utils; -import com.mongodb.client.model.Filters; import com.mongodb.client.model.UpdateOptions; import com.mongodb.client.model.Updates; import mindustry.gen.Call; @@ -8,17 +7,8 @@ import mindustry.ui.Menus; import org.bson.Document; import org.bson.conversions.Bson; -import org.javacord.api.entity.message.embed.EmbedBuilder; import org.javacord.api.event.interaction.SlashCommandCreateEvent; -import org.javacord.api.listener.interaction.SlashCommandCreateListener; import plugin.Ploogin; -import plugin.discord.Bot; -import useful.Bundle; -import useful.text.TextInput; - -import javax.print.Doc; -import java.awt.*; -import java.util.Date; import static plugin.ConfigJson.discordurl; import static plugin.utils.FindDocument.getDoc;