mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-23 00:21:31 +01:00
Catch /npc command exceptions
This commit is contained in:
parent
36ff6730fd
commit
c42d5f7aa0
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user