mirror of
https://github.com/Oth3r/Sit.git
synced 2025-09-19 16:03:22 +02:00
fix command parsing
This commit is contained in:
parent
82fd2b1fbf
commit
da5fc6b3de
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ public class Events {
|
||||||
if (result.equals(ActionResult.CONSUME)) {
|
if (result.equals(ActionResult.CONSUME)) {
|
||||||
try {
|
try {
|
||||||
CommandDispatcher<ServerCommandSource> dispatcher = Data.getServer().getCommandSource().getDispatcher();
|
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);
|
dispatcher.execute(parse);
|
||||||
} catch (CommandSyntaxException e) {
|
} catch (CommandSyntaxException e) {
|
||||||
Data.LOGGER.error("Error executing sit command for player {}", player.getName().getString());
|
Data.LOGGER.error("Error executing sit command for player {}", player.getName().getString());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue