From d7cefdb3c92d0d0f930c69f8bf201d93ac36e6a9 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Tue, 7 Feb 2017 07:04:07 +1300 Subject: [PATCH] Fixed using spigot stuff, wasn't that important anyways.. --- .../disguise/utilities/DisguiseUtilities.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java b/src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java index c59a3b15..322393ce 100644 --- a/src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java +++ b/src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java @@ -59,9 +59,6 @@ import me.libraryaddict.disguise.disguisetypes.watchers.AgeableWatcher; import me.libraryaddict.disguise.disguisetypes.watchers.PlayerWatcher; import me.libraryaddict.disguise.disguisetypes.watchers.ZombieWatcher; import me.libraryaddict.disguise.utilities.PacketsManager.LibsPackets; -import net.md_5.bungee.api.chat.ClickEvent; -import net.md_5.bungee.api.chat.ClickEvent.Action; -import net.md_5.bungee.api.chat.ComponentBuilder; public class DisguiseUtilities { public static final Random random = new Random(); @@ -178,11 +175,7 @@ public class DisguiseUtilities { if (reference != null && DisguiseUtilities.addClonedDisguise(reference, disguise)) { String entityName = DisguiseType.getType(toClone).toReadable(); - ComponentBuilder text = new ComponentBuilder( - ChatColor.RED + "Constructed a " + entityName + " disguise! Your reference is "); - text.append(reference).event(new ClickEvent(Action.SUGGEST_COMMAND, reference)); - - player.sendRawMessage(text.toString()); + player.sendMessage(ChatColor.RED + "Constructed a " + entityName + " disguise! Your reference is " + reference); player.sendMessage(ChatColor.RED + "Example usage: /disguise " + reference); } else {