Forgot why I disabled fancy chat for 1.12
This commit is contained in:
		| @@ -87,10 +87,10 @@ public class LDJson implements LDCommand { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     private void sendMessage(CommandSender sender, LibsMsg prefix, LibsMsg oldVer, String string) { |     private void sendMessage(CommandSender sender, LibsMsg prefix, LibsMsg oldVer, String string) { | ||||||
|         if (!NmsVersion.v1_13.isSupported()) { |        /* if (!NmsVersion.v1_13.isSupported()) { | ||||||
|             oldVer.send(sender, string); |             oldVer.send(sender, string); | ||||||
|             return; |             return; | ||||||
|         } |         }*/ | ||||||
|  |  | ||||||
|         int start = 0; |         int start = 0; | ||||||
|         int msg = 1; |         int msg = 1; | ||||||
|   | |||||||
| @@ -48,7 +48,7 @@ public class LDMetaInfo implements LDCommand { | |||||||
|  |  | ||||||
|             names.sort(String::compareToIgnoreCase); |             names.sort(String::compareToIgnoreCase); | ||||||
|  |  | ||||||
|             if (NmsVersion.v1_13.isSupported()) { |            // if (NmsVersion.v1_13.isSupported()) { | ||||||
|                 ComponentBuilder builder = new ComponentBuilder("").appendLegacy(LibsMsg.META_VALUES.get()); |                 ComponentBuilder builder = new ComponentBuilder("").appendLegacy(LibsMsg.META_VALUES.get()); | ||||||
|  |  | ||||||
|                 Iterator<String> itel = names.iterator(); |                 Iterator<String> itel = names.iterator(); | ||||||
| @@ -67,10 +67,10 @@ public class LDMetaInfo implements LDCommand { | |||||||
|                 } |                 } | ||||||
|  |  | ||||||
|                 sender.spigot().sendMessage(builder.create()); |                 sender.spigot().sendMessage(builder.create()); | ||||||
|             } else { |             /*} else { | ||||||
|                 LibsMsg.META_VALUES_NO_CLICK.send(sender, |                 LibsMsg.META_VALUES_NO_CLICK.send(sender, | ||||||
|                         StringUtils.join(names, LibsMsg.META_VALUE_SEPERATOR.get())); |                         StringUtils.join(names, LibsMsg.META_VALUE_SEPERATOR.get())); | ||||||
|             } |             }*/ | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -202,27 +202,21 @@ public class LDUploadLogs implements LDCommand { | |||||||
|                             public void run() { |                             public void run() { | ||||||
|                                 sender.sendMessage(ChatColor.GOLD + "Upload successful!"); |                                 sender.sendMessage(ChatColor.GOLD + "Upload successful!"); | ||||||
|  |  | ||||||
|                                 if (NmsVersion.v1_13.isSupported()) { |                                 // Console can't click :( | ||||||
|                                     // Console can't click :( |                                 if (sender instanceof Player) { | ||||||
|                                     if (sender instanceof Player) { |                                     sender.sendMessage(ChatColor.GOLD + | ||||||
|                                         sender.sendMessage(ChatColor.GOLD + |                                             "Click on the below message to have it appear in your chat input"); | ||||||
|                                                 "Click on the below message to have it appear in your chat input"); |  | ||||||
|                                     } |  | ||||||
|  |  | ||||||
|                                     String text = "My log file: " + latestPaste + ", my config file: " + configPaste + |  | ||||||
|                                             " and my disguises file: " + disguisesPaste; |  | ||||||
|  |  | ||||||
|                                     ComponentBuilder builder = new ComponentBuilder(""); |  | ||||||
|                                     builder.appendLegacy(ChatColor.AQUA + ""); |  | ||||||
|                                     builder.append(text); |  | ||||||
|                                     builder.event(new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, text)); |  | ||||||
|  |  | ||||||
|                                     sender.spigot().sendMessage(builder.create()); |  | ||||||
|                                 } else { |  | ||||||
|                                     sender.sendMessage( |  | ||||||
|                                             ChatColor.GOLD + "Please provide the three links! Log: " + latestPaste + |  | ||||||
|                                                     "\nConfig: " + configPaste + "\nDisguises: " + disguisesPaste); |  | ||||||
|                                 } |                                 } | ||||||
|  |  | ||||||
|  |                                 String text = "My log file: " + latestPaste + ", my config file: " + configPaste + | ||||||
|  |                                         " and my disguises file: " + disguisesPaste; | ||||||
|  |  | ||||||
|  |                                 ComponentBuilder builder = new ComponentBuilder(""); | ||||||
|  |                                 builder.appendLegacy(ChatColor.AQUA + ""); | ||||||
|  |                                 builder.append(text); | ||||||
|  |                                 builder.event(new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, text)); | ||||||
|  |  | ||||||
|  |                                 sender.spigot().sendMessage(builder.create()); | ||||||
|                             } |                             } | ||||||
|                         }.runTask(LibsDisguises.getInstance()); |                         }.runTask(LibsDisguises.getInstance()); | ||||||
|                     } |                     } | ||||||
|   | |||||||
| @@ -89,10 +89,10 @@ public class CopyDisguiseCommand implements CommandExecutor { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     public void sendMessage(CommandSender sender, LibsMsg msg, LibsMsg oldVer, String string, boolean forceAbbrev) { |     public void sendMessage(CommandSender sender, LibsMsg msg, LibsMsg oldVer, String string, boolean forceAbbrev) { | ||||||
|         if (!NmsVersion.v1_13.isSupported()) { |      /*   if (!NmsVersion.v1_13.isSupported()) { | ||||||
|             oldVer.send(sender, string); |             oldVer.send(sender, string); | ||||||
|             return; |             return; | ||||||
|         } |         }*/ | ||||||
|  |  | ||||||
|         ComponentBuilder builder = new ComponentBuilder("").appendLegacy(msg.get()).append(" "); |         ComponentBuilder builder = new ComponentBuilder("").appendLegacy(msg.get()).append(" "); | ||||||
|  |  | ||||||
|   | |||||||
| @@ -113,7 +113,7 @@ public class GrabSkinCommand implements CommandExecutor { | |||||||
|                 int start = 0; |                 int start = 0; | ||||||
|                 int msg = 1; |                 int msg = 1; | ||||||
|  |  | ||||||
|                 if (NmsVersion.v1_13.isSupported()) { |                //if (NmsVersion.v1_13.isSupported()) { | ||||||
|                     ComponentBuilder builder = new ComponentBuilder("").appendLegacy(LibsMsg.CLICK_TO_COPY.get()); |                     ComponentBuilder builder = new ComponentBuilder("").appendLegacy(LibsMsg.CLICK_TO_COPY.get()); | ||||||
|  |  | ||||||
|                     while (start < string.length()) { |                     while (start < string.length()) { | ||||||
| @@ -139,9 +139,9 @@ public class GrabSkinCommand implements CommandExecutor { | |||||||
|                     } |                     } | ||||||
|  |  | ||||||
|                     sender.spigot().sendMessage(builder.create()); |                     sender.spigot().sendMessage(builder.create()); | ||||||
|                 } else { |                 /*} else { | ||||||
|                     LibsMsg.SKIN_DATA.send(sender, string); |                     LibsMsg.SKIN_DATA.send(sender, string); | ||||||
|                 } |                 }*/ | ||||||
|  |  | ||||||
|                 DisguiseUtilities.setGrabSkinCommandUsed(); |                 DisguiseUtilities.setGrabSkinCommandUsed(); | ||||||
|             } |             } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user