Package ch.njol.skript.lang

Examples of ch.njol.skript.lang.Trigger.execute()


      return;
    }
    final ScheduledEvent e = new ScheduledEvent(w);
    SkriptEventHandler.logEventStart(e);
    SkriptEventHandler.logTriggerEnd(t);
    t.execute(e);
    SkriptEventHandler.logTriggerEnd(t);
    SkriptEventHandler.logEventEnd();
  }
 
  @SuppressWarnings("null")
View Full Code Here


      return;
    }
    final ScheduledEvent e = w == null ? new ScheduledNoWorldEvent() : new ScheduledEvent(w);
    SkriptEventHandler.logEventStart(e);
    SkriptEventHandler.logTriggerStart(t);
    t.execute(e);
    SkriptEventHandler.logTriggerEnd(t);
    SkriptEventHandler.logEventEnd();
  }
 
  @SuppressWarnings("null")
View Full Code Here

    while (ts.hasNext()) {
      final Trigger t = ts.next();
      if (!t.getEvent().check(e))
        continue;
      logTriggerStart(t);
      t.execute(e);
      logTriggerEnd(t);
    }
   
    logEventEnd();
  }
View Full Code Here

 
  final static void test() {
   
    final Trigger t = ScriptLoader.loadTrigger(nodeFromString("on rightclick on air:\n kill player"));
    assert t != null;
    t.execute(new PlayerInteractEvent(njol, Action.LEFT_CLICK_AIR, null, null, null));
   
  }
 
  @SuppressWarnings("null")
  private final static SectionNode nodeFromString(final String s) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.