WhitelistEntry Documentation

WhitelistEntry

Represents a record of a player added to the whitelist in the WhitelistPlus plugin. This class stores metadata about the whitelisted player, including who added them and when.

public WhitelistEntry(String name, UUID uuid, String addedByName, UUID addedByUUID, Instant addedAt, WhitelistSource source)

Creates a new instance of WhitelistEntry.

  • name: The name of the whitelisted player.

  • uuid: The UUID of the whitelisted player (can be null if added offline).

  • addedByName: The name of the user who added this entry.

  • addedByUUID: The UUID of the user who added this entry (may also be null).

  • addedAt: The timestamp when the player was added to the whitelist.

  • source: The source through which the player was added (e.g., CONSOLE, COMMAND, etc.).

Methods

String getName()

Returns the name of the whitelisted player.

UUID getUuid()

Returns the UUID of the whitelisted player. May return null if the player was added offline.

String getAddedByName()

Returns the name of the user who added the player to the whitelist.

UUID getAddedByUUID()

Returns the UUID of the user who added the player to the whitelist. May return null if UUID was not available.

Instant getAddedAt()

Returns the timestamp of when the player was added to the whitelist.

WhitelistSource getSource()

Returns the source of the whitelist addition (e.g., plugin, command, etc.).

Last updated