Fix a few things, remove bad code

This commit is contained in:
gomeow
2013-08-27 11:21:42 -07:00
parent 357e0c6142
commit 2ba9656f48
7 changed files with 40 additions and 38 deletions
@@ -63,7 +63,7 @@ public class Commands implements CommandExecutor {
if (sender.hasPermission("playervaults.signs.set")) {
if (sender instanceof Player) {
if (args.length == 1) {
int i = 0;
int i;
try {
i = Integer.parseInt(args[0]);
} catch (NumberFormatException nfe) {
@@ -74,7 +74,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) {
int i = 0;
int i;
try {
i = Integer.parseInt(args[1]);
} catch (NumberFormatException nfe) {