Сообщений: 392
Тем: 114
Зарегистрирован: Sep 2010
в админке не загружается файлы Configs как можно исправить? и Multisell загружается 2-3 минуты.
Сообщений: 31
Тем: 2
Зарегистрирован: Sep 2011
Репутация:
46
1.Прописать перезагрузку конфиг системы, а не только простых конфигов в\data\scripts\commands\admin\AdminReload.
2.Зависит от параметров железа.
И научитесь правильно формулировать вопросы.
Сообщений: 392
Тем: 114
Зарегистрирован: Sep 2010
сможешь сделать пожалуйста?
Сообщений: 31
Тем: 2
Зарегистрирован: Sep 2011
Репутация:
46
PHP код: <?php
case admin_reload_configs:
{
Config.load();
ConfigSystem.load();
GmListTable.broadcastMessageToGMs("Configs reloaded");
activeChar.sendPacket(new NpcHtmlMessage(5).setFile("data/html/admin/admserver.htm"));
return true;
}
Сообщений: 392
Тем: 114
Зарегистрирован: Sep 2010
сервер теперь не включается
Сообщений: 31
Тем: 2
Зарегистрирован: Sep 2011
Репутация:
46
:facepalm: Не представляю что вы сделали, просто замените старый метод на мой или добавьте в старый строку ConfigSystem.load();
Сообщений: 392
Тем: 114
Зарегистрирован: Sep 2010
вот сделай сам
package commands.admin;
import services.VoteManager;
import l2open.Config;
import l2open.extensions.multilang.CustomMessage;
import l2open.extensions.scripts.ScriptFile;
import l2open.extensions.scripts.Scripts;
import l2open.extensions.scripts.Scripts.ScriptClassAndMethod;
import l2open.gameserver.TradeController;
import l2open.gameserver.handler.AdminCommandHandler;
import l2open.gameserver.handler.IAdminCommandHandler;
import l2open.gameserver.instancemanager.DimensionalRiftManager;
import l2open.gameserver.instancemanager.InstancedZoneManager;
import l2open.gameserver.instancemanager.ServerVariables;
import l2open.gameserver.instancemanager.ZoneManager;
import l2open.gameserver.model.L2Multisell;
import l2open.gameserver.model.L2Object;
import l2open.gameserver.model.L2ObjectsStorage;
import l2open.gameserver.model.L2Player;
import l2open.gameserver.model.Reflection;
import l2open.gameserver.model.entity.olympiad.OlympiadDatabase;
import l2open.gameserver.model.quest.Quest;
import l2open.gameserver.model.quest.QuestState;
import l2open.gameserver.serverpackets.NpcHtmlMessage;
import l2open.gameserver.tables.DoorTable;
import l2open.gameserver.tables.FishTable;
import l2open.gameserver.tables.GmListTable;
import l2open.gameserver.tables.NpcTable;
import l2open.gameserver.tables.PetDataTable;
import l2open.gameserver.tables.ReflectionTable;
import l2open.gameserver.tables.SkillTable;
import l2open.gameserver.tables.SpawnTable;
import l2open.gameserver.tables.StaticObjectsTable;
import l2open.gameserver.tables.TerritoryTable;
import l2open.util.Files;
import l2open.util.HWID;
import l2open.util.Strings;
public class AdminReload implements IAdminCommandHandler, ScriptFile
{
private static enum Commands
{
admin_reload,
admin_reload_multisell,
admin_reload_gmaccess,
admin_reload_htm,
admin_reload_qs,
admin_reload_qs_help,
admin_reload_loc,
admin_reload_skills,
admin_reload_npc,
admin_reload_spawn,
admin_reload_fish,
admin_reload_abuse,
admin_reload_translit,
admin_reload_shops,
admin_reload_static,
admin_reload_doors,
admin_reload_pkt_logger,
admin_reload_pets,
admin_reload_locale,
admin_reload_instances,
admin_reload_hwid_bonus,
admin_reload_nobles,
admin_reload_vote
}
public boolean useAdminCommand(Enum comm, String[] wordList, String fullString, L2Player activeChar)
{
Commands command = (Commands) comm;
if(!activeChar.getPlayerAccess().CanReload)
return false;
switch(command)
{
case admin_reload:
break;
case admin_reload_multisell:
{
try
{
L2Multisell.getInstance().reload();
}
catch(Exception e)
{
return false;
}
for(ScriptClassAndMethod handler : Scripts.onReloadMultiSell)
activeChar.callScripts(handler.scriptClass, handler.method);
activeChar.sendMessage("Multisell list reloaded!");
break;
}
case admin_reload_gmaccess:
{
try
{
Config.loadGMAccess();
for(L2Player player : L2ObjectsStorage.getAllPlayersForIterate())
if(!Config.EVERYBODY_HAS_ADMIN_RIGHTS)
player.setPlayerAccess(Config.gmlist.get(player.getObjectId()));
else
player.setPlayerAccess(Config.gmlist.get(new Integer(0)));
}
catch(Exception e)
{
return false;
}
activeChar.sendMessage("GMAccess reloaded!");
break;
}
case admin_reload_htm:
{
Files.cacheClean();
activeChar.sendMessage("HTML cache clearned.");
break;
}
case admin_reload_qs:
{
if(fullString.endsWith("all"))
for(L2Player p : L2ObjectsStorage.getAllPlayersForIterate())
reloadQuestStates(p);
else
{
L2Object t = activeChar.getTarget();
if(t != null && t.isPlayer())
{
L2Player p = (L2Player) t;
reloadQuestStates(p);
}
else
reloadQuestStates(activeChar);
}
break;
}
case admin_reload_qs_help:
{
activeChar.sendMessage("");
activeChar.sendMessage("Quest Help:");
activeChar.sendMessage("reload_qs_help - This Message.");
activeChar.sendMessage("reload_qs <selected target> - reload all quest states for target.");
activeChar.sendMessage("reload_qs <no target or target is not player> - reload quests for self.");
activeChar.sendMessage("reload_qs all - reload quests for all players in world.");
activeChar.sendMessage("");
break;
}
case admin_reload_loc:
{
TerritoryTable.getInstance().reloadData();
ZoneManager.getInstance().reload();
GmListTable.broadcastMessageToGMs("Locations and zones reloaded.");
break;
}
case admin_reload_skills:
{
SkillTable.getInstance().reload();
GmListTable.broadcastMessageToGMs("Skill table reloaded by " + activeChar.getName() + ".");
_log.info("Skill table reloaded by " + activeChar.getName() + ".");
break;
}
case admin_reload_npc:
{
NpcTable.getInstance().reloadAllNpc();
GmListTable.broadcastMessageToGMs("Npc table reloaded.");
break;
}
case admin_reload_spawn:
{
SpawnTable.getInstance().reloadAll();
GmListTable.broadcastMessageToGMs("All npc respawned.");
break;
}
case admin_reload_fish:
{
FishTable.getInstance().reload();
GmListTable.broadcastMessageToGMs("Fish table reloaded.");
break;
}
case admin_reload_abuse:
{
Config.abuseLoad();
GmListTable.broadcastMessageToGMs("Abuse reloaded.");
break;
}
case admin_reload_translit:
{
Strings.reload();
GmListTable.broadcastMessageToGMs("Translit reloaded.");
break;
}
case admin_reload_shops:
{
TradeController.reload();
GmListTable.broadcastMessageToGMs("Shops reloaded.");
break;
}
case admin_reload_static:
{
StaticObjectsTable.getInstance().reloadStaticObjects();
GmListTable.broadcastMessageToGMs("Static objects table reloaded.");
break;
}
case admin_reload_doors:
{
DoorTable.getInstance().respawn();
GmListTable.broadcastMessageToGMs("Door table reloaded.");
break;
}
case admin_reload_pkt_logger:
{
try
{
Config.reloadPacketLoggerConfig();
activeChar.sendMessage("Packet Logger setting reloaded");
}
catch(Exception e)
{
activeChar.sendMessage("Failed reload Packet Logger setting. Check stdout for error!");
}
break;
}
case admin_reload_pets:
{
PetDataTable.reload();
GmListTable.broadcastMessageToGMs("PetDataTable reloaded");
break;
}
case admin_reload_locale:
{
CustomMessage.reload();
GmListTable.broadcastMessageToGMs("Localization reloaded");
break;
}
case admin_reload_instances:
{
InstancedZoneManager.getInstance().reload();
DimensionalRiftManager.getInstance().reload();
GmListTable.broadcastMessageToGMs("Instanced zones reloaded");
Reflection r = ReflectionTable.SOD_REFLECTION_ID == 0 ? null : ReflectionTable.getInstance().get(ReflectionTable.SOD_REFLECTION_ID);
if(r != null)
r.collapse();
ServerVariables.unset("SoD_id");
break;
}
case admin_reload_hwid_bonus:
{
HWID.reloadBannedHWIDs();
HWID.reloadBonusHWIDs();
GmListTable.broadcastMessageToGMs("HWID bonus/bans reloaded");
break;
}
case admin_reload_nobles:
{
OlympiadDatabase.loadNobles();
OlympiadDatabase.loadNoblesRank();
break;
}
case admin_reload_vote:
{
VoteManager.load();
break;
}
}
activeChar.sendPacket(new NpcHtmlMessage(5).setFile("data/html/admin/reload.htm"));
return true;
}
private void reloadQuestStates(L2Player p)
{
for(QuestState qs : p.getAllQuestsStates())
p.delQuestState(qs.getQuest().getName());
Quest.playerEnter(p);
}
public Enum[] getAdminCommandEnum()
{
return Commands.values();
}
public void onLoad()
{
AdminCommandHandler.getInstance().registerAdminCommandHandler(this);
}
public void onReload()
{}
public void onShutdown()
{}
}
Сообщений: 31
Тем: 2
Зарегистрирован: Sep 2011
Репутация:
46
А команду прописать не нужно ? Могли бы и сами понять
PHP код: <?php
private static enum Commands
{
admin_reload,
admin_reload_configs,
admin_reload_multisell,
admin_reload_gmaccess,
admin_reload_htm,
admin_reload_qs,
admin_reload_qs_help,
admin_reload_loc,
admin_reload_skills,
admin_reload_npc,
admin_reload_spawn,
admin_reload_fish,
admin_reload_abuse,
admin_reload_translit,
admin_reload_shops,
admin_reload_static,
admin_reload_doors,
admin_reload_pkt_logger,
admin_reload_pets,
admin_reload_locale,
admin_reload_instances,
admin_reload_hwid_bonus,
admin_reload_nobles,
admin_reload_vote
}
Сообщений: 392
Тем: 114
Зарегистрирован: Sep 2010
всё равно не включается
Making a full backup into 06.11.2011-02'00'07_backup_full.sql
"mysqldump.exe" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.
Backup complite 06.11.2011-02'00'07_backup_full.sql
Starting L2Open Game Server.
02:00:07.140 Loading gameserver config.
02:00:07.203 Abuse: Loaded 18 abuse words.
02:00:07.281 loading xml GMAccess
02:00:07.328 MLog clients using java 1.4+ standard logging.
02:00:07.500 Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true
; trace: 10]
02:00:07.593 Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSourc
e [ acquireIncrement -> 5, acquireRetryAttempts -> 0, acquireRetryDelay -> 100,
autoCommitOnClose -> true, automaticTestTable -> null, breakAfterAcquireFailure
-> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectio
nTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSource
Name -> 2s0m678jwlzja6ogm6uh|6ac461, debugUnreturnedConnectionStackTraces -> fal
se, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocat
ion -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 2s0m67
8jwlzja6ogm6uh|6ac461, idleConnectionTestPeriod -> 60, initialPoolSize -> 1, jdb
cUrl -> jdbc:mysql://localhost/opendb?useUnicode=true&characterEncoding=UTF-8, m
axAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 600, maxIdl
eTimeExcessConnections -> 0, maxPoolSize -> 50, maxStatements -> 100, maxStateme
ntsPerConnection -> 0, minPoolSize -> 1, numHelperThreads -> 5, numThreadsAwaiti
ngCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=****
**, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, test
ConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditional
ReflectiveProxies -> false ]
02:00:07.859 Loaded 418 translit entrys
02:00:07.859 Clear characters online status and accesslevel.
02:00:08.093 Total cleaned: 0, updated: 0 elements in database.
02:00:08.109 IdFactory: Table ally_data contains 0 rows
02:00:08.109 IdFactory: Table characters contains 1 rows
02:00:08.109 IdFactory: Table pets contains 0 rows
02:00:08.109 IdFactory: Table couples contains 0 rows
02:00:08.109 IdFactory: Table clan_data contains 0 rows
02:00:08.109 IdFactory: Table items contains 11 rows
02:00:08.109 IdFactory: Extracting 12 used id's from data tables...
02:00:08.109 IdFactory: Extracted 1 used id's from characters
02:00:08.109 IdFactory: Extracted 11 used id's from items
02:00:08.109 IdFactory: Extracted 0 used id's from clan_data
02:00:08.109 IdFactory: Extracted 0 used id's from ally_data
02:00:08.109 IdFactory: Extracted 0 used id's from pets
02:00:08.109 IdFactory: Extracted 0 used id's from couples
02:00:08.109 IdFactory: Successfully extracted 12 used id's from data tables.
02:00:08.109 IDFactory: 102912 id's available.
02:00:08.156 CrestCache: Loaded 0 crests
02:00:08.156 Initializing AuctionManager
02:00:08.234 Loaded: 38 active auction(s)
02:00:11.546 SkillsEngine: Loaded 62253 skill templates from XML files. Max id:
26073, max level: 259
02:00:17.031 PetSkillsTable: Loaded 2187 skills.
02:00:18.125 WARNING: item 13254 action attached skill not done: Wink[id=5763,l
vl=1]
02:00:18.453 WARNING: item 15484 attached skill not exist: 8509 1
02:00:18.671 WARNING: item 20616 action attached skill not done: Theme - Town[i
d=21092,lvl=1]
02:00:18.671 WARNING: item 20617 action attached skill not done: Theme - Hero[i
d=21093,lvl=1]
02:00:18.671 WARNING: item 20618 action attached skill not done: Theme - Theme
Park[id=21094,lvl=1]
02:00:18.734 WARNING: item 21011 attached skill not exist: 21211 1
02:00:18.734 WARNING: item 21042 attached skill not exist: 21221 1
02:00:18.750 XmlArmorLoader: Loaded 3353 Armors
02:00:18.750 XmlArmorLoader: Loaded 240 Rare Armors
02:00:18.750 XmlArmorLoader: Loaded 58 PvP Armors
02:00:20.875 XmlWeaponLoader: Loaded 3936 Weapons
02:00:20.875 XmlWeaponLoader: Loaded 753 Rare Weapons
02:00:20.875 XmlWeaponLoader: Loaded 501 PvP Weapons
02:00:20.875 XmlWeaponLoader: Loaded 1603 SA Weapons
02:00:24.671 XmlEtcItemLoader: Loaded 10423 EtcItems
02:00:24.796 TradeController: Loaded 4 file(s).
02:00:24.796 TradeController: Loaded 21630 Items.
02:00:24.796 TradeController: Loaded 680 Buylists.
02:00:25.078 RecipeController: Loaded 1000 Recipes.
02:00:29.250 SkillTreeTable: Loaded 16595 skills.
02:00:29.250 SkillTreeTable: Loaded 109 fishing skills.
02:00:29.250 SkillTreeTable: Loaded 20 transformation skills.
02:00:29.250 SkillTreeTable: Loaded 64 clan skills.
02:00:29.250 SkillTreeTable: Loaded 523 enchanted skills.
02:00:29.250 SkillTreeTable: Loaded 18 pledge skills.
02:00:29.265 SkillSpellbookTable: Loaded 361 Spellbooks.
02:00:29.281 CharTemplateTable: Loaded 206 Character Templates.
02:00:29.281 NpcTable: Loaded 425 AI params for 307 NPCs.
02:00:29.531 Scripts loading...
.\data\scripts\commands\admin\AdminReload.java:70: class, interface, or enum exp
ected
.\data\scripts\commands\admin\AdminReload.java:74: class, interface, or enum exp
ected
.\data\scripts\commands\admin\AdminReload.java:77: class, interface, or enum exp
ected
.\data\scripts\commands\admin\AdminReload.java:81: class, interface, or enum exp
ected
.\data\scripts\commands\admin\AdminReload.java:86: class, interface, or enum exp
ected
.\data\scripts\commands\admin\AdminReload.java:90: class, interface, or enum exp
ected
.\data\scripts\commands\admin\AdminReload.java:93: class, interface, or enum exp
ected
.\data\scripts\commands\admin\AdminReload.java:94: class, interface, or enum exp
ected
.\data\scripts\commands\admin\AdminReload.java:95: class, interface, or enum exp
ected
.\data\scripts\commands\admin\AdminReload.java:101: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:104: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:106: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:110: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:112: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:113: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:117: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:118: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:119: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:125: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:129: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:132: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:133: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:136: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:138: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:143: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:144: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:145: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:146: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:147: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:148: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:149: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:150: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:154: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:155: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:156: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:157: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:161: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:162: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:163: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:164: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:168: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:169: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:170: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:174: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:175: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:176: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:180: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:181: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:182: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:186: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:187: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:188: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:192: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:193: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:194: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:198: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:199: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:200: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:201: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:202: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:206: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:207: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:208: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:212: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:213: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:214: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:218: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:219: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:220: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:226: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:227: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:231: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:233: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:237: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:238: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:239: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:243: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:244: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:245: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:249: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:250: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:252: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:253: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:255: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:256: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:257: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:261: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:262: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:263: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:264: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:268: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:269: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:270: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:274: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:275: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:278: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:279: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:285: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:286: class, interface, or enum ex
pected
.\data\scripts\commands\admin\AdminReload.java:288: class, interface, or enum ex
pected
02:00:31.453 Can't compile scripts!
02:00:31.453 Scripts loaded with errors. Loaded 829 classes.
Server halting [status=0] / Reason: Scripts loaded with errors. Loaded 829 class
es.
server terminated
Для продолжения нажмите любую клавишу . . .
Сообщений: 31
Тем: 2
Зарегистрирован: Sep 2011
Репутация:
46
PHP код: <?php
package commands.admin;
import services.VoteManager;
import l2open.Config;
import l2open.extensions.multilang.CustomMessage;
import l2open.extensions.scripts.ScriptFile;
import l2open.extensions.scripts.Scripts;
import l2open.extensions.scripts.Scripts.ScriptClassAndMethod;
import l2open.gameserver.TradeController;
import l2open.gameserver.handler.AdminCommandHandler;
import l2open.gameserver.handler.IAdminCommandHandler;
import l2open.gameserver.instancemanager.DimensionalRiftManager;
import l2open.gameserver.instancemanager.InstancedZoneManager;
import l2open.gameserver.instancemanager.ServerVariables;
import l2open.gameserver.instancemanager.ZoneManager;
import l2open.gameserver.model.L2Multisell;
import l2open.gameserver.model.L2Object;
import l2open.gameserver.model.L2ObjectsStorage;
import l2open.gameserver.model.L2Player;
import l2open.gameserver.model.Reflection;
import l2open.gameserver.model.entity.olympiad.OlympiadDatabase;
import l2open.gameserver.model.quest.Quest;
import l2open.gameserver.model.quest.QuestState;
import l2open.gameserver.serverpackets.NpcHtmlMessage;
import l2open.gameserver.tables.DoorTable;
import l2open.gameserver.tables.FishTable;
import l2open.gameserver.tables.GmListTable;
import l2open.gameserver.tables.NpcTable;
import l2open.gameserver.tables.PetDataTable;
import l2open.gameserver.tables.ReflectionTable;
import l2open.gameserver.tables.SkillTable;
import l2open.gameserver.tables.SpawnTable;
import l2open.gameserver.tables.StaticObjectsTable;
import l2open.gameserver.tables.TerritoryTable;
import l2open.util.Files;
import l2open.util.HWID;
import l2open.util.Strings;
import l2open.config.ConfigSystem;
public class AdminReload implements IAdminCommandHandler, ScriptFile
{
private static enum Commands
{
admin_reload,
admin_reload_configs,
admin_reload_multisell,
admin_reload_gmaccess,
admin_reload_htm,
admin_reload_qs,
admin_reload_qs_help,
admin_reload_loc,
admin_reload_skills,
admin_reload_npc,
admin_reload_spawn,
admin_reload_fish,
admin_reload_abuse,
admin_reload_translit,
admin_reload_shops,
admin_reload_static,
admin_reload_doors,
admin_reload_pkt_logger,
admin_reload_pets,
admin_reload_locale,
admin_reload_instances,
admin_reload_hwid_bonus,
admin_reload_nobles,
admin_reload_vote
}
public boolean useAdminCommand(Enum comm, String[] wordList, String fullString, L2Player activeChar)
{
Commands command = (Commands) comm;
if(!activeChar.getPlayerAccess().CanReload)
return false;
switch(command)
{
case admin_reload:
break;
case admin_reload_multisell:
{
try
{
L2Multisell.getInstance().reload();
}
catch(Exception e)
{
return false;
}
for(ScriptClassAndMethod handler : Scripts.onReloadMultiSell)
activeChar.callScripts(handler.scriptClass, handler.method);
activeChar.sendMessage("Multisell list reloaded!");
break;
}
case admin_reload_gmaccess:
{
try
{
Config.loadGMAccess();
for(L2Player player : L2ObjectsStorage.getAllPlayersForIterate())
if(!Config.EVERYBODY_HAS_ADMIN_RIGHTS)
player.setPlayerAccess(Config.gmlist.get(player.getObjectId()));
else
player.setPlayerAccess(Config.gmlist.get(new Integer(0)));
}
catch(Exception e)
{
return false;
}
activeChar.sendMessage("GMAccess reloaded!");
break;
}
case admin_reload_htm:
{
Files.cacheClean();
activeChar.sendMessage("HTML cache clearned.");
break;
}
case admin_reload_qs:
{
if(fullString.endsWith("all"))
for(L2Player p : L2ObjectsStorage.getAllPlayersForIterate())
reloadQuestStates(p);
else
{
L2Object t = activeChar.getTarget();
if(t != null && t.isPlayer())
{
L2Player p = (L2Player) t;
reloadQuestStates(p);
}
else
reloadQuestStates(activeChar);
}
break;
}
case admin_reload_qs_help:
{
activeChar.sendMessage("");
activeChar.sendMessage("Quest Help:");
activeChar.sendMessage("reload_qs_help - This Message.");
activeChar.sendMessage("reload_qs <selected target> - reload all quest states for target.");
activeChar.sendMessage("reload_qs <no target or target is not player> - reload quests for self.");
activeChar.sendMessage("reload_qs all - reload quests for all players in world.");
activeChar.sendMessage("");
break;
}
case admin_reload_loc:
{
TerritoryTable.getInstance().reloadData();
ZoneManager.getInstance().reload();
GmListTable.broadcastMessageToGMs("Locations and zones reloaded.");
break;
}
case admin_reload_skills:
{
SkillTable.getInstance().reload();
GmListTable.broadcastMessageToGMs("Skill table reloaded by " + activeChar.getName() + ".");
_log.info("Skill table reloaded by " + activeChar.getName() + ".");
break;
}
case admin_reload_npc:
{
NpcTable.getInstance().reloadAllNpc();
GmListTable.broadcastMessageToGMs("Npc table reloaded.");
break;
}
case admin_reload_configs:
{
Config.load();
ConfigSystem.load();
GmListTable.broadcastMessageToGMs("Configs reloaded");
activeChar.sendPacket(new NpcHtmlMessage(5).setFile("data/html/admin/admserver.htm"));
return true;
}
case admin_reload_spawn:
{
SpawnTable.getInstance().reloadAll();
GmListTable.broadcastMessageToGMs("All npc respawned.");
break;
}
case admin_reload_fish:
{
FishTable.getInstance().reload();
GmListTable.broadcastMessageToGMs("Fish table reloaded.");
break;
}
case admin_reload_abuse:
{
Config.abuseLoad();
GmListTable.broadcastMessageToGMs("Abuse reloaded.");
break;
}
case admin_reload_translit:
{
Strings.reload();
GmListTable.broadcastMessageToGMs("Translit reloaded.");
break;
}
case admin_reload_shops:
{
TradeController.reload();
GmListTable.broadcastMessageToGMs("Shops reloaded.");
break;
}
case admin_reload_static:
{
StaticObjectsTable.getInstance().reloadStaticObjects();
GmListTable.broadcastMessageToGMs("Static objects table reloaded.");
break;
}
case admin_reload_doors:
{
DoorTable.getInstance().respawn();
GmListTable.broadcastMessageToGMs("Door table reloaded.");
break;
}
case admin_reload_pkt_logger:
{
try
{
Config.reloadPacketLoggerConfig();
activeChar.sendMessage("Packet Logger setting reloaded");
}
catch(Exception e)
{
activeChar.sendMessage("Failed reload Packet Logger setting. Check stdout for error!");
}
break;
}
case admin_reload_pets:
{
PetDataTable.reload();
GmListTable.broadcastMessageToGMs("PetDataTable reloaded");
break;
}
case admin_reload_locale:
{
CustomMessage.reload();
GmListTable.broadcastMessageToGMs("Localization reloaded");
break;
}
case admin_reload_instances:
{
InstancedZoneManager.getInstance().reload();
DimensionalRiftManager.getInstance().reload();
GmListTable.broadcastMessageToGMs("Instanced zones reloaded");
Reflection r = ReflectionTable.SOD_REFLECTION_ID == 0 ? null : ReflectionTable.getInstance().get(ReflectionTable.SOD_REFLECTION_ID);
if(r != null)
r.collapse();
ServerVariables.unset("SoD_id");
break;
}
case admin_reload_hwid_bonus:
{
HWID.reloadBannedHWIDs();
HWID.reloadBonusHWIDs();
GmListTable.broadcastMessageToGMs("HWID bonus/bans reloaded");
break;
}
case admin_reload_nobles:
{
OlympiadDatabase.loadNobles();
OlympiadDatabase.loadNoblesRank();
break;
}
case admin_reload_vote:
{
VoteManager.load();
break;
}
}
activeChar.sendPacket(new NpcHtmlMessage(5).setFile("data/html/admin/reload.htm"));
return true;
}
private void reloadQuestStates(L2Player p)
{
for(QuestState qs : p.getAllQuestsStates())
p.delQuestState(qs.getQuest().getName());
Quest.playerEnter(p);
}
public Enum[] getAdminCommandEnum()
{
return Commands.values();
}
public void onLoad()
{
AdminCommandHandler.getInstance().registerAdminCommandHandler(this);
}
public void onReload()
{}
public void onShutdown()
{}
}
В хтмл админки
PHP код: <?php
<table width=260>
<tr>
<td width=40>
<button value="Main" action="bypass -h admin_admin" width=40 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF">
</td>
<td width=180>
<center>Reload Components</center>
</td>
<td width=40>
<button value="Back" action="bypass -h admin_server admserver.htm" width=40 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF">
</td>
</tr>
</table>
<br><br>
[admin_reload_multisell|Reload Multisells]%%
[admin_reload_shops|Reload Shops]%%
[admin_reload_skills|Reload Skills]%%
[admin_reload_npc|Reload NPC and Drop]%%
[admin_reload_spawn|Reload All Spawns]%%
[admin_reload_loc|Reload Locations and Zones]%%
[admin_reload_abuse|Reload Obscene Filter]%%
[admin_reload_translit|Reload Translit]%%
[admin_reload_htm|Reload Html]%%
[admin_reload_fish|Reload Fish]%%
[admin_reload_gmaccess|Reload Access]%%
[admin_reload_static|Reload Static Objects]%%
[admin_reload_doors|Reload Doors]%%
[admin_reload_configs|Reload Config]%%
[admin_cw_reload|Reload Cursed Weapon]
|