CEP | (CapeEslePro) Wiki
  • 👁️CEP | (CapeEslePro)
  • 🇹🇷Türkçe
    • Eklenti Hakkında
      • Başlangıç
      • Hesap Eşleme
      • MySQL
      • Oyun Sohbeti Aktarma
      • Oyuna Komut Gönderme
      • Discorda Log Gönderme
      • Bot Aktivitesi
      • Dil Ayarı
      • Yeni Komut Oluşturma
      • 2FA
      • Embed
      • Placeholders
    • Komutlar
      • Oyun Komutları
      • Discord Komutları
    • API
      • API Class
      • Events
  • 🏴󠁧󠁢󠁥󠁮󠁧󠁿ENGLISH
    • About the Plugin
      • Beginning
      • Link System
      • MySQL
      • Transfer Game Chat
      • Sending Commands to the Game
      • Sending Logs to Discord
      • Bot Activity
      • Language Setting
      • Creating a New Command
      • 2FA
      • Embed
      • Placeholders
    • Commands
      • Game Commands
      • Discord Commands
    • API
      • API Class
      • Events
Powered by GitBook
On this page
  1. ENGLISH
  2. API

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.

PreviousAPINextEvents

Last updated 8 months ago

🏴󠁧󠁢󠁥󠁮󠁧󠁿