Skip to content

Minor Update

Latest
Compare
Choose a tag to compare
@conclube conclube released this 08 Oct 14:15
· 1 commit to master since this release
b4fb833

Features

  • EventBuilder<T extends Event>#executeIfElse(Predicate<T>,Consumer<T>,Consumer<T>)
    First consumer will be accepted if the predicate tests true, else the second consumer will be accepted.
  • EventBuilder<T extends Event>#filter(Predicate<T>,Consumer<T>)
    If predicate tests false, code execution will be stopped but the consumer will be accepted.

Fixes

  • Updating registered status when invoking EventHandler<T extends Event>#register(Plugin).
  • Consumer in EventBuilder<T extends Event>#filter(Predicate<T>,Consumer<T>) was accepting when the predicate was testing true.