English | 简体中文
Add an event in Spigot API to listen to players kill a player with End Crystal
Supported Minecraft Version: 1.12
JavaDoc -> PlayerDeathByPlayerWithCrystalEvent
Drag & Drop the JAR
into the plugins
folder of your server.
- 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>OSSRH</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>io.github.guangchen2333</groupId>
<artifactId>CrystalKillListener</artifactId>
<version>{VERSION}</version>
<scope>compile</scope>
</dependency>
</dependencies>
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());
}
}
If you like this project, please give this project a star.
If you have any ideas or suggestions about this project, feel free to submit Pull Requests or Issue and I will review them carefully.