Solved help with /help

Discussion in 'Plugin Development' started by SixFeedUnder, Oct 14, 2015.

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

    SixFeedUnder

    Hello, I have coded a plugin called CommandPotions and it allows you to get potion effects on a command and i recently added permissions to it and for some reason when I do /help CommandPotions when I am not opped nothing shows up but when I am opped it shows all the help messages, Can someone please help me fix this?

    Main.java> http://pastebin.com/6DNFZeN2
    plugin.yml> http://pastebin.com/7vzqgQnT
    config.yml> http://pastebin.com/d0zLH2qt

    Example:
    upload_2015-10-14_22-40-48.png
     
  2. Offline

    NortherKnight

    How about you code the help command yourself ?
    PS: check if a sender is not a player before you check if the command is right so it will cancel bofore it can execute a command :3
     
  3. Offline

    Scimiguy

    Don't overwrite the base help command, unless you seriously have to.
    @NortherKnight @SixFeedUnder

    More than likely this is a permissions issue.
    Are the commands permission-locked? If so, do you have the permission when not opped?
     
  4. Offline

    SixFeedUnder

    No I do not have any permissions when im not opped, there should not be a permission to view the help when Im not opped, and I would rather not make a new help command.
     
  5. Offline

    Scimiguy

    @SixFeedUnder

    The permissions are for the commands themselves.
    Do players need a certain permission to use the /haste command, for example?

    EDIT: Saw your plugin.yml.

    The reason they're not being listed is you don't have the permission to use those commands when de-opped
     
  6. Offline

    SixFeedUnder

    Yeah I want it like that, So how would I still list the commands when they do /help CommandPotions? I want players to be able to see the commands but not execute them unless they have the permissions, Would I just need to make my own help command?
     
  7. Offline

    Scimiguy

    create a subcommand under yours
    "/commandpotions help"

    And handle it from there, just like you would any other of your commands
     
  8. Offline

    DoggyCode™

    I'm pretty sure he didn't want to Override it.. Maybe just make a command like: "/commandpotions", then a lost would appear like this maybe:
    Usage: /commandpotions (potion) (level)
    Available Potions:
    - Strength (1/2)
    - Speed (1/2/3)

    With colors and such.
     
  9. Offline

    Scimiguy

  10. Offline

    boomboompower

    @Scimiguy Doesn't really matter if you override the default help page. Better if you want to make a fancier/custom one.
     
    DoggyCode™ likes this.
Thread Status:
Not open for further replies.

Share This Page