Skip to content

Releases: conclube/EventBuilder

Minor Update

08 Oct 14:15
b4fb833
Compare
Choose a tag to compare

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.