How to place an order to run another order. but to do it only for those who have a permit

Discussion in 'Spigot Plugin Help' started by ursuarsenie, Jun 30, 2021.

  1. I plan for example to create a command for / time set day and so I want to make another command called / day to reactivate the command / time set day, only that the command / day has access only to some people who have permission to example
  2. You could use dispatchCommand, so if you have the permission, and you do /day
    Code (Text):

    Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), "time set day")
    That is one way of doing it
  3. This isn't the dev section

    Use any alias plugin that let you run /day and turns the command into /time set day without the player knowing