Class PostServerListSetEvent
java.lang.Object
org.bukkit.event.Event
ch.andre601.advancedserverlist.api.bukkit.events.PostServerListSetEvent
Called after the plugin has updated the Server List.
The provided ProfileEntry may be null due to the PingEvent handling being cancelled (i.e. due
to an invalid protocol or due to the PreServerListSetEvent being cancelled.
The entry also only represents the values used during the PingEvent, not the actual content that is being displayed.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionPostServerListSetEvent(@Nullable ProfileEntry entry) Constructor for creating a new PostServerListSetEvent instance. -
Method Summary
Modifier and TypeMethodDescription@Nullable ProfileEntrygetEntry()TheProfileEntrythat was used during the PingEvent handling.static HandlerListStaticHandlerListgetter.@NonNull HandlerListMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PostServerListSetEvent
Constructor for creating a new PostServerListSetEvent instance.- Parameters:
entry- TheProfileEntryused during the PingEvent.
-
-
Method Details
-
getHandlerList
StaticHandlerListgetter. Required by Paper.- Returns:
- The static HandlerList instance of this event.
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getEntry
The
ProfileEntrythat was used during the PingEvent handling.The returned value may be
nullshould the PingEvent handling be cancelled at any point (i.e. due to an invalid protocol or because thePreServerListSetEventhas been cancelled).
The values within the ProfileEntry also do not represent what is actually used within the Server List itself, but only the values provided for the PingEvent handling.- Returns:
- Possibly-null ProfileEntry used for the PingEvent.
-