> commandChain, boolean addShort
args.add("[" + optionalArg.getKey() + val + "]");
}
- if (args.size() > 0) {
+ if (!args.isEmpty()) {
ret.append(p.txt.parseTags(" "));
ret.append(TextUtil.implode(args, " "));
}
@@ -377,7 +377,7 @@ public Player strAsBestPlayerMatch(String name, Player def, boolean msg) {
if (name != null) {
List players = Arrays.asList(Server.getInstance().matchPlayer(name));
- if (players.size() > 0) {
+ if (!players.isEmpty()) {
ret = players.get(0);
}
}
diff --git a/src/com/massivecraft/factions/zcore/MPluginSecretServerListener.java b/src/com/massivecraft/factions/zcore/MPluginSecretServerListener.java
index a7e22387d..f8024e46b 100644
--- a/src/com/massivecraft/factions/zcore/MPluginSecretServerListener.java
+++ b/src/com/massivecraft/factions/zcore/MPluginSecretServerListener.java
@@ -15,7 +15,7 @@ public MPluginSecretServerListener(MPlugin p) {
@EventHandler(priority = EventPriority.LOWEST)
public void onServerCommand(ServerCommandEvent event) {
- if (event.getCommand().length() == 0) return;
+ if (event.getCommand().isEmpty()) return;
if (p.handleCommand(event.getSender(), event.getCommand())) {
event.setCommand(p.refCommand);
diff --git a/src/resources/plugin.yml b/src/resources/plugin.yml
index 1a5c7837c..a341bf4c9 100644
--- a/src/resources/plugin.yml
+++ b/src/resources/plugin.yml
@@ -1,15 +1,15 @@
name: Factions
-version: "1.6.9.5"
+version: "${pom.version}"
api: ["1.0.0"]
main: com.massivecraft.factions.P
authors: [Olof Larsson, Brett Flannigan]
commands:
factions:
- description: Reference command for Factions.
+ description: Reference command for Factions
aliases: [f]
permissions:
factions.kit.admin:
- description: All faction permissions.
+ description: All faction permissions
children:
factions.kit.mod: true
factions.config: true
@@ -21,7 +21,7 @@ permissions:
children:
factions.kit.admin: true
factions.kit.mod:
- description: All faction permissions but configuration and persistance.
+ description: All faction permissions but configuration and persistance
children:
factions.kit.halfmod: true
factions.disband.any: true
@@ -47,12 +47,12 @@ permissions:
factions.chatspy: true
factions.kit.fullplayer:
default: true
- description: Can also create new factions.
+ description: Can also create new factions
children:
factions.kit.halfplayer: true
factions.create: true
factions.kit.halfplayer:
- description: Can do all but create factions.
+ description: Can do all but create factions
children:
factions.admin: true
factions.autoclaim: true