sendStringChatMessage spacing optional

This commit is contained in:
Bella 2020-05-04 20:34:32 -04:00
parent c326bd0a7e
commit 617b05abfa
No known key found for this signature in database
GPG Key ID: DBD4A6030080C8B3
4 changed files with 8 additions and 6 deletions

View File

@ -54,7 +54,7 @@ public class HelpCommand extends Command {
commandPrefix + "bind <module> <key>&7 to bind mods",
commandPrefix + "prefix <prefix>&r to change the command prefix.",
commandPrefix + "help &7<bind|subjects:[subject]>&r for more help."
});
}, true);
} else {
String subject = args[0];
if (subject.equals("subjects")) {
@ -75,7 +75,7 @@ public class HelpCommand extends Command {
sendChatMessage("No help found for &b" + args[0]);
return;
}
sendStringChatMessage(subject1.info);
sendStringChatMessage(subject1.info, true);
}
}
}

View File

@ -49,7 +49,7 @@ public class SetCommand extends Command {
else {
sendStringChatMessage(new String[]{
"Please specify a setting! Choose one of the following:", settings
});
}, true);
}
return;
}

View File

@ -48,7 +48,7 @@ public class SettingsCommand extends Command {
result[i] = result[i].substring(0, result[i].length() - 2) + ")";
}
}
sendStringChatMessage(result);
sendStringChatMessage(result, true);
} catch (ModuleManager.ModuleNotFoundException x) {
sendChatMessage("Couldn't find a module &b" + args[0] + "!");
}

View File

@ -29,8 +29,10 @@ public class MessageSendHelper {
sendRawChatMessage("&7[" + colour + KamiMod.KAMI_KANJI + "&7] &r" + message);
}
public static void sendStringChatMessage(String[] messages) {
sendChatMessage("");
public static void sendStringChatMessage(String[] messages, boolean extraSpace) {
if (extraSpace) {
sendChatMessage("");
}
for (String s : messages) sendRawChatMessage(s);
}