{
if(Config.DONTLOADQUEST)
{
return true;
}
Quest q = QuestManager.getQuest(name);
File f;
if(q != null)
{
String path = q.getClass().getPackage().getName().replace(".", "/");
f = new File(Config.DATAPACK_ROOT, "data/scripts/" + path + "/");
if(f.isDirectory())
{
return reloadClassByPath(f);
}
}
q = QuestManager.getQuest(Integer.parseInt(name));
if(q != null)
{
String path = q.getClass().getPackage().getName().replace(".", "/");
f = new File(Config.DATAPACK_ROOT, "data/scripts/" + path + "/");
if(f.isDirectory())
{
return reloadClassByPath(f);
}