public static class Cheat.CheatHover extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Cheat.CheatHover.Literal
This class is used to have CheatHover but not translated
It's useful when you have a cheat hover to show but don't want to edit lang message
|
Constructor and Description |
---|
CheatHover(String key,
Object... placeholders)
Create a new cheat hover
|
Modifier and Type | Method and Description |
---|---|
String |
compile()
Compile message with default lang
Prefer use
compile(NegativityPlayer) to have a message translated for each player |
String |
compile(NegativityPlayer np)
Compile message with the lang of the given negativity player
|
String |
getKey()
Get the message key
|
Object[] |
getPlaceholders()
Get all message placeholders
|
public String getKey()
public Object[] getPlaceholders()
public String compile()
compile(NegativityPlayer)
to have a message translated for each playerpublic String compile(NegativityPlayer np)
np
- the player which will receive the message