Catch /npc command exceptions

This commit is contained in:
fullwall 2020-01-17 18:15:21 +09:00
parent 36ff6730fd
commit c42d5f7aa0

View File

@ -121,7 +121,11 @@ public class CommandTrait extends Trait {
if (op) {
clicker.setOp(true);
}
clicker.performCommand(interpolatedCommand);
try {
clicker.performCommand(interpolatedCommand);
} catch (Throwable t) {
t.printStackTrace();
}
if (op) {
clicker.setOp(wasOp);
}