GithubHelp home page GithubHelp logo

guangchen2333 / crystalkilllistener Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 0.0 430 KB

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

Home Page: https://GuangChen2333.github.io/CrystalKillListener/

License: MIT License

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

crystalkilllistener's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.