How can I dispatch a command to console?!

Discussion in 'Plugin Development' started by PerezHD, Aug 7, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    PerezHD

    Can anyone show me how to dispatch a command to console

    Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), "op perezhd");

    all I got is that I dont know what to do
     
  2. Offline

    rfsantos1996


    I belive you need the "/", don't you?

    Also, I tried to make the video be on the 1m22s exacly, but it don't work with [media things] of the forum
     
  3. rfsantos1996 No
    PerezHD That is the line you'd use (although I won't use that to op someone) - do you know any of the rest of the code required to make a plugin?
     
  4. Offline

    Dragonphase

  5. Offline

    Garris0n

    Not shady at all.
     
    Dragonphase likes this.
Thread Status:
Not open for further replies.

Share This Page