Advertisement
Guest User

group.conf

a guest
Jul 18th, 2018
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.67 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. commands: true
  91. mobinfo: true
  92. iteminfo: true
  93. rates: true
  94. noks: true
  95. help: true
  96. refresh: true
  97. autotrade: true
  98. channel: true
  99. time: true
  100. whereis: true
  101. whodrops: true
  102. langtype: true
  103. }
  104. permissions: {
  105. /* without this basic permissions regular players could not
  106. trade or party */
  107. can_trade: true
  108. can_party: true
  109. command_enable: true
  110. attendance: true
  111. }
  112. },
  113. {
  114. id: 1
  115. name: "Super Player"
  116. inherit: ( "Player" ) /* can do everything Players can and more */
  117. level: 0
  118. commands: {
  119. /* informational commands */
  120. commands: true
  121. charcommands: true
  122. help: true
  123. rates: true
  124. uptime: true
  125. showdelay: true
  126. exp: true
  127. mobinfo: true
  128. iteminfo: true
  129. whodrops: true
  130. time: true
  131. jailtime: true
  132. hominfo: true
  133. homstats: true
  134. showexp: true
  135. showzeny: true
  136. whereis: true
  137. /* feature commands */
  138. refresh: true
  139. noask: true
  140. noks: true
  141. autoloot: true
  142. alootid: true
  143. autoloottype: true
  144. autotrade: true
  145. request: true
  146. go: true
  147. breakguild: true
  148. channel: true
  149. langtype: true
  150. }
  151. permissions: {
  152. attendance: false
  153. }
  154. },
  155. {
  156. id: 2
  157. name: "Support"
  158. inherit: ( "Super Player" )
  159. level: 1
  160. commands: {
  161. version: true
  162. where: true
  163. jumpto: true
  164. who: true
  165. who2: true
  166. who3: true
  167. whomap: true
  168. whomap2: true
  169. whomap3: true
  170. users: true
  171. broadcast: true
  172. localbroadcast: true
  173. }
  174. log_commands: true
  175. permissions: {
  176. receive_requests: true
  177. view_equipment: true
  178. }
  179. },
  180. {
  181. id: 3
  182. name: "Script Manager"
  183. inherit: ( "Support" )
  184. level: 1
  185. commands: {
  186. tonpc: true
  187. hidenpc: true
  188. shownpc: true
  189. loadnpc: true
  190. unloadnpc: true
  191. npcmove: true
  192. addwarp: true
  193. }
  194. log_commands: true
  195. permissions: {
  196. any_warp: true
  197. }
  198. },
  199. {
  200. id: 4
  201. name: "Event Manager"
  202. inherit: ( "Support" )
  203. level: 1
  204. commands: {
  205. monster: true
  206. monstersmall: true
  207. monsterbig: true
  208. killmonster2: true
  209. cleanarea: true
  210. cleanmap: true
  211. item: [true, true]
  212. zeny: [true, true]
  213. disguise: [true, true]
  214. undisguise: [true, true]
  215. size: [true, true]
  216. raise: true
  217. raisemap: true
  218. day: true
  219. night: true
  220. skillon: true
  221. skilloff: true
  222. pvpon: true
  223. pvpoff: true
  224. gvgon: true
  225. gvgoff: true
  226. allowks: true
  227. me: true
  228. marry: true
  229. divorce: true
  230. refreshall: true
  231. }
  232. log_commands: true
  233. permissions: {
  234. can_trade: false
  235. any_warp: true
  236. }
  237. },
  238. {
  239. id: 5
  240. name: "VIP"
  241. inherit: ( "Player" ) /* can do everything Players can */
  242. level: 0
  243. commands: {
  244. autoloot: true
  245. alootid: true
  246. autoloottype: true
  247. who: true
  248. }
  249. permissions: {
  250. /* no permissions by default */
  251. }
  252. },
  253. {
  254. id: 10
  255. name: "Law Enforcement"
  256. inherit: ( "Support" )
  257. level: 2
  258. commands: {
  259. hide: true
  260. follow: true
  261. kick: true
  262. disguise: true
  263. fakename: true
  264. option: true
  265. speed: true
  266. warp: true
  267. kill: true
  268. recall: true
  269. ban: true
  270. block: true
  271. jail: true
  272. jailfor: true
  273. mute: true
  274. storagelist: true
  275. cartlist: true
  276. itemlist: true
  277. stats: true
  278. }
  279. log_commands: true
  280. permissions: {
  281. join_chat: true
  282. kick_chat: true
  283. hide_session: true
  284. who_display_aid: true
  285. hack_info: true
  286. any_warp: true
  287. view_hpmeter: true
  288. }
  289. },
  290. {
  291. id: 99
  292. name: "Admin"
  293. level: 99
  294. inherit: ( "Support", "Law Enforcement" )
  295. commands: {
  296. /* not necessary due to all_commands: true */
  297. }
  298. log_commands: true
  299. permissions: {
  300. can_trade: true
  301. can_party: true
  302. all_skill: false
  303. all_equipment: false
  304. skill_unconditional: false
  305. use_check: true
  306. use_changemaptype: true
  307. all_commands: true
  308. channel_admin: true
  309. can_trade_bounded: true
  310. item_unconditional: false
  311. bypass_stat_onclone: true
  312. bypass_max_stat: true
  313. /* all_permission: true */
  314. }
  315. }
  316. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement