Advertisement
Guest User

cmd1.13.1

a guest
Dec 10th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. public static void register(CommandDispatcher<CommandSource> src)
  2. {
  3. //tps
  4. src.register(literal("tps")
  5. .executes(context -> execute1(context.getSource()))
  6.  
  7. //tps <ticks_per_second>
  8. .then(argument("ticks per second", floatArg(0.0F))
  9. .executes(context -> execute2(context.getSource(), getFloat(context, "ticks per second"))))
  10.  
  11. //tps warp <ticks>
  12. .then(literal("warp")
  13. .executes(context -> execute3(context.getSource()))
  14. .then(argument("ticks", integer(0))
  15. .executes(context -> execute4(context.getSource(), getInteger(context, "ticks"))))));
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement