public class chatNickClicks
extends java.lang.Object
implements org.bukkit.event.Listener
| Constructor and Description |
|---|
chatNickClicks(org.bukkit.plugin.Plugin aa)
Constructor, stores instance of AdminAnything for further use.
|
| Modifier and Type | Method and Description |
|---|---|
void |
catchEarlyChatForProtocolLib(org.bukkit.event.player.AsyncPlayerChatEvent e)
Replaces nicknames by clickable links that perform the desired action.
|
protected static java.util.UUID |
getLastPlayer()
Returns the UUID of the last player who used chat,
so we can update their chat packet with the help of ProtocolLib.
|
void |
replaceChatNick(org.bukkit.event.player.AsyncPlayerChatEvent e)
Replaces nicknames by clickable links that perform the desired action.
|
public chatNickClicks(org.bukkit.plugin.Plugin aa)
aa - Instance of AdminAnything.protected static java.util.UUID getLastPlayer()
public void replaceChatNick(org.bukkit.event.player.AsyncPlayerChatEvent e)
e - The actual player chat event to work with.public void catchEarlyChatForProtocolLib(org.bukkit.event.player.AsyncPlayerChatEvent e)
e - The actual player chat event to work with.