mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-29 05:36:28 +01:00
Fixed version number and version command. Updated folder structure for easier working with eclipse
This commit is contained in:
parent
7c1e176320
commit
bcd52a1fbd
4
.gitignore
vendored
4
.gitignore
vendored
@ -13,7 +13,7 @@
|
|||||||
/build
|
/build
|
||||||
/bin
|
/bin
|
||||||
/dist
|
/dist
|
||||||
/manifest.mf
|
/localexport.jardesc
|
||||||
|
|
||||||
# Mac filesystem dust
|
# Mac filesystem dust
|
||||||
/.DS_Store
|
.DS_Store
|
@ -1,3 +1,3 @@
|
|||||||
name: Factions
|
name: Factions
|
||||||
version: 1.0 beta
|
version: 1.0 alpha
|
||||||
main: com.bukkit.mcteam.factions.Factions
|
main: com.bukkit.mcteam.factions.Factions
|
@ -81,6 +81,12 @@ public class Commands {
|
|||||||
pageLines.add(Conf.colorSystem+"also use this to create member only areas.");
|
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+"As dispensers are protected you can create traps without");
|
||||||
pageLines.add(Conf.colorSystem+"worrying about those arrows getting stolen.");
|
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);
|
helpPages.add(pageLines);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -204,7 +210,9 @@ public class Commands {
|
|||||||
relation(me, Relation.ENEMY, TextUtil.implode(tokens));
|
relation(me, Relation.ENEMY, TextUtil.implode(tokens));
|
||||||
} else if (Conf.aliasDescription.contains(command)) {
|
} else if (Conf.aliasDescription.contains(command)) {
|
||||||
description(me, TextUtil.implode(tokens));
|
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.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))));
|
//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());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -70,6 +70,8 @@ public class Conf {
|
|||||||
|
|
||||||
public static List<String> aliasDescription = new ArrayList<String>();
|
public static List<String> aliasDescription = new ArrayList<String>();
|
||||||
|
|
||||||
|
public static List<String> aliasVersion = new ArrayList<String>();
|
||||||
|
|
||||||
// Value aliases
|
// Value aliases
|
||||||
public static List<String> aliasTrue = new ArrayList<String>();
|
public static List<String> aliasTrue = new ArrayList<String>();
|
||||||
|
|
||||||
@ -166,6 +168,8 @@ public class Conf {
|
|||||||
|
|
||||||
aliasDescription.add("desc");
|
aliasDescription.add("desc");
|
||||||
|
|
||||||
|
aliasVersion.add("version");
|
||||||
|
|
||||||
aliasTrue.add("true");
|
aliasTrue.add("true");
|
||||||
aliasTrue.add("yes");
|
aliasTrue.add("yes");
|
||||||
aliasTrue.add("y");
|
aliasTrue.add("y");
|
||||||
|
Loading…
Reference in New Issue
Block a user