CONSOLE.ProformCommand

Discussion in 'Spigot Plugin Development' started by JordanDev, May 29, 2016.

Thread Status:
Not open for further replies.
  1. Hello I'm working on a plugin and I want after some time I want the console or the sender to perform /global pvp
     
    #1 JordanDev, May 29, 2016
    Last edited: Jan 8, 2019
  2. Code (Text):
    Bukkit#getServer().dispatchCommand(Bukkit.getServer().getConsoleSender(), "YourCommand"):
    Use this code to dispatch a command with the Console as command sender.
     
  3. Bukkit#dispatchCommand(CommandSender, String)
     
  4. If you're actually filling in the arguments, pretty sure you don't notate it with # :p
     
  5. :p
     
Thread Status:
Not open for further replies.