Skip to content

Moved

The documenation has been moved and can now be found at asl.andre601.ch.
This page in particular can be found at asl.andre601.ch/api/reference/api/ch.andre601.advancedserverlist.api/events/genericserverlistevent/.

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.