Emulating commands

Discussion in 'Plugin Development' started by UltraMC, Jan 26, 2014.

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

    UltraMC

    So I have command not from my plugin/bukkit command ex. /ban-ip

    Is there a way to emulate execution of any command? I'm thinking about aliasing/translating commands so I would use:

    /bi args -> which would do /ban-ip args
    /bi args -> which would do /ban-ip args
     
  2. Offline

    Th3Br1x

    UltraMC As i wrote in your other thread:
    There is a function called
    Code:java
    1. performCommand(String cmd);
    in the class Player.

    Example:
    Code:java
    1. player.performCommand("spawn");
     
  3. Offline

    UltraMC

    What about server commands?
     
Thread Status:
Not open for further replies.

Share This Page