Removed useless Manager class.
This commit is contained in:
parent
e25b9ff8a5
commit
ba4db6d434
@ -29,7 +29,6 @@ import org.l2jmobius.gameserver.datatables.sql.TeleportLocationTable;
|
||||
import org.l2jmobius.gameserver.datatables.xml.WalkerRouteData;
|
||||
import org.l2jmobius.gameserver.handler.IAdminCommandHandler;
|
||||
import org.l2jmobius.gameserver.instancemanager.DatatablesManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.Manager;
|
||||
import org.l2jmobius.gameserver.instancemanager.QuestManager;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.multisell.Multisell;
|
||||
@ -100,12 +99,6 @@ public class AdminReload implements IAdminCommandHandler
|
||||
sendReloadPage(activeChar);
|
||||
BuilderUtil.sendSysMessage(activeChar, "Item templates reloaded");
|
||||
}
|
||||
else if (type.startsWith("instancemanager"))
|
||||
{
|
||||
Manager.reloadAll();
|
||||
sendReloadPage(activeChar);
|
||||
BuilderUtil.sendSysMessage(activeChar, "All instance manager has been reloaded");
|
||||
}
|
||||
else if (type.startsWith("npcwalkers"))
|
||||
{
|
||||
WalkerRouteData.getInstance().load();
|
||||
@ -150,19 +143,6 @@ public class AdminReload implements IAdminCommandHandler
|
||||
BuilderUtil.sendSysMessage(activeChar, "AugmentationData reloaded.");
|
||||
BuilderUtil.sendSysMessage(activeChar, "HelperBuffTable reloaded.");
|
||||
}
|
||||
else if (type.startsWith("scripts_custom"))
|
||||
{
|
||||
// try
|
||||
// {
|
||||
// final File custom_scripts_dir = new File(Config.DATAPACK_ROOT + "/data/scripts/custom");
|
||||
// L2ScriptEngineManager.getInstance().executeAllScriptsInDirectory(custom_scripts_dir, true, 3);
|
||||
// }
|
||||
// catch (Exception ioe)
|
||||
// {
|
||||
// BuilderUtil.sendSysMessage(activeChar, "Failed loading " + Config.DATAPACK_ROOT + "/data/scripts/custom scripts, no script going to be loaded");
|
||||
// ioe.printStackTrace();
|
||||
// }
|
||||
}
|
||||
BuilderUtil.sendSysMessage(activeChar, "WARNING: There are several known issues regarding this feature. Reloading server data during runtime is STRONGLY NOT RECOMMENDED for live servers, just for developing environments.");
|
||||
}
|
||||
catch (Exception e)
|
||||
|
@ -1,32 +0,0 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.instancemanager;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
|
||||
public class Manager
|
||||
{
|
||||
public static void reloadAll()
|
||||
{
|
||||
AuctionManager.getInstance().reload();
|
||||
|
||||
if (!Config.ALT_DEV_NO_QUESTS)
|
||||
{
|
||||
QuestManager.getInstance();
|
||||
}
|
||||
}
|
||||
}
|
@ -59,7 +59,6 @@ import org.l2jmobius.gameserver.datatables.sql.TeleportLocationTable;
|
||||
import org.l2jmobius.gameserver.datatables.xml.AdminData;
|
||||
import org.l2jmobius.gameserver.datatables.xml.ZoneData;
|
||||
import org.l2jmobius.gameserver.instancemanager.DayNightSpawnManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.Manager;
|
||||
import org.l2jmobius.gameserver.instancemanager.QuestManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.RaidBossSpawnManager;
|
||||
import org.l2jmobius.gameserver.model.Inventory;
|
||||
@ -757,12 +756,6 @@ public class GameStatusThread extends Thread
|
||||
ItemTable.getInstance().reload();
|
||||
_print.println("done");
|
||||
}
|
||||
else if (type.equals("instancemanager"))
|
||||
{
|
||||
_print.print("Reloading instance managers... ");
|
||||
Manager.reloadAll();
|
||||
_print.println("done");
|
||||
}
|
||||
else if (type.equals("zone"))
|
||||
{
|
||||
_print.print("Reloading zone tables... ");
|
||||
|
Loading…
Reference in New Issue
Block a user