Class Client

java.lang.Object
ml.karmaconfigs.api.bukkit.util.Client
Direct Known Subclasses:
BukkitClient

public abstract class Client extends Object
Karma client
  • Constructor Details

    • Client

      public Client()
  • Method Details

    • sendMessage

      public abstract void sendMessage(String message)
      Send a message to the client
      Parameters:
      message - the message
    • sendMessage

      public abstract void sendMessage(String message, Object... replaces)
      Send a message to the client
      Parameters:
      message - the message
      replaces - the message replaces
    • sendTitle

      public abstract void sendTitle(String title, String subtitle)
      Send a title to the client
      Parameters:
      title - the title
      subtitle - the subtitle
    • sendTitle

      public abstract void sendTitle(String title, String subtitle, int showIn, int keepIn, int hideIn)
      Send a title to the 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 abstract void sendActionBar(String message, int repeats)
      Send an action bar to the client
      Parameters:
      message - the action bar message
      repeats - the action bar repeats
    • sendActionBar

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

      public abstract void disconnect(List<String> reason)
      Disconnect the client
      Parameters:
      reason - the disconnect reason
    • disconnect

      public abstract void disconnect(String... reason)
      Disconnect the client
      Parameters:
      reason - the disconnect reason
    • disconnect

      public abstract void disconnect(String reason)
      Disconnect the client
      Parameters:
      reason - the disconnect reason
    • instantiate

      public static Client instantiate(KarmaPlugin plugin, org.bukkit.entity.Player player)
      Create a new client instance
      Parameters:
      plugin - the client owner
      player - the client player
      Returns:
      a new client instance