Class BukkitClient

java.lang.Object
ml.karmaconfigs.api.bukkit.util.Client
ml.karmaconfigs.api.bukkit.util.BukkitClient

public class BukkitClient extends Client
Karma bukkit client
  • Constructor Details

    • BukkitClient

      public BukkitClient(KarmaPlugin owner, org.bukkit.entity.Player client)
      Initialize the bukkit client
      Parameters:
      owner - the client owner
      client - the client
  • Method Details

    • sendMessage

      public void sendMessage(String message)
      Send a message to the client
      Specified by:
      sendMessage in class Client
      Parameters:
      message - the message
    • sendMessage

      public void sendMessage(String message, Object... replaces)
      Send a message to the client
      Specified by:
      sendMessage in class Client
      Parameters:
      message - the message
      replaces - the message replaces
    • sendTitle

      public void sendTitle(String title, String subtitle)
      Send a title to the client
      Specified by:
      sendTitle in class Client
      Parameters:
      title - the title
      subtitle - the subtitle
    • sendTitle

      public void sendTitle(String title, String subtitle, int showIn, int keepIn, int hideIn)
      Send a title to the client
      Specified by:
      sendTitle in class Client
      Parameters:
      title - the title
      subtitle - the subtitle
      showIn - the time to show in
      keepIn - the time to keep in
      hideIn - the time to hide in
    • sendActionBar

      public void sendActionBar(String message, int repeats)
      Send an action bar to the client
      Specified by:
      sendActionBar in class Client
      Parameters:
      message - the action bar message
      repeats - the action bar repeats
    • sendActionBar

      public void sendActionBar(String message, boolean persistent)
      Send an action bar to the client
      Specified by:
      sendActionBar in class Client
      Parameters:
      message - the action bar message
      persistent - if the action bar should be visible for ever
    • disconnect

      public void disconnect(List<String> reason)
      Disconnect the client
      Specified by:
      disconnect in class Client
      Parameters:
      reason - the disconnect reason
    • disconnect

      public void disconnect(String... reason)
      Disconnect the client
      Specified by:
      disconnect in class Client
      Parameters:
      reason - the disconnect reason
    • disconnect

      public void disconnect(String reason)
      Disconnect the client
      Specified by:
      disconnect in class Client
      Parameters:
      reason - the disconnect reason
    • setPlaceholders

      public void setPlaceholders(boolean status)
      Set the current plugin placeholder status for bukkit client
      Parameters:
      status - the placeholder status
    • hasPlaceholders

      public boolean hasPlaceholders()
      Get if the current plugin has placeholders.contains(plugin) enabled for bukkit client
      Returns:
      if the bukkit client uses placeholders.contains(plugin) system