Solved Make console do command

Discussion in 'Plugin Development' started by Leonator05, Jun 1, 2016.

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

    Leonator05

    How do I make the console do a command like
    /op Eff7ctz
    or
    /msg Eff7ctz Hello Leon someone has done your command?

    So not player.getSender I want it so it executes a command for me
     
  2. Offline

    I Al Istannen

  3. Offline

    Leonator05

    What would I type in there?
    Bukkit.DispatchCommand(HERE)
    I want to do the command /op Eff7ctz when I a player sends a command (I did the command already)
     
  4. Offline

    I Al Istannen

    @Leonator05
    Why don't you just send the player a message than? No need to run the msg command.

    And if you can't figure out what to insert there (with what I said), not trying to be rude, but your primary concern should be learning Java or reading Javadocs.
    In case you didn't see it, here is the "full" one. Mentioned down there as "See Also".
     
  5. Offline

    Batman500

    Code:
    Bukkit.DispatchCommand(Bukkit.getConsoleSender(), "op <player>");
     
  6. Offline

    Leonator05

    Thanks Batman500 I will try that :D
     
Thread Status:
Not open for further replies.

Share This Page