mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 14:19:13 +00:00
Potential Fix to Usuable Type names
This commit is contained in:
1 parent
8da42e7b7c
commit
638c915965
4 files changed
+76
-10
No files matched your search
@@ -229,14 +229,24 @@ public class ScriptHookController implements IScriptHookHandler {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerHooks(ScriptContext context, String functionName) {
|
||||
/**
|
||||
* Convenience method to register a hook using ScriptContext.
|
||||
* @param context The script context
|
||||
* @param functionName The hook function name
|
||||
*/
|
||||
public void registerHook(ScriptContext context, String functionName) {
|
||||
registerHook(context.hookContext, functionName);
|
||||
}
|
||||
|
||||
@Override
|
||||
/**
|
||||
* Convenience method to register multiple hooks using ScriptContext.
|
||||
* @param context The script context
|
||||
* @param functionNames The hook function names
|
||||
*/
|
||||
public void registerHooks(ScriptContext context, String... functionNames) {
|
||||
registerHooks(context.hookContext, functionNames);
|
||||
for (String fn : functionNames) {
|
||||
registerHook(context.hookContext, fn);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user