mirror of https://github.com/kami-blue/client
sendStringChatMessage spacing optional
This commit is contained in:
parent
c326bd0a7e
commit
617b05abfa
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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] + "!");
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue