RESTfulMC/DemoSpigotPlugin/src/main/java/cc/restfulmc/demo/DemoSpigotPlugin.java

15 lines
400 B
Java

package cc.restfulmc.demo;
import cc.restfulmc.demo.listener.ServerPingListener;
import com.comphenix.protocol.ProtocolLibrary;
import org.bukkit.plugin.java.JavaPlugin;
/**
* @author Braydon
*/
public final class DemoSpigotPlugin extends JavaPlugin {
@Override
public void onEnable() {
ProtocolLibrary.getProtocolManager().addPacketListener(new ServerPingListener(this));
}
}