Removed useless DatatablesManager class.
This commit is contained in:
@@ -28,7 +28,6 @@ import org.l2jmobius.gameserver.datatables.sql.NpcTable;
|
|||||||
import org.l2jmobius.gameserver.datatables.sql.TeleportLocationTable;
|
import org.l2jmobius.gameserver.datatables.sql.TeleportLocationTable;
|
||||||
import org.l2jmobius.gameserver.datatables.xml.WalkerRouteData;
|
import org.l2jmobius.gameserver.datatables.xml.WalkerRouteData;
|
||||||
import org.l2jmobius.gameserver.handler.IAdminCommandHandler;
|
import org.l2jmobius.gameserver.handler.IAdminCommandHandler;
|
||||||
import org.l2jmobius.gameserver.instancemanager.DatatablesManager;
|
|
||||||
import org.l2jmobius.gameserver.instancemanager.QuestManager;
|
import org.l2jmobius.gameserver.instancemanager.QuestManager;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
import org.l2jmobius.gameserver.model.multisell.Multisell;
|
import org.l2jmobius.gameserver.model.multisell.Multisell;
|
||||||
@@ -112,12 +111,6 @@ public class AdminReload implements IAdminCommandHandler
|
|||||||
sendReloadPage(activeChar);
|
sendReloadPage(activeChar);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Quests Reloaded.");
|
BuilderUtil.sendSysMessage(activeChar, "Quests Reloaded.");
|
||||||
}
|
}
|
||||||
else if (type.startsWith("npcbuffers"))
|
|
||||||
{
|
|
||||||
DatatablesManager.reloadAll();
|
|
||||||
sendReloadPage(activeChar);
|
|
||||||
BuilderUtil.sendSysMessage(activeChar, "All Buffer skills tables have been reloaded");
|
|
||||||
}
|
|
||||||
else if (type.equals("configs"))
|
else if (type.equals("configs"))
|
||||||
{
|
{
|
||||||
Config.load(ServerMode.GAME);
|
Config.load(ServerMode.GAME);
|
||||||
@@ -130,19 +123,6 @@ public class AdminReload implements IAdminCommandHandler
|
|||||||
sendReloadPage(activeChar);
|
sendReloadPage(activeChar);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "TradeList Table reloaded.");
|
BuilderUtil.sendSysMessage(activeChar, "TradeList Table reloaded.");
|
||||||
}
|
}
|
||||||
else if (type.equals("dbs"))
|
|
||||||
{
|
|
||||||
DatatablesManager.reloadAll();
|
|
||||||
sendReloadPage(activeChar);
|
|
||||||
BuilderUtil.sendSysMessage(activeChar, "BufferSkillsTable reloaded.");
|
|
||||||
BuilderUtil.sendSysMessage(activeChar, "NpcBufferSkillIdsTable reloaded.");
|
|
||||||
BuilderUtil.sendSysMessage(activeChar, "AccessLevels reloaded.");
|
|
||||||
BuilderUtil.sendSysMessage(activeChar, "AdminCommandAccessRights reloaded.");
|
|
||||||
BuilderUtil.sendSysMessage(activeChar, "GmListTable reloaded.");
|
|
||||||
BuilderUtil.sendSysMessage(activeChar, "ClanTable reloaded.");
|
|
||||||
BuilderUtil.sendSysMessage(activeChar, "AugmentationData reloaded.");
|
|
||||||
BuilderUtil.sendSysMessage(activeChar, "HelperBuffTable reloaded.");
|
|
||||||
}
|
|
||||||
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.");
|
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)
|
catch (Exception e)
|
||||||
|
@@ -1,35 +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.gameserver.datatables.sql.ClanTable;
|
|
||||||
import org.l2jmobius.gameserver.datatables.sql.HelperBuffTable;
|
|
||||||
import org.l2jmobius.gameserver.datatables.xml.AdminData;
|
|
||||||
import org.l2jmobius.gameserver.datatables.xml.AugmentationData;
|
|
||||||
import org.l2jmobius.gameserver.datatables.xml.ExperienceData;
|
|
||||||
|
|
||||||
public class DatatablesManager
|
|
||||||
{
|
|
||||||
public static void reloadAll()
|
|
||||||
{
|
|
||||||
AdminData.getInstance().load();
|
|
||||||
AugmentationData.getInstance().load();
|
|
||||||
ClanTable.getInstance().load();
|
|
||||||
HelperBuffTable.getInstance().load();
|
|
||||||
ExperienceData.getInstance().load();
|
|
||||||
}
|
|
||||||
}
|
|
Reference in New Issue
Block a user