https://github.com/guangchen2333/crystalkilllistener
(Minecraft 1.12) 在 Spigot 服务端中添加一个玩家使用末影水晶击杀玩家的事件 | Add an event in Spigot API to listen to players kill a player with EndCrystal
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) 在 Spigot 服务端中添加一个玩家使用末影水晶击杀玩家的事件 | Add an event in Spigot API to listen to players kill a player with EndCrystal
- Host: GitHub
- URL: https://github.com/guangchen2333/crystalkilllistener
- Owner: GuangChen2333
- License: mit
- Created: 2022-01-16T04:30:50.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-02-06T08:20:23.000Z (over 1 year ago)
- Last Synced: 2025-04-20T05:32:05.970Z (about 2 months ago)
- Topics: 2b2t, 2b2t-pvp, crystal-pvp, minecraft, papermc, papermc-api, papermc-plugin, plugin, spigot, spigot-api, spigot-library, spigot-plugin, spigotmc
- Language: Java
- Homepage: https://GuangChen2333.github.io/CrystalKillListener/
- Size: 420 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
CrystalKillListener
---





**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.