Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2019
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.94 KB | None | 0 0
  1. /*
  2.  
  3. Player groups configuration file
  4. ---------------------------------
  5.  
  6. This file defines "player groups" and their privileges.
  7.  
  8. Each group has its id and name, lists of available commands and other
  9. permissions, and a list of other groups it inherits from.
  10.  
  11.  
  12. Group settings
  13. --------------
  14. <id>
  15. Unique group number. The only required field.
  16.  
  17. <name>
  18. Any string. If empty, defaults to "Group <id>". It is used in several @who
  19. commands.
  20.  
  21. <level>
  22. Equivalent of GM level, which was used in revisions before r15572. You can
  23. set it to any number, but usually it's between 0 (default) and 99. Members of
  24. groups with lower level can not perform some actions/commands (like @kick) on
  25. members of groups with higher level. It is what script command getgmlevel()
  26. returns. Group level can also be used to override trade restrictions
  27. (db/item_trade.txt).
  28.  
  29. <commands>
  30. A group of settings
  31. <command name> : <bool>
  32. or
  33. <commandname> : [ <bool>, <bool> ]
  34. First boolean value is for atcommand, second one for charcommand. If set to
  35. true, group can use command. If only atcommand value is provided, false is
  36. assumed for charcommand. If a command name is not included, false is assumed for
  37. both atcommand and charcommand.
  38. For a full list of available commands, see: doc/atcommands.txt.
  39. Command names must not be aliases.
  40.  
  41. <log_commands>
  42. Boolean value. If true then all commands used by the group will be logged to
  43. atcommandlog. If setting is omitted in a group definition, false is assumed.
  44. Requires 'log_commands' to be enabled in 'conf/log_athena.conf'.
  45.  
  46. <permissions>
  47. A group of settings
  48. <permission> : <bool>
  49. If a permission is not included, false is assumed.
  50. For a full list of available permissions, see: doc/permissions.txt
  51.  
  52. <inherit>
  53. A list of group names that given group will inherit commands and permissions
  54. from. Group names are case-sensitive.
  55.  
  56. Inheritance results
  57. -------------------
  58. Both multiple inheritance (Group 2 -> Group 1 and Group 3 -> Group 1) and
  59. recursive inheritance (Group 3 -> Group 2 -> Group 1) are allowed.
  60.  
  61. Inheritance rules should not create cycles (eg Group 1 inherits from Group 2,
  62. and Group inherits from Group 1 at the same time). Configuration with cycles is
  63. considered faulty and can't be processed fully by server.
  64.  
  65. Command or permission is inherited ONLY if it's not already defined for the
  66. group.
  67. If group inherits from multiple groups, and the same command or permission is
  68. defined for more than one of these groups, it's undefined which one will be
  69. inherited.
  70.  
  71. Syntax
  72. ------
  73. This config file uses libconfig syntax:
  74. http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files
  75.  
  76.  
  77. Upgrading from revisions before r15572
  78. -------------------------------------
  79. http://rathena.org/board/index.php?showtopic=58877
  80. */
  81.  
  82. groups: (
  83. {
  84. id: 0 /* group 0 is the default group for every new account */
  85. name: "Player"
  86. level: 0
  87. inherit: ( /*empty list*/ )
  88. commands: {
  89. changedress: true
  90. }
  91. permissions: {
  92. /* without this basic permissions regular players could not
  93. trade or party */
  94. commands: true
  95. refresh: true
  96. storage: true
  97. }
  98. },
  99. {
  100. id: 1
  101. name: "Super Player"
  102. inherit: ( "Player" ) /* can do everything Players can and more */
  103. level: 0
  104. commands: {
  105. /* informational commands */
  106. commands: true
  107. govip: true
  108. buffs: true
  109.  
  110. }
  111. permissions: {
  112. attendance: false
  113. }
  114. },
  115. {
  116. id: 2
  117. name: "Support"
  118. inherit: ( "Super Player" )
  119. level: 1
  120. commands: {
  121. version: true
  122. where: true
  123. jumpto: true
  124. who: true
  125. who2: true
  126. who3: true
  127. whomap: true
  128. whomap2: true
  129. whomap3: true
  130. users: true
  131. broadcast: true
  132. localbroadcast: true
  133. }
  134. log_commands: true
  135. permissions: {
  136. receive_requests: true
  137. view_equipment: true
  138. }
  139. },
  140. {
  141. id: 3
  142. name: "Script Manager"
  143. inherit: ( "Support" )
  144. level: 1
  145. commands: {
  146. tonpc: true
  147. hidenpc: true
  148. shownpc: true
  149. loadnpc: true
  150. unloadnpc: true
  151. npcmove: true
  152. addwarp: true
  153. }
  154. log_commands: true
  155. permissions: {
  156. any_warp: true
  157. }
  158. },
  159. {
  160. id: 4
  161. name: "Event Manager"
  162. inherit: ( "Support" )
  163. level: 1
  164. commands: {
  165. monster: true
  166. monstersmall: true
  167. monsterbig: true
  168. killmonster2: true
  169. cleanarea: true
  170. cleanmap: true
  171. item: [true, true]
  172. zeny: [true, true]
  173. disguise: [true, true]
  174. undisguise: [true, true]
  175. size: [true, true]
  176. raise: true
  177. raisemap: true
  178. day: true
  179. night: true
  180. skillon: true
  181. skilloff: true
  182. pvpon: true
  183. pvpoff: true
  184. gvgon: true
  185. gvgoff: true
  186. allowks: true
  187. me: true
  188. marry: true
  189. divorce: true
  190. refreshall: true
  191. }
  192. log_commands: true
  193. permissions: {
  194. can_trade: false
  195. any_warp: true
  196. }
  197. },
  198. {
  199. id: 5
  200. name: "VIP"
  201. inherit: ( "Player" ) /* can do everything Players can */
  202. level: 0
  203. commands: {
  204. rates: true
  205. who: true
  206. }
  207. permissions: {
  208. /* no permissions by default */
  209. }
  210. },
  211. {
  212. id: 10
  213. name: "Law Enforcement"
  214. inherit: ( "Support" )
  215. level: 2
  216. commands: {
  217. hide: true
  218. follow: true
  219. kick: true
  220. disguise: true
  221. fakename: true
  222. option: true
  223. speed: true
  224. warp: true
  225. kill: true
  226. recall: true
  227. ban: true
  228. block: true
  229. jail: true
  230. jailfor: true
  231. mute: true
  232. storagelist: true
  233. cartlist: true
  234. itemlist: true
  235. stats: true
  236. }
  237. log_commands: true
  238. permissions: {
  239. join_chat: true
  240. kick_chat: true
  241. hide_session: true
  242. who_display_aid: true
  243. hack_info: true
  244. any_warp: true
  245. view_hpmeter: true
  246. }
  247. },
  248. {
  249. id: 99
  250. name: "Admin"
  251. level: 99
  252. inherit: ( "Support", "Law Enforcement" )
  253. commands: {
  254. /* not necessary due to all_commands: true */
  255. }
  256. log_commands: true
  257. permissions: {
  258. can_trade: true
  259. can_party: true
  260. command_enable: true
  261. all_equipment: false
  262. skill_unconditional: false
  263. use_check: true
  264. use_changemaptype: true
  265. all_commands: true
  266. channel_admin: true
  267. can_trade_bounded: true
  268. item_unconditional: false
  269. bypass_stat_onclone: true
  270. bypass_max_stat: true
  271. /* all_permission: true */
  272. }
  273. }
  274. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement