mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 17:47:32 +00:00
Added an event hook for the scripted command event
This commit is contained in:
1 parent
1cdeb34953
commit
1421f9e819
1 file changed
+7
@@ -568,6 +568,13 @@ public class EventHooks {
|
||||
return false;
|
||||
}
|
||||
|
||||
public static void onScriptedCommand(CustomNPCsEvent.ScriptedCommandEvent event) {
|
||||
ForgeDataScript handler = ScriptController.Instance.forgeScripts;
|
||||
if (handler.isEnabled()) {
|
||||
handler.callScript(EnumScriptType.SCRIPT_COMMAND, event);
|
||||
}
|
||||
}
|
||||
|
||||
public static void onCustomGuiButton(IPlayer player, ICustomGui gui, int buttonId) {
|
||||
CustomGuiEvent.ButtonEvent event = new CustomGuiEvent.ButtonEvent(player, gui, buttonId);
|
||||
CustomGuiController.onButton(event);
|
||||
|
||||
Reference in new issue
Block a user