public abstract class Chat extends Permission
| Constructor and Description |
|---|
Chat() |
| Modifier and Type | Method and Description |
|---|---|
static Chat |
getChat()
Gets an instance of this class
|
abstract String |
getPlayerPrefix(net.md_5.bungee.api.connection.ProxiedPlayer player)
Gets the player's prefix Empty string if the provider is BungeeCord
|
abstract String |
getPlayerSuffix(net.md_5.bungee.api.connection.ProxiedPlayer player)
Gets the player's suffix Empty string if the provider is BungeeCord
|
static void |
setInstance(Chat instance)
Sets an instance of this class If the instance is already set, this method will throw an
IllegalArgumentException. |
abstract void |
setPlayerPrefix(net.md_5.bungee.api.connection.ProxiedPlayer player,
String newPrefix)
Sets the player's prefix Won't do anything if the provider is BungeeCord
|
abstract void |
setPlayerSuffix(net.md_5.bungee.api.connection.ProxiedPlayer player,
String newSuffix)
Sets the player's suffix Won't do anything if the provider is BungeeCord
|
getGroups, getPermission, getPermissions, getPrimaryGroup, getProvider, setInstance, setPrimaryGrouppublic static Chat getChat()
public static void setInstance(Chat instance)
IllegalArgumentException. If the new instance is null, the method again will throw an
IllegalArgumentExceptioninstance - new instancepublic abstract String getPlayerPrefix(net.md_5.bungee.api.connection.ProxiedPlayer player)
player - the player you wish to get the prefix ofpublic abstract String getPlayerSuffix(net.md_5.bungee.api.connection.ProxiedPlayer player)
player - the player you wish to get the suffix ofpublic abstract void setPlayerPrefix(net.md_5.bungee.api.connection.ProxiedPlayer player,
String newPrefix)
player - the player you wish to set the prefix ofnewPrefix - new prefixpublic abstract void setPlayerSuffix(net.md_5.bungee.api.connection.ProxiedPlayer player,
String newSuffix)
player - the player you with to set the suffix ofnewSuffix - new suffixCopyright © 2019. All rights reserved.