Skip to content

DeveloperAPI

AlonsoAliaga edited this page Mar 3, 2025 · 1 revision

DeveloperAPI

You can depend on this plugin to access NookureStaff API.

Import ⚙️

Class to use is com.alonsoaliaga.nookurestaffapi.api.NookureStaffAPI

Available methods 🗝️

All methods return false if the API is not initialized yet or player is not found.

public static boolean isStaffChatAsDefault(Player player)

Check if player has staff chat enabled by default.

public static boolean isInStaffMode(Player player)

Check if player is in staff mode. Returns if success.

public static boolean toggleStaffMode(Player player, boolean state)

Toggle staff mode for player.

public static boolean isInVanish(Player player)

Check if player is vanished.

public static Optional<StaffPlayerWrapper> getStaffPlayer(Player player)

Returns optional if the StaffPlayerWrapper instance for the player.
You can use all methods from that class without dealing with injector stuff.

Who to depend on this plugin? 👀

For more informations check How to use?