Skip to content

Commit

Permalink
Оптимизировал импорты, скорее всего финальная версия плагина тк устал
Browse files Browse the repository at this point in the history
  • Loading branch information
NazrinNya committed Jul 7, 2023
1 parent 9cdaf66 commit 842fde1
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 27 deletions.
18 changes: 9 additions & 9 deletions src/main/java/plugin/Ploogin.java
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
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;
import com.mongodb.client.MongoDatabase;
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;
Expand Down
18 changes: 11 additions & 7 deletions src/main/java/plugin/commands/BanMenu.java
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
1 change: 0 additions & 1 deletion src/main/java/plugin/discord/Embed.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;

Expand Down
10 changes: 0 additions & 10 deletions src/main/java/plugin/utils/MenuHandler.java
Original file line number Diff line number Diff line change
@@ -1,24 +1,14 @@
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;
import mindustry.gen.Player;
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;
Expand Down

0 comments on commit 842fde1

Please sign in to comment.