Format some stuffs

This commit is contained in:
gomeow
2013-08-25 14:58:11 -07:00
parent f484a8eb71
commit e527764d56
10 changed files with 236 additions and 238 deletions
+3 -1
View File
@@ -1,4 +1,6 @@
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
<id>bin</id>
<includeBaseDirectory>false</includeBaseDirectory>
<files>
@@ -29,16 +29,14 @@ public class Commands implements CommandExecutor {
sender.sendMessage(Lang.TITLE + "/pv <number>");
sender.sendMessage(Lang.TITLE + "/pv <player> <number>");
}
}
else sender.sendMessage(Lang.TITLE.toString() + ChatColor.RED + Lang.PLAYER_ONLY);
} else sender.sendMessage(Lang.TITLE.toString() + ChatColor.RED + Lang.PLAYER_ONLY);
} else if (cmd.getName().equalsIgnoreCase("pvdel")) {
switch (args.length) {
case 1:
if (sender instanceof Player) {
Player p = (Player) sender;
VaultOperations.deleteOwnVault(p, args[0]);
}
else {
} else {
sender.sendMessage(Lang.TITLE.toString() + ChatColor.RED + Lang.PLAYER_ONLY);
}
break;
@@ -75,8 +73,7 @@ public class Commands implements CommandExecutor {
}
PlayerVaults.SET_SIGN.put(sender.getName(), new SignSetInfo(i));
sender.sendMessage(Lang.TITLE.toString() + Lang.CLICK_A_SIGN);
}
else if (args.length >= 2) {
} else if (args.length >= 2) {
int i = 0;
try {
i = Integer.parseInt(args[1]);
@@ -85,8 +85,7 @@ public class EconomyOperations {
player.sendMessage(Lang.TITLE.toString() + ChatColor.RED + Lang.VAULT_DOES_NOT_EXIST);
return false;
}
}
else {
} else {
player.sendMessage(Lang.TITLE.toString() + ChatColor.RED + Lang.VAULT_DOES_NOT_EXIST);
return false;
}
@@ -561,7 +561,8 @@ public class Metrics {
/**
* Called when the server owner decides to opt-out of Metrics while the server is running.
*/
protected void onOptOut() {}
protected void onOptOut() {
}
}
@@ -613,7 +614,8 @@ public class Metrics {
/**
* Called after the website graphs have been updated
*/
public void reset() {}
public void reset() {
}
@Override
public int hashCode() {
@@ -64,8 +64,7 @@ public class Serialization {
for (ConfigurationSerializable cs : items) {
if (cs == null) {
result.add("null");
}
else {
} else {
result.add(new JSONObject(serialize(cs)).toString());
}
}
@@ -80,8 +79,7 @@ public class Serialization {
for (String piece : stringItems) {
if (piece.equalsIgnoreCase("null")) {
contents.add(null);
}
else {
} else {
try {
ItemStack item = (ItemStack) deserialize(toMap(new JSONObject(piece)));
contents.add(item);