Fixed version number and version command. Updated folder structure for easier working with eclipse

This commit is contained in:
Olof Larsson 2011-02-06 15:30:41 +01:00
parent 7c1e176320
commit bcd52a1fbd
5 changed files with 19 additions and 4 deletions

4
.gitignore vendored
View File

@ -13,7 +13,7 @@
/build
/bin
/dist
/manifest.mf
/localexport.jardesc
# Mac filesystem dust
/.DS_Store
.DS_Store

View File

@ -1,3 +1,3 @@
name: Factions
version: 1.0 beta
version: 1.0 alpha
main: com.bukkit.mcteam.factions.Factions

View File

@ -81,6 +81,12 @@ public class Commands {
pageLines.add(Conf.colorSystem+"also use this to create member only areas.");
pageLines.add(Conf.colorSystem+"As dispensers are protected you can create traps without");
pageLines.add(Conf.colorSystem+"worrying about those arrows getting stolen.");
helpPages.add(pageLines);
pageLines = new ArrayList<String>();
pageLines.add(TextUtil.commandHelp(Conf.aliasVersion, "", "Wich version are you using"));
helpPages.add(pageLines);
}
@ -204,6 +210,8 @@ public class Commands {
relation(me, Relation.ENEMY, TextUtil.implode(tokens));
} else if (Conf.aliasDescription.contains(command)) {
description(me, TextUtil.implode(tokens));
} else if (Conf.aliasVersion.contains(command)) {
version(me);
} else {
//me.sendMessage(Conf.colorSystem+"Unknown faction command"+Conf.colorCommand+" "+command);
me.sendMessage(Conf.colorSystem+"Unknown faction command"+Conf.colorCommand+" "+command);
@ -691,6 +699,9 @@ public class Commands {
}
}
public static void version(Follower me) {
me.sendMessage(Conf.colorSystem+"You are running "+Factions.desc.getFullName());
}
}

View File

@ -70,6 +70,8 @@ public class Conf {
public static List<String> aliasDescription = new ArrayList<String>();
public static List<String> aliasVersion = new ArrayList<String>();
// Value aliases
public static List<String> aliasTrue = new ArrayList<String>();
@ -166,6 +168,8 @@ public class Conf {
aliasDescription.add("desc");
aliasVersion.add("version");
aliasTrue.add("true");
aliasTrue.add("yes");
aliasTrue.add("y");