added __on_start and defined better meta-events
This commit is contained in:
1 parent
0a45778e4a
commit
4c09d6b736
8 files changed
+86
-22
No files matched your search
@@ -322,12 +322,12 @@ public abstract class ScriptHost
|
||||
if (oldUserHost != null) return oldUserHost;
|
||||
ScriptHost userHost = this.duplicate();
|
||||
userHost.user = user;
|
||||
this.transferToChild(userHost);
|
||||
this.setupUserHost(userHost);
|
||||
userHosts.put(user, userHost);
|
||||
return userHost;
|
||||
}
|
||||
|
||||
protected void transferToChild(ScriptHost host)
|
||||
protected void setupUserHost(ScriptHost host)
|
||||
{
|
||||
// adding imports
|
||||
host.modules.putAll(this.modules);
|
||||
|
||||
Reference in new issue
Block a user