2013-07-17 03:52:27 +02:00
|
|
|
package com.comphenix.protocol.events;
|
|
|
|
|
2013-10-31 01:55:55 +01:00
|
|
|
import com.comphenix.protocol.injector.GamePhase;
|
|
|
|
|
2013-07-17 03:52:27 +02:00
|
|
|
/**
|
|
|
|
* Represents additional options a listener may require.
|
2022-03-08 04:09:04 +01:00
|
|
|
*
|
2013-07-17 03:52:27 +02:00
|
|
|
* @author Kristian
|
|
|
|
*/
|
|
|
|
public enum ListenerOptions {
|
2022-03-08 04:09:04 +01:00
|
|
|
|
2013-07-17 03:52:27 +02:00
|
|
|
/**
|
2022-03-08 04:09:04 +01:00
|
|
|
* Disable the automatic game phase detection that will normally force {@link GamePhase#LOGIN} when a packet ID is
|
|
|
|
* known to be transmitted during login.
|
2013-10-31 01:55:55 +01:00
|
|
|
*/
|
2013-12-07 19:14:03 +01:00
|
|
|
DISABLE_GAMEPHASE_DETECTION,
|
2022-03-08 04:09:04 +01:00
|
|
|
|
2014-09-07 21:27:46 +02:00
|
|
|
/**
|
|
|
|
* Do not verify that the owning plugin has a vaid plugin.yml.
|
|
|
|
*/
|
|
|
|
SKIP_PLUGIN_VERIFIER,
|
2022-03-08 04:09:04 +01:00
|
|
|
|
2013-12-07 19:14:03 +01:00
|
|
|
/**
|
|
|
|
* Notify ProtocolLib that {@link PacketListener#onPacketSending(PacketEvent)} is thread safe.
|
|
|
|
*/
|
2022-08-17 05:51:54 +02:00
|
|
|
ASYNC,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Notify ProtocolLib that {@link PacketListener#onPacketReceiving(PacketEvent)} must be executed on the main server
|
|
|
|
* thread.
|
|
|
|
*/
|
|
|
|
SYNC
|
2013-07-17 03:52:27 +02:00
|
|
|
}
|