isSameGuild

open fun isSameGuild(@NotNull player: @NotNull Player, @NotNull target: @NotNull Player): Boolean(source)

Check if two players are in the same guild or not.

Return

true if both players are in the same guild, false otherwise.

Parameters

player

the first player to check.

target

the second player to check.


open fun isSameGuild(@NotNull g1: @NotNull Guild, @NotNull g2: @NotNull Guild): Boolean(source)

Compare two guilds to see if they are the same.

Return

true if the two guilds have the same ID, false otherwise

Parameters

g1

the first guild to compare

g2

the second guild to compare