Schnittstelle ICorePlayer


public interface ICorePlayer
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    org.bukkit.entity.Player
    Get the bukkit player.
    int
    Get the coins of the player.
    void
    coins(int coins)
    Set the coins of the player.
    net.kyori.adventure.text.format.NamedTextColor
    Get the color of the player.
    net.kyori.adventure.text.Component
    Get the display name of the player.
    boolean
    Check if the player is online.
    void
    message(net.kyori.adventure.text.Component message)
    Send a message to the player.
    Get the name of the player.
    int
    Get the nick state of the player.
    void
    nickState(int nickState)
    Set the nick state of the player.
    void
    Send the no permission message to the player.
    void
    notOnline(String target)
    Send the not online message to the player.
    int
    Get the online time of the player.
    void
    onlineTime(int onlineTime)
    Set the online time of the player.
    int
    Get the play time of the player.
    void
    playTime(int playTime)
    Set the play time of the player.
    void
    pMessage(net.kyori.adventure.text.Component message)
    Send a message with 'Core' prefix to the player.
    void
    Reset the title of the player.
    void
    sendActionBar(net.kyori.adventure.text.Component message)
    Send an action bar message to the player.
    void
    sendActionBarPermanent(net.kyori.adventure.text.Component message)
    Send a permanent action bar message to the player.
    void
    sendTitle(@NotNull net.kyori.adventure.text.Component title, @NotNull net.kyori.adventure.text.Component subtitle, int fadeIn, int stay, int fadeOut)
    Send a title to the player.
    void
    setTablist(boolean minigame)
    Set the tablist of the player.
    void
    usage(String usage)
    Send the usage message to the player.
    void
    usage(net.kyori.adventure.text.Component prefix, String usage)
    Send the usage message with prefix to the player.
    Get the UUID of the player.
    com.velocitypowered.api.proxy.Player
    Get the velocity player.
  • Methodendetails

    • name

      String name()
      Get the name of the player.
      Gibt zurück:
      the player's name
    • uuid

      UUID uuid()
      Get the UUID of the player.
      Gibt zurück:
      the player's UUID
    • displayName

      net.kyori.adventure.text.Component displayName()
      Get the display name of the player.
      Gibt zurück:
      the player's display name
    • color

      net.kyori.adventure.text.format.NamedTextColor color()
      Get the color of the player.
      Gibt zurück:
      the player's color
    • bukkitPlayer

      org.bukkit.entity.Player bukkitPlayer()
      Get the bukkit player.
      Gibt zurück:
      Player
    • velocityPlayer

      com.velocitypowered.api.proxy.Player velocityPlayer()
      Get the velocity player.
      Gibt zurück:
      Player
    • isOnline

      boolean isOnline()
      Check if the player is online.
      Gibt zurück:
      true if the player is online, otherwise false
    • coins

      int coins()
      Get the coins of the player.
      Gibt zurück:
      the player's coins
    • coins

      void coins(int coins)
      Set the coins of the player.
      Parameter:
      coins - the coins
    • onlineTime

      int onlineTime()
      Get the online time of the player.
      Gibt zurück:
      the player's online time
    • onlineTime

      void onlineTime(int onlineTime)
      Set the online time of the player.
      Parameter:
      onlineTime - the online time
    • playTime

      int playTime()
      Get the play time of the player.
      Gibt zurück:
      the player's play time
    • playTime

      void playTime(int playTime)
      Set the play time of the player.
      Parameter:
      playTime - the play time
    • nickState

      int nickState()
      Get the nick state of the player.
      Gibt zurück:
      the player's nick state
    • nickState

      void nickState(int nickState)
      Set the nick state of the player.
      Parameter:
      nickState - the nick state
    • message

      void message(net.kyori.adventure.text.Component message)
      Send a message to the player.
      Parameter:
      message - the message
    • pMessage

      void pMessage(net.kyori.adventure.text.Component message)
      Send a message with 'Core' prefix to the player.
      Parameter:
      message - the message
    • usage

      void usage(String usage)
      Send the usage message to the player.
      Parameter:
      usage - the usage
    • usage

      void usage(net.kyori.adventure.text.Component prefix, String usage)
      Send the usage message with prefix to the player.
      Parameter:
      prefix - the prefix
      usage - the usage
    • noPerms

      void noPerms()
      Send the no permission message to the player.
    • notOnline

      void notOnline(String target)
      Send the not online message to the player.
      Parameter:
      target - the target
    • sendActionBar

      void sendActionBar(net.kyori.adventure.text.Component message)
      Send an action bar message to the player.
      Parameter:
      message - the message
    • sendActionBarPermanent

      void sendActionBarPermanent(net.kyori.adventure.text.Component message)
      Send a permanent action bar message to the player.
      Parameter:
      message - the message
    • setTablist

      void setTablist(boolean minigame)
      Set the tablist of the player.
      Parameter:
      minigame - true if minigame tablist, otherwise false
    • sendTitle

      void sendTitle(@NotNull @NotNull net.kyori.adventure.text.Component title, @NotNull @NotNull net.kyori.adventure.text.Component subtitle, int fadeIn, int stay, int fadeOut)
      Send a title to the player.
      Parameter:
      title - the title
      subtitle - the subtitle
      fadeIn - the fade in time in seconds
      stay - the stay time in seconds
      fadeOut - the fade out time in seconds
    • resetTitle

      void resetTitle()
      Reset the title of the player.