Skip to content

GenericServerListEvent

Interface used for the platform-specific PreServerListSetEvent instances.
This allows the plugin to pull common info such as ProfileEntry or if the event has been cancelled by another plugin.

Method Summary

Modifier and Type Method Description
ProfileEntry getEntry() Gets the ProfileEntry currently set.
void setEntry(ProfileEntry) Sets the new ProfileEntry to use.
boolean isCancelled() Returns whether this event has been cancelled or not.
void setCancelled(boolean) Sets the event's cancel state

Method Detail

ProfileEntry getEntry()

Gets the ProfileEntry currently set.

Returns:

The currently used ProfileEntry.

void setEntry(ProfileEntry)

Sets the new ProfileEntry to use.
This may not be null.

Parameters:

Throws:

  • IllegalArgumentException - When the provided ProfileEntry is null

boolean isCancelled()

Returns whether this event has been cancelled or not.

Returns:

Whether this event has been cancelled or not.

void setCancelled(boolean)

Sets the event's cancel state

Parameters:

  • boolean: cancelled - Boolean to set the event's cancelled state.