mirror of
https://github.com/Shimeo98/DiscordWhitelisterSpigot.git
synced 2024-11-28 13:45:18 +01:00
refactoring
This commit is contained in:
parent
dabffb1a1f
commit
117d87add5
@ -15,12 +15,12 @@ import org.json.simple.JSONObject;
|
||||
import org.json.simple.JSONValue;
|
||||
import org.json.simple.parser.ParseException;
|
||||
import org.yaml.snakeyaml.Yaml;
|
||||
import uk.co.angrybee.joe.Configs.*;
|
||||
import uk.co.angrybee.joe.Events.ShutdownEvents;
|
||||
import uk.co.angrybee.joe.Stores.InGameRemovedList;
|
||||
import uk.co.angrybee.joe.Stores.RemovedList;
|
||||
import uk.co.angrybee.joe.Stores.UserList;
|
||||
import uk.co.angrybee.joe.Stores.WhitelistedPlayers;
|
||||
import uk.co.angrybee.joe.configs.*;
|
||||
import uk.co.angrybee.joe.events.ShutdownEvents;
|
||||
import uk.co.angrybee.joe.stores.InGameRemovedList;
|
||||
import uk.co.angrybee.joe.stores.RemovedList;
|
||||
import uk.co.angrybee.joe.stores.UserList;
|
||||
import uk.co.angrybee.joe.stores.WhitelistedPlayers;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
import javax.security.auth.login.LoginException;
|
||||
|
@ -1,26 +1,22 @@
|
||||
package uk.co.angrybee.joe;
|
||||
|
||||
import org.bukkit.Server;
|
||||
import org.bukkit.configuration.InvalidConfigurationException;
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
import uk.co.angrybee.joe.Commands.CommandAbout;
|
||||
import uk.co.angrybee.joe.Commands.CommandReload;
|
||||
import uk.co.angrybee.joe.Commands.CommandStatus;
|
||||
import uk.co.angrybee.joe.Configs.*;
|
||||
import uk.co.angrybee.joe.Events.JoinLeaveEvents;
|
||||
import uk.co.angrybee.joe.Events.OnBanEvent;
|
||||
import uk.co.angrybee.joe.Events.OnWhitelistEvents;
|
||||
import uk.co.angrybee.joe.Stores.InGameRemovedList;
|
||||
import uk.co.angrybee.joe.Stores.RemovedList;
|
||||
import uk.co.angrybee.joe.Stores.UserList;
|
||||
import uk.co.angrybee.joe.Stores.WhitelistedPlayers;
|
||||
import uk.co.angrybee.joe.commands.CommandAbout;
|
||||
import uk.co.angrybee.joe.commands.CommandReload;
|
||||
import uk.co.angrybee.joe.commands.CommandStatus;
|
||||
import uk.co.angrybee.joe.configs.*;
|
||||
import uk.co.angrybee.joe.events.JoinLeaveEvents;
|
||||
import uk.co.angrybee.joe.events.OnBanEvent;
|
||||
import uk.co.angrybee.joe.events.OnWhitelistEvents;
|
||||
import uk.co.angrybee.joe.stores.InGameRemovedList;
|
||||
import uk.co.angrybee.joe.stores.RemovedList;
|
||||
import uk.co.angrybee.joe.stores.UserList;
|
||||
import uk.co.angrybee.joe.stores.WhitelistedPlayers;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
import java.util.*;
|
||||
import java.util.List;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
public class DiscordWhitelister extends JavaPlugin
|
||||
|
@ -1,4 +1,4 @@
|
||||
package uk.co.angrybee.joe.Commands;
|
||||
package uk.co.angrybee.joe.commands;
|
||||
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.command.Command;
|
@ -1,4 +1,4 @@
|
||||
package uk.co.angrybee.joe.Commands;
|
||||
package uk.co.angrybee.joe.commands;
|
||||
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
@ -1,4 +1,4 @@
|
||||
package uk.co.angrybee.joe.Commands;
|
||||
package uk.co.angrybee.joe.commands;
|
||||
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.command.Command;
|
@ -1,4 +1,4 @@
|
||||
package uk.co.angrybee.joe.Configs;
|
||||
package uk.co.angrybee.joe.configs;
|
||||
|
||||
import org.bukkit.configuration.InvalidConfigurationException;
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
@ -1,4 +1,4 @@
|
||||
package uk.co.angrybee.joe.Configs;
|
||||
package uk.co.angrybee.joe.configs;
|
||||
|
||||
import org.bukkit.configuration.InvalidConfigurationException;
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
@ -1,4 +1,4 @@
|
||||
package uk.co.angrybee.joe.Configs;
|
||||
package uk.co.angrybee.joe.configs;
|
||||
|
||||
import org.bukkit.configuration.InvalidConfigurationException;
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
@ -1,4 +1,4 @@
|
||||
package uk.co.angrybee.joe.Configs;
|
||||
package uk.co.angrybee.joe.configs;
|
||||
|
||||
import org.bukkit.configuration.InvalidConfigurationException;
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
||||
@ -9,7 +9,6 @@ import java.io.File;
|
||||
import java.io.FileWriter;
|
||||
import java.io.IOException;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
|
||||
public class OnWhitelistCommandsConfig
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
package uk.co.angrybee.joe.Configs;
|
||||
package uk.co.angrybee.joe.configs;
|
||||
|
||||
import org.bukkit.configuration.InvalidConfigurationException;
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
@ -1,4 +1,4 @@
|
||||
package uk.co.angrybee.joe.Events;
|
||||
package uk.co.angrybee.joe.events;
|
||||
|
||||
import uk.co.angrybee.joe.DiscordWhitelister;
|
||||
import uk.co.angrybee.joe.DiscordClient;
|
@ -1,4 +1,4 @@
|
||||
package uk.co.angrybee.joe.Events;
|
||||
package uk.co.angrybee.joe.events;
|
||||
|
||||
import org.bukkit.OfflinePlayer;
|
||||
import org.bukkit.Server;
|
||||
@ -7,13 +7,13 @@ import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.event.player.PlayerCommandPreprocessEvent;
|
||||
import org.yaml.snakeyaml.Yaml;
|
||||
import uk.co.angrybee.joe.Configs.MainConfig;
|
||||
import uk.co.angrybee.joe.Configs.PermissionsConfig;
|
||||
import uk.co.angrybee.joe.configs.MainConfig;
|
||||
import uk.co.angrybee.joe.configs.PermissionsConfig;
|
||||
import uk.co.angrybee.joe.DiscordClient;
|
||||
import uk.co.angrybee.joe.DiscordWhitelister;
|
||||
import uk.co.angrybee.joe.Stores.InGameRemovedList;
|
||||
import uk.co.angrybee.joe.Stores.UserList;
|
||||
import uk.co.angrybee.joe.Stores.WhitelistedPlayers;
|
||||
import uk.co.angrybee.joe.stores.InGameRemovedList;
|
||||
import uk.co.angrybee.joe.stores.UserList;
|
||||
import uk.co.angrybee.joe.stores.WhitelistedPlayers;
|
||||
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
@ -1,13 +1,13 @@
|
||||
package uk.co.angrybee.joe.Events;
|
||||
package uk.co.angrybee.joe.events;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.event.player.PlayerCommandPreprocessEvent;
|
||||
import uk.co.angrybee.joe.DiscordWhitelister;
|
||||
import uk.co.angrybee.joe.Stores.InGameRemovedList;
|
||||
import uk.co.angrybee.joe.Stores.RemovedList;
|
||||
import uk.co.angrybee.joe.Stores.WhitelistedPlayers;
|
||||
import uk.co.angrybee.joe.stores.InGameRemovedList;
|
||||
import uk.co.angrybee.joe.stores.RemovedList;
|
||||
import uk.co.angrybee.joe.stores.WhitelistedPlayers;
|
||||
|
||||
import java.io.File;
|
||||
|
@ -1,9 +1,8 @@
|
||||
package uk.co.angrybee.joe.Events;
|
||||
package uk.co.angrybee.joe.events;
|
||||
|
||||
import net.dv8tion.jda.api.events.ShutdownEvent;
|
||||
import net.dv8tion.jda.api.hooks.ListenerAdapter;
|
||||
import net.dv8tion.jda.api.requests.CloseCode;
|
||||
import uk.co.angrybee.joe.DiscordClient;
|
||||
import uk.co.angrybee.joe.DiscordWhitelister;
|
||||
|
||||
public class ShutdownEvents extends ListenerAdapter
|
@ -1,4 +1,4 @@
|
||||
package uk.co.angrybee.joe.Stores;
|
||||
package uk.co.angrybee.joe.stores;
|
||||
|
||||
import org.bukkit.configuration.InvalidConfigurationException;
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
@ -1,4 +1,4 @@
|
||||
package uk.co.angrybee.joe.Stores;
|
||||
package uk.co.angrybee.joe.stores;
|
||||
|
||||
import org.bukkit.configuration.InvalidConfigurationException;
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
@ -1,4 +1,4 @@
|
||||
package uk.co.angrybee.joe.Stores;
|
||||
package uk.co.angrybee.joe.stores;
|
||||
|
||||
import org.bukkit.configuration.InvalidConfigurationException;
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
@ -1,4 +1,4 @@
|
||||
package uk.co.angrybee.joe.Stores;
|
||||
package uk.co.angrybee.joe.stores;
|
||||
|
||||
import org.bukkit.OfflinePlayer;
|
||||
import org.bukkit.Server;
|
||||
@ -7,7 +7,7 @@ import org.bukkit.configuration.file.FileConfiguration;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
import org.bukkit.plugin.Plugin;
|
||||
import org.bukkit.plugin.PluginManager;
|
||||
import uk.co.angrybee.joe.Configs.MainConfig;
|
||||
import uk.co.angrybee.joe.configs.MainConfig;
|
||||
import uk.co.angrybee.joe.DiscordWhitelister;
|
||||
|
||||
import java.io.File;
|
Loading…
Reference in New Issue
Block a user