API Class
API class information
You can access the API of the CEP plugin with the tr.com.xbuhari.www.cep.api.CEPApi
class
CEPApi#isLinkedGame(String)
Returns true/false (Boolean).
Argument: Minecraft Username.
Returns whether the player's account is linked.
CEPApi#isLinkedDiscord(long)
Returns true/false (Boolean).
Argument: Discord User ID.
Returns whether the player's account is linked.
CEPApi#getUsername(long)
Returns the player's name (String).
Argument: Discord User ID.
Returns null if the entered Discord User is not found.
CEPApi#getDiscordID(String)
Returns the player's Discord ID (long).
Argument: Minecraft Username.
Returns 0L if the entered Minecraft Username is not found.
CEPApi#getLinkTimeLong(String)
Returns the player's account link time in milliseconds (long).
Argument: Minecraft Username.
Returns 0L if the entered Minecraft Username is not found.
CEPApi#getLinkTime(String)
Returns the player's account link time in date format (String).
Argument: Minecraft Username.
Returns null if the entered Minecraft Username is not found.
CEPApi#isTwoFAEnabled(String)
Returns true/false (Boolean).
Argument: Minecraft Username.
Returns whether the player's 2FA mode is enabled.
CEPApi#setTwoFAMode(String, Boolean)
Argument-1: Minecraft Username, Argument-2: true/false.
Changes the player's 2FA mode.
CEPApi#unlink(String)
Argument: Minecraft Username.
Unlinks the player's account.
Last updated