Package ml.karmaconfigs.api.bukkit.util
Class Client
java.lang.Object
ml.karmaconfigs.api.bukkit.util.Client
- Direct Known Subclasses:
BukkitClient
Karma client
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voiddisconnect(String reason)Disconnect the clientabstract voiddisconnect(String... reason)Disconnect the clientabstract voiddisconnect(List<String> reason)Disconnect the clientstatic Clientinstantiate(KarmaPlugin plugin, org.bukkit.entity.Player player)Create a new client instanceabstract voidsendActionBar(String message, boolean persistent)Send an action bar to the clientabstract voidsendActionBar(String message, int repeats)Send an action bar to the clientabstract voidsendMessage(String message)Send a message to the clientabstract voidsendMessage(String message, Object... replaces)Send a message to the clientabstract voidSend a title to the clientabstract voidSend a title to the client
-
Constructor Details
-
Client
public Client()
-
-
Method Details
-
sendMessage
Send a message to the client- Parameters:
message- the message
-
sendMessage
Send a message to the client- Parameters:
message- the messagereplaces- the message replaces
-
sendTitle
Send a title to the client- Parameters:
title- the titlesubtitle- the subtitle
-
sendTitle
Send a title to the client- Parameters:
title- the titlesubtitle- the subtitleshowIn- the time to show inkeepIn- the time to keep inhideIn- the time to hide in
-
sendActionBar
Send an action bar to the client- Parameters:
message- the action bar messagerepeats- the action bar repeats
-
sendActionBar
Send an action bar to the client- Parameters:
message- the action bar messagepersistent- if the action bar should be visible for ever
-
disconnect
Disconnect the client- Parameters:
reason- the disconnect reason
-
disconnect
Disconnect the client- Parameters:
reason- the disconnect reason
-
disconnect
Disconnect the client- Parameters:
reason- the disconnect reason
-
instantiate
Create a new client instance- Parameters:
plugin- the client ownerplayer- the client player- Returns:
- a new client instance
-