if(Compiler.getInstance().compile(new File(Config.DATAPACK_ROOT, "data/scripts/" + name.replace(".", "/") + ".java"), System.out))
{
MemoryClassLoader classLoader = Compiler.getInstance().classLoader;
try
{
Class<?> c = classLoader.loadClass(name);
Script s = new Script(c);
ScriptObject oldSo = GameServer.scriptsObjects.remove(name);
if(oldSo != null)
{
oldSo.invokeMethod("onReload");