![idea](https://camo.githubusercontent.com/c5990ce23d18dbe5a71b69bc1813b81dce1500eb6c28fb1588ef7d8d64ec52d0/68747470733a2f2f7777772e656c6567616e746f626a656374732e6f72672f696e74656c6c696a2d696465612e737667)
![Sonatype Nexus (Snapshots)](https://camo.githubusercontent.com/2cc5dc910fac91dfa3870c57e9e4e25dbc64da57f2622ef5fadf63742f1b539f/68747470733a2f2f696d672e736869656c64732e696f2f6e657875732f732f74722e636f6d2e696e66756d69612f6576656e742d636f6d6d6f6e3f6c6162656c3d6d6176656e2d63656e7472616c267365727665723d68747470732533412532462532466f73732e736f6e61747970652e6f7267)
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);
}
}
<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>
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"
}