cleanup undef
This commit is contained in:
1 parent
24c1ee8d3d
commit
6413c17657
5 files changed
+63
-25
No files matched your search
@@ -61,6 +61,20 @@ public class CarpetScriptHost extends ScriptHost
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void delFunction(String funName)
|
||||
{
|
||||
super.delFunction(funName);
|
||||
// mcarpet
|
||||
if (funName.startsWith("__on_"))
|
||||
{
|
||||
// this is nasty, we have the host and function, yet we add it via names, but hey - works for now
|
||||
String event = funName.replaceFirst("__on_","");
|
||||
if (CarpetEventServer.Event.byName.containsKey(event))
|
||||
scriptServer.events.removeEventDirectly(event, this, funName);
|
||||
}
|
||||
}
|
||||
|
||||
public CarpetScriptHost retrieveForExecution(ServerCommandSource source)
|
||||
{
|
||||
if (!perUser)
|
||||
|
||||
Reference in new issue
Block a user