Skip to content

Instantly share code, notes, and snippets.

@PEMapModder
Forked from Dinnerbone/gist:2a185a41dcddfb9abb67
Last active August 29, 2015 14:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PEMapModder/d61a9db52178b837b1f6 to your computer and use it in GitHub Desktop.
Save PEMapModder/d61a9db52178b837b1f6 to your computer and use it in GitHub Desktop.
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