class TownyPermissionNode(PermissionNode):
# Permission nodes for testing inspired be the towny permission nodes
# https://github.com/TownyAdvanced/Towny/blob/master/src/com/palmergames/bukkit/towny/permissions/PermissionNodes.java
TOWNY_ = "towny.*"
TOWNY_CHAT_ = "towny.chat.*"
TOWNY_CHAT_TOWN = "towny.chat.town"
TOWNY_CHAT_NATION = "towny.chat.nation"
TOWNY_CHAT_GLOBAL = "towny.chat.global"
TOWNY_WILD_ = "towny.wild.*"
TOWNY_WILD_BUILD_ = "towny.wild.build.*"
TOWNY_WILD_BUILD_X = "towny.wild.build.<x>"
TOWNY_WILD_BUILD_IRON = "towny.wild.build.iron"
TOWNY_WILD_DESTROY_ = "towny.wild.destroy.*"
TOWNY_WILD_DESTROY_X = "towny.wild.destroy.<x>"
roles:
parent_role:
member_roles:
- child_role
permission_nodes:
towny.chat.*: Null
towny.wild.*: Null
child_role:
member_subjects:
- user
permission_nodes:
towny.chat.town: Null
towny.wild.build.<x>: ["iron"]
towny.wild.build.iron: Null
subjects:
user:
permission_nodes:
towny.build.*: Null
permission_tree:
towny.chat.*:
towny.chat.town: Null
towny.chat.global: Null
towny.chat.nation: Null
towny.wild.*:
towny.wild.build.*:
towny.wild.build.<x>: []
towny.wild.build.iron: Null
towny.wild.destroy.*:
towny.wild.destroy.<x>: []
towny.chat.town: Null
towny.wild.build.<x>: ["iron"]
towny.wild.build.iron: Null
permission_nodes:
towny.*:
towny.chat.*:
towny.chat.*:
- towny.chat.town
- towny.chat.global
- towny.chat.nation
- towny.chat.foo.*
towny.chat.foo.*:
- ddd
towny.chat.town: []
- towny.chat.*: user->child_role->parent_role
- towny.wild.*: user->child_role->parent_role
- towny.wild.build.<iron>: user->child_role
- towny.build.*: user
- towny.chat.town: user->child_role
- towny.chat.*: parent_role
- towny.wild.*: parent_role
- towny.build.*: user