mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 11:59:26 +00:00
Add TickIgnoreType
This commit is contained in:
1 parent
ead63d8e30
commit
361d210d1a
1 file changed
+37
@@ -245,6 +245,43 @@ public class CustomNpcs {
|
||||
if (ScriptIgnoreTime < 0)
|
||||
ScriptIgnoreTime = 0;
|
||||
|
||||
try {
|
||||
String[] ignoreTypes = ScriptLogIgnoreType.split(",");
|
||||
for (String s : ignoreTypes) {
|
||||
EnumScriptType type = EnumScriptType.valueOfIgnoreCase(s);
|
||||
if(type != null){
|
||||
switch (type){
|
||||
case INIT:
|
||||
InitIgnore = true;
|
||||
case TICK:
|
||||
TickIgnore = true;
|
||||
case INTERACT:
|
||||
InteractIgnore = true;
|
||||
case DIALOG:
|
||||
DialogIgnore = true;
|
||||
case DAMAGED:
|
||||
DamagedIgnore = true;
|
||||
case KILLED:
|
||||
KilledIgnore = true;
|
||||
case ATTACK:
|
||||
AttackIgnore = true;
|
||||
case TARGET:
|
||||
TargetIgnore = true;
|
||||
case COLLIDE:
|
||||
CollideIgnore = true;
|
||||
case KILLS:
|
||||
KillsIgnore = true;
|
||||
case DIALOG_CLOSE:
|
||||
DialogCloseIgnore = true;
|
||||
case TIMER:
|
||||
TimerIgnore = true;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (Exception ignored) {}
|
||||
|
||||
EnchantInterface.load();
|
||||
CustomItems.load();
|
||||
|
||||
|
||||
Reference in new issue
Block a user