Remove support for [i] in gc
This commit is contained in:
parent
47fd6bf2db
commit
66f7e46add
|
|
@ -42,20 +42,17 @@ public class ChatHandler {
|
|||
Template.of("sender", senderName),
|
||||
Template.of("prefix", prefix),
|
||||
Template.of("message", message),
|
||||
Template.of("server", Bukkit.getServerName()),
|
||||
Template.of("[i]", itemComponent(sender.getInventory().getItemInMainHand()))));
|
||||
Template.of("server", Bukkit.getServerName())/*,
|
||||
Template.of("[i]", itemComponent(sender.getInventory().getItemInMainHand()))*/));
|
||||
|
||||
Component component = miniMessage.parse(Config.GCFORMAT, templates);
|
||||
|
||||
Bukkit.broadcast(miniMessage.serialize(component), Config.GCPERMISSION);
|
||||
|
||||
//todo make a method for this, it'll be used more then onc
|
||||
|
||||
ByteArrayDataOutput out = ByteStreams.newDataOutput();
|
||||
out.writeUTF("globalchat");
|
||||
out.writeUTF(miniMessage.serialize(component));
|
||||
sender.sendPluginMessage(plugin, Config.MESSAGECHANNEL, out.toByteArray());
|
||||
|
||||
}
|
||||
|
||||
public Component itemComponent(ItemStack item) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user