Fixed LongTimeEvent been unable to load config.xml file.
This commit is contained in:
parent
7887557c25
commit
1caed5558c
@ -32,6 +32,7 @@ import javax.xml.parsers.DocumentBuilderFactory;
|
||||
import org.w3c.dom.Document;
|
||||
import org.w3c.dom.Node;
|
||||
|
||||
import com.l2jserver.Config;
|
||||
import com.l2jserver.gameserver.ThreadPoolManager;
|
||||
import com.l2jserver.gameserver.data.sql.impl.AnnouncementsTable;
|
||||
import com.l2jserver.gameserver.data.xml.impl.NpcData;
|
||||
@ -110,7 +111,7 @@ public class LongTimeEvent extends Quest
|
||||
*/
|
||||
private void loadConfig()
|
||||
{
|
||||
File configFile = new File("scripts/events/" + getName() + "/config.xml");
|
||||
File configFile = new File(Config.DATAPACK_ROOT.getPath() + "/scripts/events/" + getName() + "/config.xml");
|
||||
try
|
||||
{
|
||||
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
|
||||
|
Loading…
Reference in New Issue
Block a user