Skip to content

Permissions Wiki page generation tool for mcMMO

Notifications You must be signed in to change notification settings

mcMMO-Dev/mcMMO-perm-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mcMMO-perm-gen

mcMMO-perm-gen is a tool for automatically generating a list of permissions from a plugin.yml written for use with mcMMO

Usage

java -jar mcMMO-perms-gen.jar [path to plugin.yml] [path to main.template] [path to child.template] [path to parent.template] [path to child_list.template]

plugin.yml

Any valid plugin.yml will work with this tool, however to any permission node you may add the following:

  • noparse: true
  • This will prevent the tool from processing this node
  • wiki: String
  • This will provide additional information for the __WIKI_INFO__ key

Template

Inside the main template, __CHILD_NODES__ will include the Child Template for each child node found in the plugin.yml, __PARENT_NODES__ will include the Parent Template for each parent node found in the plugin.yml, __CHILD_LIST__ will list all child nodes in the root separated by newline, __PARENT_LIST__ will list all parent nodes in the root separated by newline.

Inside the Child and Child List Templates, the node will be formatted with the provided information from the plugin.yml

Inside the Parent Template, the node will be formatted with the provided information from the plugin.yml, additionally __CHILD_LIST_FORMATTED__ will include the Child List Template for that parent node.

Main Template Keys

  • __CHILD_NODES__
  • __PARENT_NODES__
  • __CHILD_LIST__
  • __PARENT_LIST__

Child Template Keys

  • __NODE__
  • __DEFAULT_INHERITANCE__
  • __WIKI_INFO__

Parent Template Keys

  • __NODE__
  • __DEFAULT_INHERITANCE__
  • __WIKI_INFO__
  • __CHILD_LIST_FORMATTED__

Child List Template Keys

  • __NODE__
  • __DEFAULT_INHERITANCE__
  • __WIKI_INFO__

Compiling

Maven 3 is required to compile mcMMO-perm-gen

About

Permissions Wiki page generation tool for mcMMO

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages