Skip to content

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 a 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.

Constructor Summary

Constructor Description
PostServerListSetEvent(ProfileEntry) Constructor for creating a new PostServerListSetEvent instance.

Method Summary

Modifier and Type Method Description
static HandlerList getHandlerList() Static HandlerList getter. Required by Paper.
nullable ProfileEntry getEntry() The ProfileEntry that was used during the PingEvent handling.
Methods inherited from org.bukkit.event.Event
getHandlers()

Constructor Detail

PostServerListSetEvent(ProfileEntry)

Constructor for creating a new PostServerListSetEvent instance.

Parameters:

  • ProfileEntry: entry - The ProfileEntry used during the PingEvent.

Method Detail

HandlerList getHandlerList()

Static HandlerList getter. Required by Paper.

Returns:

The static HandlerList instance of this event.

ProfileEntry getEntry()

The ProfileEntry that was used during the PingEvent handling.

The returned value may be null should the PingEvent handling be cancelled at any point (i.e. due to an invalid protocol or because the PreServerListSetEvent has 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.