Make user run a command

Discussion in 'Plugin Development' started by chakyl, Mar 14, 2013.

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

    chakyl

    I'm very new to developing plugins, and I can't seem to figure out how to make a player send a message/command.

    Sorry if this seems stupid or obvious...
     
  2. Offline

    Darq

  3. Offline

    Codisimus

    Wuts wrong with using

    Code:
    boolean org.bukkit.entity.Player.performCommand    (    String    command    )   
    Makes the player perform the given command.
     
    Parameters
    command    Command to perform
    Returns
    true if the command was successful, otherwise false
     
  4. Offline

    Darq

    Codisimus Nothing; I didn't look in the Javadocs hard enough, either.
     
  5. Offline

    mailrage

    Try this player.chat("/command") replacing player with your player Variable.
     
  6. Offline

    LaxWasHere

    player.performCommand?
     
  7. Offline

    Codisimus

    Darq looks like our answers weren't good enough lol.
     
  8. Codisimus LaxWasHere, Hi, I'm here from a google search, and I'm trying to figure out how to perform a command that isnt currently in your plugin. I dont know if i'm doing this wrong but, i am doing
    Code:java
    1. p.chat("/server hub");

    To perform the bungee cord command of switching servers. It is just saying "unknown command." How to fix this and/or make this work
     
  9. Offline

    fireblast709

    The__Master_Coder two things:
    • This thread is dead for at least 1.5 years, let it be dead
    • BungeeCord isn't even supported here. Go to the appropiate forums for support.
     
Thread Status:
Not open for further replies.

Share This Page