Account Permission File permissions.xml

This file is for managing the permission model of the server.

Manaserv supports up to 8 permission classes which can include different permissions. Every player account can have any combination of permission classes, so it is rarely neccessary to put the same permission into different classes. Every newly created account has the class 1 automatically, so permissions of a normal player should be placed here.

permissions.xml

<permissions>
 <class level="1">
  <alias>Player</alias>
  <allow>!login</allow>
  <allow>!chat</allow>
  <allow>!fight</allow>
  <allow>!level</allow>
  <allow>!createcharacter</allow>
  <allow>@where</allow>
 </class>
 <class level="2">
  <alias>GM</alias>
  <alias>Game Master</alias>
  <allow>@ban</allow>
  <allow>@kick</allow>
  <allow>@kill</allow>
  <allow>@warp</allow>
  <deny>!createcharacter</deny>
 </class>
 <class level="3">
  <alias>Dev</alias>
  <alias>Developer</alias>
  <allow>@spawn</allow>
  <allow>@item</allow>
  <allow>@warp</allow>
 </class>
[...]
 <class level="8">
  <alias>Admin</alias>
  <allow>@giverightclass</allow>
  <allow>@takerightclass</allow>
 </class>
</permissions>

<allow>

User with this class may perform this action. Action names starting with ”@” are the corresponding @commands, those starting with ”!” are other actions which are not performed with a command.

<deny>

A user with this class may 'not' perform this action, even when it has other classes which allow it.

<alias>

Alternative name for a class which can be used in the @giverightclass or @takerightclass

Implementation status

supported

  • controlling @commands
  • giving and taking permission classes using @commands
  • <allow> tag
  • <alias> tag

unsupported

  • any !actions
  • checking permissions on account server
  • reading permissions from scripts
  • <deny> tag
 
permissions.xml.txt · Last modified: 2010/01/17 03:23 by Philipp Sehmisch
 
Except where otherwise noted, content on this wiki is licensed under the following license:GNU Free Documentation License 1.2
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki