Don't let people use vault 0

This commit is contained in:
drtshock
2013-04-01 16:02:57 -05:00
parent 50e5bff179
commit e1508b4805
@@ -37,6 +37,8 @@ public class VaultOperations {
int number = 0;
try {
number = Integer.parseInt(arg);
if(number == 0)
return false;
}
catch(NumberFormatException nfe) {
sender.sendMessage(Lang.TITLE.toString() + ChatColor.RED + Lang.MUST_BE_NUMBER);
@@ -74,6 +76,8 @@ public class VaultOperations {
int number = 0;
try {
number = Integer.parseInt(arg);
if(number == 0)
return false;
}
catch(NumberFormatException nfe) {
sender.sendMessage(Lang.TITLE.toString() + ChatColor.RED + Lang.MUST_BE_NUMBER);
@@ -102,6 +106,9 @@ public class VaultOperations {
int number = 0;
try {
number = Integer.parseInt(arg);
if(number == 0)
sender.sendMessage(Lang.TITLE.toString() + ChatColor.RED + Lang.MUST_BE_NUMBER);
return;
}
catch(NumberFormatException nfe) {
sender.sendMessage(Lang.TITLE.toString() + ChatColor.RED + Lang.MUST_BE_NUMBER);
@@ -132,6 +139,10 @@ public class VaultOperations {
int number = 0;
try {
number = Integer.parseInt(arg);
if(number == 0) {
sender.sendMessage(Lang.TITLE.toString() + ChatColor.RED + Lang.MUST_BE_NUMBER);
return;
}
}
catch(NumberFormatException nfe) {
sender.sendMessage(Lang.TITLE.toString() + ChatColor.RED + Lang.MUST_BE_NUMBER);