Skip to content

(Minecraft 1.12) Add an event in Spigot API to listen to players kill a player with EndCrystal | 在 Spigot 服务端中添加一个玩家使用末影水晶击杀玩家的事件

License

Notifications You must be signed in to change notification settings

GuangChen2333/CrystalKillListener

Repository files navigation

CrystalKillListener

Build Dev-Build MAVEN LICENSE STARS DOWNLOAD

English | 简体中文

Add an event in Spigot API to listen to players kill a player with End Crystal

Supported Minecraft Version: 1.12

JavaDoc -> PlayerDeathByPlayerWithCrystalEvent

Usage

For Users

Drag & Drop the JAR into the plugins folder of your server.

For Developers

  1. Include the following in your project's plugin.yml
depend:
  - CrystalKillListener
  1. 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>

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());
    }
}

About

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.