Skip to content

Comment source and Subhelps #4

@txomon

Description

@txomon

Hi,

I have been reviewing your source code and tried your plugin and has some ideas:

  • Making comments to your code, so that is more readable.
  • Organize better the configuration file, I would propose something like this:

*** Help/Config.yml ***

help:
  description: Show this help
help.server:
  description: Show server related help
help.server.groups:
  description: Show groups commands helps
help.server.admin:
  description: Show basic admin help (stop, backup)
help.server.roles:
  description: Show roles help configuration commands
help.chat:
  description: Show chat help, (ratius speech, broadcast)
help.chat.msg:
  description: Send a PM to a player
# This github parser doesn't allow to put msg between  
  syntax: /msg  <msg>
help.chat.all:
  description: Send a Broadcast message by adding ! at the beggining
  syntax: !<msg>

So that you can define in GroupManager and all other plugins those permissions directly. There you have the structure already implicit, and you can group different plugin's helps without letting the user which are.

Hope it helps you!

don't hesitate to contact me (github's profile email)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions