Skip to content

Commit

Permalink
fix: fix gamerule command inquire
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcmd committed Jun 8, 2024
1 parent cacbcb4 commit 2b86d59
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ public void prepareCommandTree(CommandTree tree) {
tree.getRoot()
.enumsIgnoreCase("rule", "", "BoolGameRule", BOOL_GAMERULE_ENUM)
.bool("value")
.defaultValue(null)
.optional()
.exec(executor(true))
.root()
.enumsIgnoreCase("rule", "", "IntGameRule", INT_GAMERULE_ENUM)
.intNum("value")
.defaultValue(null)
.optional()
.exec(executor(false));
}
Expand Down

0 comments on commit 2b86d59

Please sign in to comment.