getGuild

@Nullable
open fun getGuild(@NotNull name: @NotNull String): @Nullable Guild(source)

Retrieves a [guild] by its name.

Return

the guild with the given name, or null if no such guild exists

Parameters

name

the name of the guild to retrieve


@Nullable
open fun getGuild(@NotNull p: @NotNull OfflinePlayer): @Nullable Guild(source)

Retrieve the guild of an offline player.

Return

the guild object of the player, or null if the player is not in a guild.

Parameters

p

the offline player whose guild is being retrieved.


@Nullable
open fun getGuild(@NotNull uuid: @NotNull UUID): @Nullable Guild(source)

Returns the guild object corresponding to the given UUID.

Return

the guild object with the given UUID, or null if no guild with the given UUID is found

Parameters

uuid

the UUID of the guild to retrieve