mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 20:52:36 +00:00
Merge pull request #114 from Goodbird-git/scripted-commands
Implemented scripted commands
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user