Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.
/ event Public archive

A builder-like event library for Bukkit/Velocity/ProtocolLib/Shiruka.

License

Notifications You must be signed in to change notification settings

Infumia/event

Repository files navigation

event

idea

Update Snapshot Sonatype Nexus (Releases) Sonatype Nexus (Snapshots)

How to Use (Developers)

Initiate the Library

final class Plugin {
  void onLoad() {
    // Bukkit
    final var bukkitEventManager = new BukkitEventManager(this);
    Plugins.init(bukkitEventManager);
    // Velocity
    final var velocityEventManager = new VelocityEventManager(this.proxyServer, this);
    Plugins.init(velocityEventManager);
    // Shiru ka
    final var shirukaEventManager = new ShirukaEventManager();
    Plugins.init(shirukaEventManager);
    // Protocol
    final var bukkitEventManager = new BukkitEventManager(this);
    Plugins.init(bukkitEventManager);
    Protocol.subscribe(ListenerPriority.NORMAL, PacketType.Play.Server.EXPLOSION)
      .filter(event -> true)
      .handler(event -> {

      })
      .bindWith(consumer);
  }
}

Maven

<dependencies>
  <!-- Do NOT forget to relocate -->
  <dependency>
    <groupId>tr.com.infumia</groupId>
    <artifactId>event-common</artifactId>
    <version>VERSION</version>
  </dependency>
  <dependency>
    <groupId>tr.com.infumia</groupId>
    <artifactId>event-bukkit</artifactId>
    <version>VERSION</version>
  </dependency>
  <dependency>
    <groupId>tr.com.infumia</groupId>
    <artifactId>event-protocol-lib</artifactId>
    <version>VERSION</version>
  </dependency>
  <dependency>
    <groupId>tr.com.infumia</groupId>
    <artifactId>event-velocity</artifactId>
    <version>VERSION</version>
  </dependency>
  <dependency>
    <groupId>tr.com.infumia</groupId>
    <artifactId>event-shiruka</artifactId>
    <version>VERSION</version>
  </dependency>
</dependencies>

Gradle

plugins {
  id "java"
}

dependencies {
  // Do NOT forget to relocate.
  implementation "tr.com.infumia:event-common:VERSION"
  implementation "tr.com.infumia:event-bukkit:VERSION"
  implementation "tr.com.infumia:event-protocol-lib:VERSION"
  implementation "tr.com.infumia:event-velocity:VERSION"
  implementation "tr.com.infumia:event-shiruka:VERSION"
}

About

A builder-like event library for Bukkit/Velocity/ProtocolLib/Shiruka.

Topics

Resources

License

Stars

Watchers

Forks

Languages