Don't silently swallow exceptions and pretend nothing happened..
This commit is contained in:
parent
197c500832
commit
13524e78f6
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user