Custom PlotSquared Command

Discussion in 'Spigot Plugin Development' started by Daniel, Apr 23, 2017.

  1. Hello, I'm implementing PlotSquared with my custom pugin for my server and I was wondering is it possible to do /home instead /plot home? just implement the api in my custom plugin and create a /home and connect to the plotsaquared api?
     
  2. Check if user typed /home and perform /plot home. Or you can check the API and see if there is a method to teleport the player to their plot home.
     
  3. The easiest way I think is to use the PlayerCommandPreprocessEvent. Catch the command with getMessage() and let the player perform a command (performCommand()).