Don't silently swallow exceptions and pretend nothing happened..

This commit is contained in:
libraryaddict 2014-09-14 00:22:21 +12:00
parent 197c500832
commit 13524e78f6
4 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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

View File

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