Package ml.karmaconfigs.api.bukkit.util
Class BukkitClient
java.lang.Object
ml.karmaconfigs.api.bukkit.util.Client
ml.karmaconfigs.api.bukkit.util.BukkitClient
Karma bukkit client
-
Constructor Summary
ConstructorsConstructorDescriptionBukkitClient(KarmaPlugin owner, org.bukkit.entity.Player client)Initialize the bukkit client -
Method Summary
Modifier and TypeMethodDescriptionvoiddisconnect(String reason)Disconnect the clientvoiddisconnect(String... reason)Disconnect the clientvoiddisconnect(List<String> reason)Disconnect the clientbooleanGet if the current plugin has placeholders.contains(plugin) enabled for bukkit clientvoidsendActionBar(String message, boolean persistent)Send an action bar to the clientvoidsendActionBar(String message, int repeats)Send an action bar to the clientvoidsendMessage(String message)Send a message to the clientvoidsendMessage(String message, Object... replaces)Send a message to the clientvoidSend a title to the clientvoidSend a title to the clientvoidsetPlaceholders(boolean status)Set the current plugin placeholder status for bukkit clientMethods inherited from class ml.karmaconfigs.api.bukkit.util.Client
instantiate
-
Constructor Details
-
BukkitClient
Initialize the bukkit client- Parameters:
owner- the client ownerclient- the client
-
-
Method Details
-
sendMessage
Send a message to the client- Specified by:
sendMessagein classClient- Parameters:
message- the message
-
sendMessage
Send a message to the client- Specified by:
sendMessagein classClient- Parameters:
message- the messagereplaces- the message replaces
-
sendTitle
Send a title to the client -
sendTitle
Send a title to the client -
sendActionBar
Send an action bar to the client- Specified by:
sendActionBarin classClient- Parameters:
message- the action bar messagerepeats- the action bar repeats
-
sendActionBar
Send an action bar to the client- Specified by:
sendActionBarin classClient- Parameters:
message- the action bar messagepersistent- if the action bar should be visible for ever
-
disconnect
Disconnect the client- Specified by:
disconnectin classClient- Parameters:
reason- the disconnect reason
-
disconnect
Disconnect the client- Specified by:
disconnectin classClient- Parameters:
reason- the disconnect reason
-
disconnect
Disconnect the client- Specified by:
disconnectin classClient- 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
-