Help.yml

Discussion in 'Plugin Development' started by jacklin213, Aug 11, 2012.

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

    jacklin213

    lets say i was making a plugin called test and i wanted to display the help.
    i have to do /help test in game (by default without adding anything into the plugin)
    how do i make it so it becomes /test help ???? (i've added the command but do i need to do anything else) could import the default help thingy to work with /test help
     
  2. Offline

    The_Coder

    You could make in a config and just pull the string from that but i have never done a help.yml I will look into for you
     
  3. Offline

    jacklin213

    ty but then i need the config file for something else later and i dont want people changing the help message
     
  4. Offline

    The_Coder

    What do you mean
     
  5. Offline

    JOPHESTUS

    you could make it so that when a player does /test help it makes them run the command /help test
     
  6. Offline

    The_Coder

    Bty why would you want this bukkit has a great help system all ready in place
     
  7. Offline

    jacklin213

    cause its the other way round.... i want to be /test help not /help test i would like both if it was possible JOPHESTUS how would i do that?
     
  8. Offline

    JOPHESTUS

    Code:
    Bukkit.dispatchCommand(sender, "stop");
    the player^ ^Command
    You'll have to cancel them typing /help test (I don't remember how though)
     
  9. Offline

    NSArray

    Do your checking to see if they used the right command, then use

    Bukkit.dispatchCommand(sender, "help test");
    return true;
     
  10. Offline

    jacklin213

    kk ill test it out
     
Thread Status:
Not open for further replies.

Share This Page