Help menu is empty

Discussion in 'Plugin Development' started by Tecno_Wizard, Jul 27, 2015.

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

    Tecno_Wizard

    Note that I have no access to a computer right now so I can't test anything.

    I'm having an issue with all of my plugins. None of them have a working help menu. The /help (pluginName) menu for my plugin is complely empty,and I have no idea why. I believe that is has something to do with the plugin yml that I posted, but I'm not sure. Anyone know what I'm doing wrong?
    @Chiller, you noticed this with Punish, but I realized it's in every resource I ever made. Did you figure out what it was?

    Code:
    name: CommandsForSale
    description: 'Allows the purchasing and protecting of commands'
    version: 1.2.3
    author: 'Tecno_Wizard'
    main: me.Tecno_Wizard.CommandsForSale.core.Main
    commands:
      buycmd:
        description: Initiates the purchasing of a command
      confirm:
        description: Confirms a command purchase
      deny:
        description: Denies the purchase of a command
      cmdstobuy:
        description: Lists all purchasable commands
      boughtcmds:
        description: Lists the commands you have bought
      cmdsforsale:
        description: Holds the commands for admin-only functions
        permission: cmdsforsale.moderator
        aliases: cfs
      buyonce:
        description: Buys one time use pass with argument of cmd name. If second arg is price, prints price.
    permissions:
      cmdsforsale.moderator:
        description: Gives access to all commands and admin functions
        children:
          cmdsforsale.buyexempt: true
      cmdsforsale.buyexempt:
        description: Makes it so the player does not need to buy commands
    softdepend: [Vault]
     
    Last edited: Jul 27, 2015
  2. Offline

    teej107

    @Tecno_Wizard well "not working" is a too vague of a statement to say so I'll just make a random guess.... umm did you start your Bukkit server?
     
    Synapz likes this.
  3. Offline

    Tecno_Wizard

    @teej107, you'd have to guess that I've seen enough of those posts to not make that mistake.
     
  4. Offline

    teej107

    @Tecno_Wizard well is your plugin even loading? Are you testing it alone?
     
  5. Offline

    HeadGam3z

    retweet.
     
  6. Offline

    Tecno_Wizard

    @teej107, the plugins load and operate perfectly except for the /help (pluginName) menu being entirely empty. I am testing alone, but other users experience the same issue.
     
  7. Offline

    teej107

    @Tecno_Wizard you aren't messing with the PlayerCommandPreprocessEvent are you? Do other plugin help commands show up? I think you can create your own help topics. You didn't mess that up did you? Does this work on other CB versions?
     
  8. Offline

    Tecno_Wizard

  9. Offline

    teej107

    @Tecno_Wizard Make a small simple plugin (it doesn't have to do anything) and see if the help topics show up on that one.
     
  10. Offline

    Tecno_Wizard

    @teej107
     
  11. Offline

    teej107

    @Tecno_Wizard
    .....when you can :p I honestly don't know what is up with your help commands
     
  12. Offline

    Tecno_Wizard

    @teej107, well, at least I know it isn't likely to be a dumb yml mistake. I'll bump this thread Thursday afternoon when I get home. Thanks for the assistance.
     
  13. Offline

    teej107

    @Tecno_Wizard If it was a YML mistake, I would think an error in the console would be thrown. It's just the help command that doesn't work? The plugin commands work fine?
     
  14. Offline

    Tecno_Wizard

    @teej107, all commands function perfectly, but nothing appears in the help menu.
     
  15. Offline

    Tecno_Wizard

    Repoening the thread now that I have access to a computer again. @teej107, it's still happening.
     
  16. Offline

    teej107

  17. Offline

    Tecno_Wizard

    @teej107, yeah. Want me to put the jar in Google drive and link it? Won't be immediate because I'm a little preoccupied.
     
  18. Offline

    teej107

  19. Offline

    Synapz

    @Tecno_Wizard
    Make sure you have op or permission to your permissions.... Don't think it shows you command help unless explicitly shown to (through perms). I remember typing /help Essentials and nothing coming up because I didn't have permissions.

    Also it can maybe be that you have to set your defaults to each permission. Going off what I said before... You might need permissions to see help. If OP isn't set to default for the permission then not even OPs have permission to viewing it unless manually set through group manager. I'm just taking a long shot guess here because you seem to be doing everything correctly. Use default: op under each permission, see http://wiki.bukkit.org/Plugin_YAML for an example.

    EDIT: I went to a server and typed /help Essentials and it only showed commands I had access to.. So I think it has to do with your permissions. Try what I said and hope it helps
     
    Last edited: Aug 3, 2015
  20. Offline

    Tecno_Wizard

    @Synapz @teej107, okay now I'm REALLY confused.
    You were right synapz. When i'm opped it works perfectly, but as soon as i'm not they all disappear which doesn't make much sense at all considering that 9/10 don't require permissions.

    Code:
    name: CommandsForSale
    description: 'Allows the purchasing and protecting of commands'
    version: 1.2.2
    author: 'Tecno_Wizard'
    main: me.Tecno_Wizard.CommandsForSale.core.Main
    commands:
      buycmd:
        description: Initiates the purchasing of a command
      confirm:
        description: Confirms a command purchase
      deny:
        description: Denies the purchase of a command
      cmdstobuy:
        description: Lists all purchasable commands
      boughtcmds:
        description: Lists the commands you have bought
      cmdsforsale:
        description: Holds the commands for admin-only functions
        permission: cmdsforsale.moderator
        aliases: cfs
      buyonce:
        description: Buys one time use pass with argument of cmd name. If second arg is price, prints price.
    permissions:
      cmdsforsale.moderator:
        description: Gives access to all commands and admin functions
        children:
          cmdsforsale.buyexempt: true
      cmdsforsale.buyexempt:
        description: Makes it so the player does not need to buy commands
    softdepend: [Vault]
     
  21. Offline

    teej107

  22. Offline

    Tecno_Wizard

    @teej107, it's my testing grounds, so there might be about 10 or so. Essentials, vault, clearlagg, and then the plguins I'm testing.
     
  23. Offline

    Synapz

    @Tecno_Wizard
    I think the fact that they don't require permissions causes this. No permissions so Bukki automatically assume you don't have access unless you are OP.
     
  24. Offline

    teej107

    Would be worth a shot to try
     
    Synapz likes this.
  25. Offline

    Tecno_Wizard

    @teej107, @Synapz, nearly all of my commands do not have any reason to require perms. Is there a way I could trick Bukkit into always displaying them?
     
  26. Offline

    Synapz

    Aake the cmdsforsale.help permission and set a default tag to true so everyone who joins gets the permission. http://wiki.bukkit.org/Plugin_YAML. Use default: true in your plugin under the permission to set the value, then give all commands that's permission, see the link for more info. That should give everyone access to view the help commands
     
    Last edited: Aug 3, 2015
  27. Offline

    Tecno_Wizard

    I believe that the true applies to OPs...
     
  28. Offline

    Synapz

    @Tecno_Wizard
    If so what's the point of default: op? :p

    Plus the wiki didn't really specify what true means for some reason. But I think it gives it to everyone, I would test it but I am not on my computer and can't get on.
     
Thread Status:
Not open for further replies.

Share This Page