Fix exception message formatting in command invocation (#1687)

This commit is contained in:
SzymON/OFF
2025-11-09 20:59:06 +01:00
committed by GitHub
parent 75d68115ef
commit a046f70075

View File

@@ -256,7 +256,7 @@ public class VelocityCommandManager implements CommandManager {
} }
} catch (final Throwable e) { } catch (final Throwable e) {
// Ugly, ugly swallowing of everything Throwable, because plugins are naughty. // Ugly, ugly swallowing of everything Throwable, because plugins are naughty.
throw new RuntimeException("Unable to invoke command " + parsed.getReader().getString() + "for " + source, e); throw new RuntimeException("Unable to invoke command " + parsed.getReader().getString() + " for " + source, e);
} finally { } finally {
eventManager.fireAndForget(new PostCommandInvocationEvent(source, parsed.getReader().getString(), result)); eventManager.fireAndForget(new PostCommandInvocationEvent(source, parsed.getReader().getString(), result));
} }
@@ -400,4 +400,4 @@ public class VelocityCommandManager implements CommandManager {
return MoreExecutors.directExecutor(); return MoreExecutors.directExecutor();
} }
} }
} }