Move config classes to configuration sub-package

This commit is contained in:
Bea 2021-01-10 00:48:42 +01:00
parent ea061e55e6
commit c1a34875cf
10 changed files with 14 additions and 17 deletions

View File

@ -4,7 +4,7 @@ import net.mindoverflow.network.uhccore.commands.UhcCoreCommand;
import net.mindoverflow.network.uhccore.completers.InfoCompleter; import net.mindoverflow.network.uhccore.completers.InfoCompleter;
import net.mindoverflow.network.uhccore.listeners.*; import net.mindoverflow.network.uhccore.listeners.*;
import net.mindoverflow.network.uhccore.utils.Debugger; import net.mindoverflow.network.uhccore.utils.Debugger;
import net.mindoverflow.network.uhccore.utils.FileUtils; import net.mindoverflow.network.uhccore.utils.configuration.FileUtils;
import net.mindoverflow.network.uhccore.utils.MessageUtils; import net.mindoverflow.network.uhccore.utils.MessageUtils;
import org.bukkit.plugin.PluginManager; import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.plugin.java.JavaPlugin;

View File

@ -4,7 +4,7 @@ import net.mindoverflow.network.uhccore.UhcCore;
import net.mindoverflow.network.uhccore.commands.uhccommands.*; import net.mindoverflow.network.uhccore.commands.uhccommands.*;
import net.mindoverflow.network.uhccore.utils.Debugger; import net.mindoverflow.network.uhccore.utils.Debugger;
import net.mindoverflow.network.uhccore.utils.MessageUtils; import net.mindoverflow.network.uhccore.utils.MessageUtils;
import net.mindoverflow.network.uhccore.utils.LocalizedMessages; import net.mindoverflow.network.uhccore.utils.configuration.LocalizedMessages;
import org.bukkit.command.Command; import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;

View File

@ -1,7 +1,7 @@
package net.mindoverflow.network.uhccore.commands.uhccommands; package net.mindoverflow.network.uhccore.commands.uhccommands;
import net.mindoverflow.network.uhccore.utils.Debugger; import net.mindoverflow.network.uhccore.utils.Debugger;
import net.mindoverflow.network.uhccore.utils.FileUtils; import net.mindoverflow.network.uhccore.utils.configuration.FileUtils;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import java.util.logging.Level; import java.util.logging.Level;

View File

@ -1,9 +1,9 @@
package net.mindoverflow.network.uhccore.commands.uhccommands; package net.mindoverflow.network.uhccore.commands.uhccommands;
import net.mindoverflow.network.uhccore.utils.CommonValues; import net.mindoverflow.network.uhccore.utils.CommonValues;
import net.mindoverflow.network.uhccore.utils.ConfigEntries; import net.mindoverflow.network.uhccore.utils.configuration.ConfigEntries;
import net.mindoverflow.network.uhccore.utils.Debugger; import net.mindoverflow.network.uhccore.utils.Debugger;
import net.mindoverflow.network.uhccore.utils.FileUtils; import net.mindoverflow.network.uhccore.utils.configuration.FileUtils;
import org.bukkit.Location; import org.bukkit.Location;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import org.bukkit.configuration.file.YamlConfiguration; import org.bukkit.configuration.file.YamlConfiguration;

View File

@ -1,8 +1,8 @@
package net.mindoverflow.network.uhccore.commands.uhccommands; package net.mindoverflow.network.uhccore.commands.uhccommands;
import net.mindoverflow.network.uhccore.utils.CommonValues; import net.mindoverflow.network.uhccore.utils.CommonValues;
import net.mindoverflow.network.uhccore.utils.ConfigEntries; import net.mindoverflow.network.uhccore.utils.configuration.ConfigEntries;
import net.mindoverflow.network.uhccore.utils.FileUtils; import net.mindoverflow.network.uhccore.utils.configuration.FileUtils;
import org.bukkit.Location; import org.bukkit.Location;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import org.bukkit.configuration.file.YamlConfiguration; import org.bukkit.configuration.file.YamlConfiguration;

View File

@ -2,16 +2,13 @@ package net.mindoverflow.network.uhccore.commands.uhccommands;
import net.mindoverflow.network.uhccore.UhcCore; import net.mindoverflow.network.uhccore.UhcCore;
import net.mindoverflow.network.uhccore.utils.CommonValues; import net.mindoverflow.network.uhccore.utils.CommonValues;
import net.mindoverflow.network.uhccore.utils.ConfigEntries;
import net.mindoverflow.network.uhccore.utils.Debugger; import net.mindoverflow.network.uhccore.utils.Debugger;
import net.mindoverflow.network.uhccore.utils.FileUtils;
import net.mindoverflow.network.uhccore.utils.math.NumberUtils; import net.mindoverflow.network.uhccore.utils.math.NumberUtils;
import org.bukkit.*; import org.bukkit.*;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import java.util.HashMap; import java.util.HashMap;
import java.util.Random;
import java.util.logging.Level; import java.util.logging.Level;

View File

@ -2,6 +2,8 @@ package net.mindoverflow.network.uhccore.utils;
import net.mindoverflow.network.uhccore.UhcCore; import net.mindoverflow.network.uhccore.UhcCore;
import net.mindoverflow.network.uhccore.utils.configuration.FileUtils;
import net.mindoverflow.network.uhccore.utils.configuration.LocalizedMessages;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import org.bukkit.configuration.file.YamlConfiguration; import org.bukkit.configuration.file.YamlConfiguration;

View File

@ -1,4 +1,4 @@
package net.mindoverflow.network.uhccore.utils; package net.mindoverflow.network.uhccore.utils.configuration;
public enum ConfigEntries public enum ConfigEntries
{ {

View File

@ -1,21 +1,19 @@
package net.mindoverflow.network.uhccore.utils; package net.mindoverflow.network.uhccore.utils.configuration;
import net.mindoverflow.network.uhccore.UhcCore; import net.mindoverflow.network.uhccore.UhcCore;
import net.mindoverflow.network.uhccore.listeners.TeamsSelectorGUI; import net.mindoverflow.network.uhccore.listeners.TeamsSelectorGUI;
import net.mindoverflow.network.uhccore.utils.CommonValues;
import net.mindoverflow.network.uhccore.utils.Debugger;
import org.bukkit.Location; import org.bukkit.Location;
import org.bukkit.Material; import org.bukkit.Material;
import org.bukkit.World; import org.bukkit.World;
import org.bukkit.configuration.file.YamlConfiguration; import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta; import org.bukkit.inventory.meta.ItemMeta;
import sun.security.krb5.Config;
import java.io.*; import java.io.*;
import java.nio.file.Files; import java.nio.file.Files;
import java.nio.file.Paths; import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.logging.Level; import java.util.logging.Level;
public class FileUtils public class FileUtils

View File

@ -1,4 +1,4 @@
package net.mindoverflow.network.uhccore.utils; package net.mindoverflow.network.uhccore.utils.configuration;
public enum LocalizedMessages { public enum LocalizedMessages {