1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2026-02-20 10:43:12 +01:00

Misc Updates

This commit is contained in:
cerevisiae
2010-11-30 11:47:25 -06:00
parent 35e4550f81
commit db8ac45ad5
3 changed files with 120 additions and 48 deletions

View File

@@ -237,11 +237,17 @@ public class vminecraftCommands{
{
//If the rules exist
if(vminecraftSettings.getInstance().cmdRules()
&& vminecraftSettings.getInstance().getRules().length != 0) {
&& vminecraftSettings.getInstance().getRules().length > 0) {
//Apply QuakeCode Colors to the rules
String[] rules = vminecraftChat.applyColors(
vminecraftSettings.getInstance().getRules());
//Display them
for (String str : vminecraftSettings.getInstance().getRules()) {
if(str.isEmpty())
player.sendMessage(Colors.Blue+str);
for (String str : rules ) {
if(!str.isEmpty())
player.sendMessage(Colors.Blue + str);
else
player.sendMessage(Colors.Blue + "!!!The Rules Have Not Been Set!!!");
}
return EXIT_SUCCESS;
}