mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 18:49:39 +00:00
Migrated all EffectScript.ScriptType hooks to EnumScriptType
This commit is contained in:
1 parent
50e9f1b3e5
commit
d835d2acb0
5 files changed
+17
-31
No files matched your search
@@ -7,6 +7,7 @@ import noppes.npcs.EventHooks;
|
||||
import noppes.npcs.NoppesUtilServer;
|
||||
import noppes.npcs.api.entity.IPlayer;
|
||||
import noppes.npcs.api.handler.data.ICustomEffect;
|
||||
import noppes.npcs.constants.EnumScriptType;
|
||||
import noppes.npcs.controllers.CustomEffectController;
|
||||
import noppes.npcs.scripted.event.player.PlayerEvent;
|
||||
|
||||
@@ -193,7 +194,7 @@ public class CustomEffect implements ICustomEffect {
|
||||
return;
|
||||
}
|
||||
|
||||
script.callScript(EffectScript.ScriptType.OnEffectAdd, event);
|
||||
script.callScript(EnumScriptType.ON_EFFECT_ADD, event);
|
||||
}
|
||||
|
||||
EventHooks.onEffectAdded(iPlayer, playerEffect);
|
||||
@@ -213,7 +214,7 @@ public class CustomEffect implements ICustomEffect {
|
||||
return;
|
||||
}
|
||||
|
||||
script.callScript(EffectScript.ScriptType.OnEffectTick, event);
|
||||
script.callScript(EnumScriptType.ON_EFFECT_TICK, event);
|
||||
}
|
||||
|
||||
EventHooks.onEffectTick(iPlayer, playerEffect);
|
||||
@@ -234,7 +235,7 @@ public class CustomEffect implements ICustomEffect {
|
||||
return;
|
||||
}
|
||||
|
||||
script.callScript(EffectScript.ScriptType.OnEffectRemove, event);
|
||||
script.callScript(EnumScriptType.ON_EFFECT_REMOVE, event);
|
||||
}
|
||||
|
||||
EventHooks.onEffectRemove(iPlayer, playerEffect, type);
|
||||
|
||||
Reference in new issue
Block a user