Forked from Dinnerbone/gist:2a185a41dcddfb9abb67
Last active
August 29, 2015 14:08
-
-
Save PEMapModder/d61a9db52178b837b1f6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dispatcher.registerCommand( | |
literal("scoreboard").then( | |
literal("players").then( | |
literal("reset").then( | |
argument("players", players()).then( | |
optional("objective", objective()) | |
).executes(SOME_COMMAND) | |
) | |
).then( | |
literal("list").then( | |
argument("players", players()) | |
).executes(SOME_COMMAND) | |
) | |
).then( | |
literal("objectives").then( | |
literal("list").executes(SOME_COMMAND) | |
).then( | |
literal("setdisplay").then( | |
argument("slot", enumValues(ScoreboardSlotTypes.class)).then( | |
argument("objective", objective()) | |
).executes(SOME_COMMAND) | |
) | |
) | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment