Calls to ICommand interface methods are now wrapped in try, and catch the common CommandException exception.#3
Conversation
… the common CommandException exception.
… the common CommandException exception. (Formatting)
|
As far as I remember, the error appears only in the console, at https://github.com/GTNewHorizons/IguanaTweaksTConstruct/blob/f92ecf760d1d419f4bdb69158391e8d2680ff9fb/src/main/java/iguanaman/iguanatweakstconstruct/commands/CommandIAmADirtyCheater.java#L23 Specifically, due to the exception thrown by the getCommandSenderAsPlayer method. https://github.com/GTNewHorizons/IguanaTweaksTConstruct/blob/f92ecf760d1d419f4bdb69158391e8d2680ff9fb/src/main/java/iguanaman/iguanatweakstconstruct/commands/CommandIAmADirtyCheater.java#L62 It turned out that it was impossible to find a player for the console, but the player search was used in a method that returned a hint. This led to the command loop being interrupted, which in turn resulted in the hint not being displayed in the server console. And since it's difficult to ensure conflict-free coding across multiple mods, it's better to add an additional layer of exception handling. Actually, I just saw the issues when I was in a good mood. I figured it out and fixed it. =) |

To run the /help command in the server console.
Fix GTNewHorizons/GT-New-Horizons-Modpack#13490
Fix GTNewHorizons/GT-New-Horizons-Modpack#3175