Forgot why I disabled fancy chat for 1.12

This commit is contained in:
libraryaddict 2020-07-30 00:47:22 +12:00
parent bd214728cd
commit 2ad5d0ff4d
5 changed files with 24 additions and 30 deletions

View File

@ -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;

View File

@ -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()));
} }*/
} }
} }

View File

@ -202,7 +202,6 @@ 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 +
@ -218,11 +217,6 @@ public class LDUploadLogs implements LDCommand {
builder.event(new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, text)); builder.event(new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, text));
sender.spigot().sendMessage(builder.create()); sender.spigot().sendMessage(builder.create());
} else {
sender.sendMessage(
ChatColor.GOLD + "Please provide the three links! Log: " + latestPaste +
"\nConfig: " + configPaste + "\nDisguises: " + disguisesPaste);
}
} }
}.runTask(LibsDisguises.getInstance()); }.runTask(LibsDisguises.getInstance());
} }

View File

@ -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(" ");

View File

@ -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();
} }