Merge pull request #114 from Goodbird-git/scripted-commands

Implemented scripted commands
This commit is contained in:
Kam authored and GitHub committed 2024-01-22 21:56:34 -05:00
commit 97d3df9f38
4 files changed
+111

No files matched your search

@@ -569,6 +569,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);