Raxen/src/main/java/gq/unurled/raxen/utils/TabApi.java
unurled bf5aa6cff0 0.5.1
little of javadocs, need to add them when writing code from now on
2022-04-22 18:54:03 +02:00

33 lines
878 B
Java

package gq.unurled.raxen.utils;
import com.comphenix.protocol.PacketType;
import com.comphenix.protocol.ProtocolManager;
import com.comphenix.protocol.events.ListenerPriority;
import com.comphenix.protocol.events.PacketAdapter;
import gq.unurled.raxen.Raxen;
public class TabApi {
private ProtocolManager protocolManager;
private Raxen main;
/**
* instance of tabapi
* @param main running instance of main
*/
public TabApi(Raxen main) {
this.main = main;
this.protocolManager = main.getProtocolManager();
}
/**
* stuff for protocolmanager, used to add player and infos to the ping list
*/
public void packetListener() {
protocolManager.addPacketListener(
new PacketAdapter(main, ListenerPriority.NORMAL, PacketType.Play.Server.PLAYER_INFO) {
}
);
}
}