Skip to content

DeveloperAPI

AlonsoAliaga edited this page Aug 27, 2021 · 1 revision

DeveloperAPI

AlonsoJoinAPI can be used to make some checks easily.

com.alonsoaliaga.alonsojoin.api.AlonsoJoinAPI

Available methods

static void sendJoinMessage(@Nonnull Player player, boolean isAsync)

  • Perform join message/action for player. If method is called inside an async method isAsync must be true.

static void sendJoinMessage(@Nonnull Player player, boolean runAsync, int delayInTicks)

  • Perform join message/action for player with defined ticks. Should task be run async? Delay in ticks. ⚠️ Do not call this inside an async method!

@Nullable static JoinMessage getJoinMessage(@Nonnull Player player)

  • Returns JoinMessage class for the player based on permissions.

@Nullable static JoinMessage getJoinMessage(String identifier)

  • Returns JoinMessage class based on identifier. Case sensitive.

@Nullable static JoinMessage getJoinMessage(String identifier, boolean ignoreCase)

  • Returns JoinMessage class based on identifier. Specify if search should be dont ignoring case.

static boolean isInvisible(@Nonnull Player player)

  • Returns if the player is invisible for JoinMessage plugin based on metadata and placeholders. (This ignores if feature is enabled or not)