Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/guangchen2333/crystalkilllistener

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

2b2t 2b2t-pvp crystal-pvp minecraft papermc papermc-api papermc-plugin plugin spigot spigot-api spigot-library spigot-plugin spigotmc

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

CrystalKillListener
---
![Build](https://github.com/GuangChen2333/CrystalKillListener/actions/workflows/build.yml/badge.svg)
![Dev-Build](https://github.com/GuangChen2333/CrystalKillListener/actions/workflows/dev-build.yml/badge.svg)
![MAVEN](https://img.shields.io/maven-metadata/v?metadataUrl=https%3A%2F%2Fs01.oss.sonatype.org%2Fcontent%2Frepositories%2Fsnapshots%2Fio%2Fgithub%2Fguangchen2333%2FCrystalKillListener%2Fmaven-metadata.xml&style=flat)
![LICENSE](https://img.shields.io/github/license/GuangChen2333/CrystalKillListener?style=flat)
![STARS](https://img.shields.io/github/stars/GuangChen2333/CrystalKillListener)
![DOWNLOAD](https://img.shields.io/github/downloads/GuangChen2333/CrystalKillListener/total)

**English** | [简体中文](https://github.com/GuangChen2333/CrystalKillListener/blob/master/README_cn.md)

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

Supported Minecraft Version: 1.12

[**JavaDoc**](https://guangchen2333.github.io/CrystalKillListener/)
->
[**PlayerDeathByPlayerWithCrystalEvent**](
https://guangchen2333.github.io/CrystalKillListener/cn/guangchen233/crystallistener/events/PlayerDeathByPlayerWithCrystalEvent.html
)

## 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`

```yaml
depend:
- CrystalKillListener
```

2. Add dependencies to your build tools.

Gradle :

```groovy
repositories {
maven {
url = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
}
}

dependencies {
compileOnly 'io.github.guangchen2333:CrystalKillListener:{VERSION}'
}
```

Maven:

```xml


OSSRH
https://s01.oss.sonatype.org/content/repositories/snapshots/

```

```xml


io.github.guangchen2333
CrystalKillListener
{VERSION}
compile

```

## Usage example

```java
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.