fix command parsing

This commit is contained in:
Oth3r 2025-03-12 17:38:58 -05:00
commit da5fc6b3de

View file

@ -188,7 +188,7 @@ public class Events {
if (result.equals(ActionResult.CONSUME)) {
try {
CommandDispatcher<ServerCommandSource> dispatcher = Data.getServer().getCommandSource().getDispatcher();
ParseResults<ServerCommandSource> parse = dispatcher.parse("/sit", player.getCommandSource());
ParseResults<ServerCommandSource> parse = dispatcher.parse("sit", player.getCommandSource());
dispatcher.execute(parse);
} catch (CommandSyntaxException e) {
Data.LOGGER.error("Error executing sit command for player {}", player.getName().getString());