33 lines
742 B
Java
33 lines
742 B
Java
package com.comphenix.protocol.events;
|
|
|
|
import com.comphenix.protocol.injector.GamePhase;
|
|
|
|
|
|
/**
|
|
* Represents additional options a listener may require.
|
|
*
|
|
* @author Kristian
|
|
*/
|
|
public enum ListenerOptions {
|
|
/**
|
|
* Retrieve the serialized client packet as it appears on the network stream.
|
|
*/
|
|
INTERCEPT_INPUT_BUFFER,
|
|
|
|
/**
|
|
* Disable the automatic game phase detection that will normally force {@link GamePhase#LOGIN} when
|
|
* a packet ID is known to be transmitted during login.
|
|
*/
|
|
DISABLE_GAMEPHASE_DETECTION,
|
|
|
|
/**
|
|
* Do not verify that the owning plugin has a vaid plugin.yml.
|
|
*/
|
|
SKIP_PLUGIN_VERIFIER,
|
|
|
|
/**
|
|
* Notify ProtocolLib that {@link PacketListener#onPacketSending(PacketEvent)} is thread safe.
|
|
*/
|
|
ASYNC;
|
|
}
|