This commit is contained in:
Ka0rX 2023-03-30 18:46:20 +01:00
parent 7f07f9e349
commit ddd3034584

View File

@ -19,12 +19,19 @@ public class DefaultMMOLoader extends MMOLoader {
public Trigger loadTrigger(MMOLineConfig config) { public Trigger loadTrigger(MMOLineConfig config) {
if (config.getKey().equals("from")) if (config.getKey().equals("from"))
return new FromTrigger(config); return new FromTrigger(config);
if (config.getKey().equals("stat")) if (config.getKey().equals("stat"))
return new StatTrigger(config); return new StatTrigger(config);
if (config.getKey().equals("unlock_skill")) if (config.getKey().equals("unlock_skill"))
return new UnlockSkillTrigger(config); return new UnlockSkillTrigger(config);
if (config.getKey().equals("skill_buff"))
return new SkillBuffTrigger(config);
if (config.getKey().equals("message")) if (config.getKey().equals("message"))
return new MessageTrigger(config); return new MessageTrigger(config);
if (config.getKey().equals("sound") || config.getKey().equals("playsound")) if (config.getKey().equals("sound") || config.getKey().equals("playsound"))
return new SoundTrigger(config); return new SoundTrigger(config);