Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void register(CommandDispatcher<CommandSource> src)
- {
- //tps
- src.register(literal("tps")
- .executes(context -> execute1(context.getSource()))
- //tps <ticks_per_second>
- .then(argument("ticks per second", floatArg(0.0F))
- .executes(context -> execute2(context.getSource(), getFloat(context, "ticks per second"))))
- //tps warp <ticks>
- .then(literal("warp")
- .executes(context -> execute3(context.getSource()))
- .then(argument("ticks", integer(0))
- .executes(context -> execute4(context.getSource(), getInteger(context, "ticks"))))));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement