mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 23:12:18 +00:00
/kam command
For Scripted Command + Added to Hooks + Moved to Player Scripts Tab
This commit is contained in:
1 parent
9c2faa4dce
commit
8952adc444
3 files changed
+4
-6
No files matched your search
@@ -578,11 +578,9 @@ 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 boolean onScriptedCommand(CustomNPCsEvent.ScriptedCommandEvent event) {
|
||||
ScriptController.Instance.playerScripts.callScript(EnumScriptType.SCRIPT_COMMAND, event);
|
||||
return NpcAPI.EVENT_BUS.post(event);
|
||||
}
|
||||
|
||||
public static void onCustomGuiButton(IPlayer player, ICustomGui gui, int buttonId) {
|
||||
|
||||
Reference in new issue
Block a user