Réorganisation de certains packages

This commit is contained in:
Marc Baloup 2015-02-15 02:02:02 -05:00
parent 65b3bb5b15
commit c0db2ed949
14 changed files with 30 additions and 30 deletions

View File

@ -1,24 +1,24 @@
package net.mc_pandacraft.java.plugin.pandacraftutils;
import net.mc_pandacraft.java.plugin.pandacraftutils.commands.CommandsManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.AfkManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.commands.PandacraftUtilsCommandsManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.AutoMessagesManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.CalculatorManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.ChatAnalysisManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.CommandAliasManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.HeartThrowManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.LoginLogoutMessageManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.PacketOutServerInfoListener;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.SpawnTimeManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.StaffQueueManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.SurvivalCuboManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.TPSAnalysisManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.WESelectionDisplayManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.WorldBorderManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.cheat_protect.CreativCheatManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.cheat_protect.EntitySpamManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.cheat_protect.NoPvpProtectManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.cheat_protect.TamedEntityProtectManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.fun.HeartThrowManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.player_control.AfkManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.player_control.ChatAnalysisManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.protection.CreativCheatManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.protection.EntitySpamManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.protection.NoPvpProtectManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.protection.SurvivalCuboManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.protection.TamedEntityProtectManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.protection.WorldBorderManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.staff.StaffQueueManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.network_api.NetworkAPI;
import net.mc_pandacraft.java.plugin.pandacraftutils.players.OnlinePlayer;
import net.mc_pandacraft.java.plugin.pandacraftutils.players.OnlinePlayerManager;
@ -79,7 +79,7 @@ public class PandacraftUtils extends JavaPlugin {
ConfigManager.loadNewInstance();
OnlinePlayerManager.loadNewInstance();
CommandsManager.loadNewInstance();
PandacraftUtilsCommandsManager.loadNewInstance();
afkManager = new AfkManager();

View File

@ -1,6 +1,6 @@
package net.mc_pandacraft.java.plugin.pandacraftutils.commands;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.cheat_protect.TamedEntityProtectManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.protection.TamedEntityProtectManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.players.OnlinePlayer;
import net.mc_pandacraft.java.plugin.pandacraftutils.players.OnlinePlayerManager;

View File

@ -2,8 +2,8 @@ package net.mc_pandacraft.java.plugin.pandacraftutils.commands;
import java.util.Date;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.StaffQueueManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.StaffQueueManager.WaitingPlayer;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.staff.StaffQueueManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.staff.StaffQueueManager.WaitingPlayer;
import net.mc_pandacraft.java.plugin.pandacraftutils.players.OnlinePlayerManager;
import net.mc_pandacraft.java.util.TimeUtil;

View File

@ -5,22 +5,22 @@ import java.util.HashMap;
/**
* Initialise et stoque toutes les instances des classes exécutant les commandes Minecraft, géré par le plugin
*/
public class CommandsManager {
public class PandacraftUtilsCommandsManager {
private static CommandsManager instance;
private static PandacraftUtilsCommandsManager instance;
/**
* Retourne l'unique instance de la classe. Si elle n'existe pas, on tente de créer
* @return L'unique instance de la classe
*/
public synchronized static CommandsManager getInstance() {
public synchronized static PandacraftUtilsCommandsManager getInstance() {
if (instance == null)
loadNewInstance();
return instance;
}
public synchronized static void loadNewInstance() {
instance = new CommandsManager();
instance = new PandacraftUtilsCommandsManager();
}
@ -35,7 +35,7 @@ public class CommandsManager {
private HashMap<String, AbstractCommandExecutor> commandExecutors = new HashMap<String, AbstractCommandExecutor>();
private CommandsManager() {
private PandacraftUtilsCommandsManager() {
/*
* Initialisation des commandes

View File

@ -1,4 +1,4 @@
package net.mc_pandacraft.java.plugin.pandacraftutils.modules;
package net.mc_pandacraft.java.plugin.pandacraftutils.modules.fun;
import java.util.Collection;

View File

@ -1,4 +1,4 @@
package net.mc_pandacraft.java.plugin.pandacraftutils.modules;
package net.mc_pandacraft.java.plugin.pandacraftutils.modules.player_control;
import java.util.Collection;

View File

@ -1,4 +1,4 @@
package net.mc_pandacraft.java.plugin.pandacraftutils.modules;
package net.mc_pandacraft.java.plugin.pandacraftutils.modules.player_control;
import net.mc_pandacraft.java.plugin.pandacraftutils.ConfigManager;
import net.mc_pandacraft.java.plugin.pandacraftutils.PandacraftUtils;

View File

@ -1,4 +1,4 @@
package net.mc_pandacraft.java.plugin.pandacraftutils.modules.cheat_protect;
package net.mc_pandacraft.java.plugin.pandacraftutils.modules.protection;
import net.mc_pandacraft.java.plugin.pandacraftutils.PandacraftUtils;

View File

@ -1,4 +1,4 @@
package net.mc_pandacraft.java.plugin.pandacraftutils.modules.cheat_protect;
package net.mc_pandacraft.java.plugin.pandacraftutils.modules.protection;
import org.bukkit.Chunk;
import org.bukkit.Location;

View File

@ -1,4 +1,4 @@
package net.mc_pandacraft.java.plugin.pandacraftutils.modules.cheat_protect;
package net.mc_pandacraft.java.plugin.pandacraftutils.modules.protection;
import java.util.List;

View File

@ -1,4 +1,4 @@
package net.mc_pandacraft.java.plugin.pandacraftutils.modules;
package net.mc_pandacraft.java.plugin.pandacraftutils.modules.protection;
import java.util.ArrayList;
import java.util.List;

View File

@ -1,4 +1,4 @@
package net.mc_pandacraft.java.plugin.pandacraftutils.modules.cheat_protect;
package net.mc_pandacraft.java.plugin.pandacraftutils.modules.protection;
import net.mc_pandacraft.java.plugin.pandacraftutils.PandacraftUtils;
import net.mc_pandacraft.java.plugin.pandacraftutils.players.OnlinePlayerManager;

View File

@ -1,4 +1,4 @@
package net.mc_pandacraft.java.plugin.pandacraftutils.modules;
package net.mc_pandacraft.java.plugin.pandacraftutils.modules.protection;
import java.util.ArrayList;
import java.util.Collection;

View File

@ -1,4 +1,4 @@
package net.mc_pandacraft.java.plugin.pandacraftutils.modules;
package net.mc_pandacraft.java.plugin.pandacraftutils.modules.staff;
import java.util.ArrayList;
import java.util.Date;