# CrystalKillListener
**Repository Path**: GuangChen2333/CrystalKillListener
## Basic Information
- **Project Name**: CrystalKillListener
- **Description**: (Minecraft 1.12) Add an event in Spigot API to listen to players kill a player with EnderCrystal | 在 Spigot 服务端中添加一个玩家使用末影水晶击杀玩家的事件
- **Primary Language**: Java
- **License**: MIT
- **Default Branch**: master
- **Homepage**: https://github.com/GuangChen2333/CrystalKillListener
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2022-01-17
- **Last Updated**: 2023-01-11
## Categories & Tags
**Categories**: Uncategorized
**Tags**: Minecraft, Spigot-Plugin, Crystal-PVP, 2b2t, spigotmc-api
## README
CrystalKillListener
---






[English](https://github.com/GuangChen2333/CrystalKillListener/blob/master/README.md) | **简体中文**
> 在Spigot中添加一个玩家使用末影水晶击杀玩家的事件
受支持的Minecraft版本: 1.12
[**JavaDoc**](https://guangchen2333.github.io/CrystalKillListener/)
->
[**PlayerDeathByPlayerWithCrystalEvent**](
https://guangchen2333.github.io/CrystalKillListener/cn/guangchen233/crystallistener/events/PlayerDeathByPlayerWithCrystalEvent.html
)
## 使用方法
### 对于用户
将 `JAR` 文件放入服务器的 `plugins` 文件夹中
### 对于开发者
1. 在工程的 `plugin.yml` 中包含下列内容
```yaml
depend:
- CrystalKillListener
```
2. 在你的构建工具中添加依赖项
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
```
## 使用示例
```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());
}
}
```
## 更新计划 | 2.0 版本
- [x] build(script): 更换新的发布插件
- [x] build(script): 标准化构建脚本
- [x] test(plugin-test): 增加测试插件项目
- [x] refactor(event): 重构事件方法
- [x] feat(event): 添加死亡信息相关方法
## 关于
如果你喜欢这个项目,请给本项目点个Star。
如果你有任何关于本项目的想法或建议,欢迎提交Pull Requests或Issue,我会认真的审核您的提交。