CrystalKillListener
English | 简体中文
Add an event on Spigot API to listen to players kill a player with EnderCrystal
Supported Minecraft Versions: 1.12
Usage
For Users
Drag & Drop the JAR
into the plugins
folder of your server.
For Developers
- Include the following in your project's
plugin.yml
depend:
- CrystalKillListener
- Add dependencies to your build tools.
Gradle :
repositories {
maven {
url = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
compileOnly 'io.github.guangchen2333:CrystalKillListener:{VERSION}'
}
Maven:
<repositories>
<repository>
<id>snpossid>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots/url>
repository>
repositories>
<dependencies>
<dependency>
<groupId>io.github.guangchen2333groupId>
<artifactId>CrystalKillListenerartifactId>
<version>{VERSION}version>
<scope>compilescope>
dependency>
dependencies>
Usage example
import org.bukkit.event.Listener;
import org.bukkit.event.EventHandler;
import cn.guangchen233.crystallistener.events.PlayerDeathByPlayerWithCrystalEvent;
public class Example implements Listener {
@EventHandler
public void onPlayerDeathWithCrystal(PlayerDeathByPlayerWithCrystalEvent event) {
System.out.println(event.toString());
}
}