command to command

Discussion in 'Plugin Development' started by 7marllbe3o, May 17, 2016.

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

    7marllbe3o

    hello
    I want the code you write something and then did something last
    Example: /hack <player> Then do something /tempban <player> 1h using hack

    ..
     
  2. Offline

    timtower Administrator Administrator Moderator

  3. Offline

    MadMaxCookie

    @7marllbe3o

    Code:
    boolean onCommand(CommandSender sender, Command cmd, String label, String[] args)
    format : cmd args[0] args[1] ....

    after checking if its /hack <player> command

    dispatch a command like @timtower said
     
    Last edited: May 18, 2016
  4. Offline

    Zombie_Striker

    @MadMaxCookie
    If that is supposed to be the code for an onCommand, then you are missing the CommandSender and the Command Label String.
     
  5. Offline

    MadMaxCookie

    @Zombie_Striker yeah I know I didn't completed it sorry my fault :D too lazy
     
Thread Status:
Not open for further replies.

Share This Page