Interface Player

All Superinterfaces:
Entity

public interface Player extends Entity
  • Method Details

    • getUUID

      String getUUID()
      Get the player's UUID
      Returns:
      the uuid
    • hasPermission

      default boolean hasPermission(String permission)
      Whether the player has a permission
      Parameters:
      permission - the permission
      Returns:
      whether the player has the permission
    • getPermissions

      default ArrayList<String> getPermissions()
      Get the players permissions
      Returns:
      ArrayList of permissions
    • sendMessage

      void sendMessage(net.kyori.adventure.text.Component component)
      Sends a message to the player
      Parameters:
      component - A component
    • disconnect

      void disconnect(net.kyori.adventure.text.Component component)
      Disconnect the player
      Parameters:
      component - The reason for disconnecting them
    • disconnect

      void disconnect()
      Disconnect the player
    • getPrefix

      default String getPrefix()
      Get the player's prefix
      Returns:
      the prefix
    • getGroup

      default Optional<Group> getGroup()
      Get the player's group
      Returns:
      the Group
    • setGroup

      default void setGroup(Group group) throws SQLException
      Set a player's group
      Parameters:
      group - the Group
      Throws:
      SQLException
    • addPermission

      default void addPermission(String permission) throws SQLException
      Add a permission to the player
      Parameters:
      permission - the permission node
      Throws:
      SQLException
    • removePermission

      default void removePermission(String permission) throws SQLException
      Remove a permission from the player
      Parameters:
      permission - the permission node
      Throws:
      SQLException
    • ungroup

      default void ungroup() throws SQLException
      Ungroup the player
      Throws:
      SQLException
    • setPrefix

      default void setPrefix(String prefix) throws SQLException
      Set the player's prefix
      Parameters:
      prefix - the prefix
      Throws:
      SQLException
    • teleport

      void teleport(double x, double y, double z)
      Teleport the player
      Parameters:
      x - The X coordinate
      y - The Y coordinate
      z - The Z coordinate
    • setGamemode

      void setGamemode(Gamemode gamemode)
      Set the player's Gamemode
      Parameters:
      gamemode - The Gamemode