public class JSON
extends java.lang.Object
Constructor and Description |
---|
JSON() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMsg(java.lang.String chat,
net.md_5.bungee.api.ChatColor color,
org.bukkit.entity.Player p)
Format the chat.
|
net.md_5.bungee.api.chat.BaseComponent[] |
hoverMessage(java.lang.String msg,
java.util.ArrayList<java.lang.String> lore,
java.lang.String chat,
net.md_5.bungee.api.ChatColor color,
org.bukkit.entity.Player p)
Builds the hover message.
|
public net.md_5.bungee.api.chat.BaseComponent[] hoverMessage(java.lang.String msg, java.util.ArrayList<java.lang.String> lore, java.lang.String chat, net.md_5.bungee.api.ChatColor color, org.bukkit.entity.Player p)
msg
- The play name and format around it.lore
- The lore of the text.p
- The player it is being applied to.public java.lang.String getMsg(java.lang.String chat, net.md_5.bungee.api.ChatColor color, org.bukkit.entity.Player p)
chat
- The player message.color
- The player's chat color