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
6 changed files with 21 additions and 6 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 +0,0 @@
name: Factions
version: 1.0 beta
main: com.bukkit.mcteam.factions.Factions

3
plugin.yml Normal file
View File

@ -0,0 +1,3 @@
name: Factions
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,7 +210,9 @@ public class Commands {
relation(me, Relation.ENEMY, TextUtil.implode(tokens));
} else if (Conf.aliasDescription.contains(command)) {
description(me, TextUtil.implode(tokens));
} else {
} 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);
//me.getPlayer().sendMessage(TextUtil.repeat(tokens.get(0), Integer.parseInt(tokens.get(1))));
@ -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");