1.8.8 Creating Mass Commands

Discussion in 'Spigot Plugin Development' started by DarkKnights22, Apr 3, 2020.

  1. Hello, what's the most efficient way of creating lots of commands that do the same thing? I need to have /a, /b, /c etc. and /warp a, /warp b, /warp c etc. They just need to tp a player to a location and send a message.
     
  2. For your warp, you can load a list into a file and match the first parameter in order to tp your player to the location you want. Depending of the commands you need, you would also use a similar process for your other commands. With more details, it would be easier for me to help you in your plugin dev.
     
  3. If you're using some sort of command manager for this, where you declare each commands functionality you could pass some aliases, like "/warp a" and "/a". Then in your command manager check if the label and arguments match that and simply execute that functionality. Hopefully that makes sense.