Réorganisation de certains packages
This commit is contained in:
parent
65b3bb5b15
commit
c0db2ed949
@ -1,24 +1,24 @@
|
|||||||
package net.mc_pandacraft.java.plugin.pandacraftutils;
|
package net.mc_pandacraft.java.plugin.pandacraftutils;
|
||||||
|
|
||||||
import net.mc_pandacraft.java.plugin.pandacraftutils.commands.CommandsManager;
|
import net.mc_pandacraft.java.plugin.pandacraftutils.commands.PandacraftUtilsCommandsManager;
|
||||||
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.AfkManager;
|
|
||||||
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.AutoMessagesManager;
|
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.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.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.LoginLogoutMessageManager;
|
||||||
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.PacketOutServerInfoListener;
|
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.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.TPSAnalysisManager;
|
||||||
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.WESelectionDisplayManager;
|
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.fun.HeartThrowManager;
|
||||||
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.cheat_protect.CreativCheatManager;
|
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.player_control.AfkManager;
|
||||||
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.cheat_protect.EntitySpamManager;
|
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.player_control.ChatAnalysisManager;
|
||||||
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.cheat_protect.NoPvpProtectManager;
|
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.protection.CreativCheatManager;
|
||||||
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.cheat_protect.TamedEntityProtectManager;
|
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.network_api.NetworkAPI;
|
||||||
import net.mc_pandacraft.java.plugin.pandacraftutils.players.OnlinePlayer;
|
import net.mc_pandacraft.java.plugin.pandacraftutils.players.OnlinePlayer;
|
||||||
import net.mc_pandacraft.java.plugin.pandacraftutils.players.OnlinePlayerManager;
|
import net.mc_pandacraft.java.plugin.pandacraftutils.players.OnlinePlayerManager;
|
||||||
@ -79,7 +79,7 @@ public class PandacraftUtils extends JavaPlugin {
|
|||||||
|
|
||||||
ConfigManager.loadNewInstance();
|
ConfigManager.loadNewInstance();
|
||||||
OnlinePlayerManager.loadNewInstance();
|
OnlinePlayerManager.loadNewInstance();
|
||||||
CommandsManager.loadNewInstance();
|
PandacraftUtilsCommandsManager.loadNewInstance();
|
||||||
|
|
||||||
|
|
||||||
afkManager = new AfkManager();
|
afkManager = new AfkManager();
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package net.mc_pandacraft.java.plugin.pandacraftutils.commands;
|
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.OnlinePlayer;
|
||||||
import net.mc_pandacraft.java.plugin.pandacraftutils.players.OnlinePlayerManager;
|
import net.mc_pandacraft.java.plugin.pandacraftutils.players.OnlinePlayerManager;
|
||||||
|
|
||||||
|
@ -2,8 +2,8 @@ package net.mc_pandacraft.java.plugin.pandacraftutils.commands;
|
|||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.StaffQueueManager;
|
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.staff.StaffQueueManager;
|
||||||
import net.mc_pandacraft.java.plugin.pandacraftutils.modules.StaffQueueManager.WaitingPlayer;
|
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.plugin.pandacraftutils.players.OnlinePlayerManager;
|
||||||
import net.mc_pandacraft.java.util.TimeUtil;
|
import net.mc_pandacraft.java.util.TimeUtil;
|
||||||
|
|
||||||
|
@ -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
|
* 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
|
* Retourne l'unique instance de la classe. Si elle n'existe pas, on tente de créer
|
||||||
* @return L'unique instance de la classe
|
* @return L'unique instance de la classe
|
||||||
*/
|
*/
|
||||||
public synchronized static CommandsManager getInstance() {
|
public synchronized static PandacraftUtilsCommandsManager getInstance() {
|
||||||
if (instance == null)
|
if (instance == null)
|
||||||
loadNewInstance();
|
loadNewInstance();
|
||||||
return instance;
|
return instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized static void loadNewInstance() {
|
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 HashMap<String, AbstractCommandExecutor> commandExecutors = new HashMap<String, AbstractCommandExecutor>();
|
||||||
|
|
||||||
private CommandsManager() {
|
private PandacraftUtilsCommandsManager() {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initialisation des commandes
|
* Initialisation des commandes
|
@ -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;
|
import java.util.Collection;
|
||||||
|
|
@ -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;
|
import java.util.Collection;
|
@ -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.ConfigManager;
|
||||||
import net.mc_pandacraft.java.plugin.pandacraftutils.PandacraftUtils;
|
import net.mc_pandacraft.java.plugin.pandacraftutils.PandacraftUtils;
|
@ -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.PandacraftUtils;
|
||||||
|
|
@ -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.Chunk;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
@ -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;
|
import java.util.List;
|
@ -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.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
@ -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.PandacraftUtils;
|
||||||
import net.mc_pandacraft.java.plugin.pandacraftutils.players.OnlinePlayerManager;
|
import net.mc_pandacraft.java.plugin.pandacraftutils.players.OnlinePlayerManager;
|
@ -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.ArrayList;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
@ -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.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
Loading…
Reference in New Issue
Block a user