Fix for a error being thrown when there is no error

This commit is contained in:
libraryaddict 2013-11-20 00:03:11 +13:00
parent 06b9734c3e
commit 65077f1d7b
4 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@ public class DisguiseCommand extends BaseDisguiseCommand {
} catch (Exception ex) {
if (ex.getMessage() != null && !ChatColor.getLastColors(ex.getMessage()).equals("")) {
sender.sendMessage(ex.getMessage());
} else {
} else if (ex.getCause() != null) {
ex.printStackTrace();
}
return true;

View File

@ -29,7 +29,7 @@ public class DisguiseEntityCommand extends BaseDisguiseCommand {
} catch (Exception ex) {
if (ex.getMessage() != null && !ChatColor.getLastColors(ex.getMessage()).equals("")) {
sender.sendMessage(ex.getMessage());
} else {
} else if (ex.getCause() != null) {
ex.printStackTrace();
}
return true;

View File

@ -43,7 +43,7 @@ public class DisguisePlayerCommand extends BaseDisguiseCommand {
} catch (Exception ex) {
if (ex.getMessage() != null && !ChatColor.getLastColors(ex.getMessage()).equals("")) {
sender.sendMessage(ex.getMessage());
} else {
} else if (ex.getCause() != null) {
ex.printStackTrace();
}
return true;

View File

@ -56,7 +56,7 @@ public class DisguiseRadiusCommand extends BaseDisguiseCommand {
} catch (Exception ex) {
if (ex.getMessage() != null && !ChatColor.getLastColors(ex.getMessage()).equals("")) {
sender.sendMessage(ex.getMessage());
} else {
} else if (ex.getCause() != null) {
ex.printStackTrace();
}
return true;