Advertisement
Guest User

Example PermissionsBukkit Config

a guest
Jul 21st, 2012
416
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.29 KB | None | 0 0
  1. # This is a simple procedure for setting up commands with PermissionsBukkit so
  2. # that users can have access to simple commands without having access to every
  3. # single command available on the server.
  4.  
  5. # For now, I'm going to limit it to the basic 62 lines that will provide six
  6. # different groups with all of Minecraft's initial commands, as well as three
  7. # CraftBukkit-only commands and the ability for users to place and break blocks.
  8.  
  9. # If a line has # in front of it, it is a comment and is therefore disregarded
  10. # in the code. You can delete everything in the # and the program will run fine.
  11.  
  12. # YML format is based solely on spacing. If the spaces are off, the entire plugin
  13. # will not properly function.
  14.  
  15. # The spacing tends to get reset when the document saves and is used. Therefore,
  16. # the spacing on this document could look like the area shown below. Please note
  17. # that it will be read as code without the # in front of it, so imagine that the
  18. # first letter after the # is the far-left side of the document. (If you erase
  19. # the # and the space after it, it will be aligned properly, but will be read as
  20. # code. You'll see what I mean by that soon.)
  21.  
  22. # groups:
  23. # default:
  24. # permissions:
  25.  
  26. # In actuality, the document was typed along these premeses:
  27.  
  28. # groups:
  29. # default:
  30. # permissions:
  31.  
  32. # If you don't want to take any risks with improper spaces, it is suggested that
  33. # four spaces are used instead of two. While two work, there is a likely chance
  34. # that the code could be ruined due to faulty spacing.
  35.  
  36. # Now to actually begin the code. Make sure the only plugin you have installed
  37. # currently is PermissionsBukkit. You can have other plugins in, and they will
  38. # still work, only operators will have access to the commands until the groups
  39. # are configured in this document.
  40.  
  41. # First, we start off with users. This is a list of all users and what group or
  42. # groups they belong to. This can be configured with commands in game, or you
  43. # can modify it here.
  44.  
  45. # You must put a colon after almost everything you type for the program to
  46. # recognize what to perform.
  47.  
  48. users:
  49. username:
  50. groups:
  51. - default
  52.  
  53. # This has placed the player "username" into the group "default". You can feel
  54. # free to change the sample username to your username, and set whatever group
  55. # you want, as long as it is listed below.
  56.  
  57. # You can also set per-user commands like this:
  58.  
  59. # users:
  60. # username:
  61. # permissions:
  62. # permission.node: true
  63. # groups:
  64. # - default
  65.  
  66. # A permission node is basically the code that allows a command to be wired to a
  67. # certain group. You can't simply put "/tp" under their permissions and expect
  68. # it to recognize that you want the teleport permission - come on, this is code.
  69. # It's designed to be as difficult as it can possibly be. You will also need to
  70. # add : true or : false to the end to determine whether or not it's enabled or
  71. # disabled.
  72.  
  73. # Now, let's start off with the default group. When a new user joins the game,
  74. # what commands should they have? Should they be able to see the version, or
  75. # see the plugins installed on the server? That's a benefit to griefers, in my
  76. # opinion. Let's disable those. And while we're at it, let's disable /kill as
  77. # well. They don't deserve it. Should they still be able to use /tell and /me,
  78. # the other commands immediately available? Yes, if they need to contact someone
  79. # or talk in third person, why not let them? And should we give them the ability
  80. # to break and place blocks? I think so. If they turn out to be griefers, we can
  81. # ban them and repair the damage.
  82.  
  83. groups:
  84. default:
  85. permissions:
  86. bukkit.command.version: false
  87. bukkit.command.plugins: false
  88. bukkit.command.tell: true
  89. bukkit.command.kill: false
  90. bukkit.command.me: true
  91. bukkit.command.list: true
  92. permissions.build: true
  93.  
  94. # So now, when our new users join, they immediately get build rights and can use
  95. # /tell, /list, and /me, but not /version, /plugins, and /kill. But what about other
  96. # groups? We've disabled some commands that they immediately had access to, but
  97. # what about /gamemode? And /give? We don't want to give all of our new users
  98. # operator, do we? That's a bad idea. So, we can set up ranks like this.
  99.  
  100. # Let's have a rank called VIP. These people have access to the game-oriented
  101. # commands, like switching game modes and changing the weather. They won't be
  102. # able to disable saving, ban people, and stop the server. They have six more
  103. # commands at their disposal for gameplay only.
  104.  
  105. vip:
  106. permissions:
  107. bukkit.command.teleport: true
  108. bukkit.command.give: true
  109. bukkit.command.time: true
  110. bukkit.command.gamemode: true
  111. bukkit.command.xp: true
  112. bukkit.command.toggledownfall: true
  113.  
  114. # But they also need the commands from Default, right? Set an inheritance.
  115.  
  116. inheritance:
  117. - default
  118.  
  119. # Now all users in the VIP rank can use /tp, /give, /time set, /time add, /xp,
  120. # /gamemode, and /toggledownfall on top of the Default commands.
  121.  
  122. # What about the people who police the server and make sure everything's going
  123. # all right? We need moderators, but we don't want them to be operators, either.
  124. # Here's some basic commands for them.
  125.  
  126. moderator:
  127. permissions:
  128. bukkit.command.kill: true
  129. bukkit.command.kick: true
  130. bukkit.command.ban.player: true
  131. bukkit.command.teleport: true
  132. inheritance:
  133. - default
  134.  
  135. # Now moderators have access to all Default commands plus /tp, /kick, /ban, and
  136. # /kill. But what if there's someone you trust to be both VIP and Mod, but not
  137. # with administrator powers? There's two ways to do this. One is to add both
  138. # VIP and Moderator to their list of groups under users at the top. The other is
  139. # to create a third group for both of them. If you want to use rank prefixes,
  140. # you will have to use the separate rank.
  141.  
  142. vip-mod:
  143.  
  144. # Does the VIP-Mod actually have any new commands? No, actually. Therefore, you
  145. # can safely do this:
  146.  
  147. inheritance:
  148. - vip
  149. - moderator
  150.  
  151. # And you can't have a server without admins. Now, we don't want other people being
  152. # able to shut down the server at the press of a button, do we? Well, I guess that
  153. # one is up to you. As for me, I'd suggest making two more ranks.
  154.  
  155. admin:
  156. permissions:
  157. bukkit.command.version: true
  158. bukkit.command.plugins: true
  159. bukkit.command.ban.list: true
  160. bukkit.command.ban.ip: true
  161. bukkit.command.unban.player: true
  162. bukkit.command.unban.ip: true
  163. inheritance:
  164. - vip-mod
  165.  
  166. # If you didn't do the VIP-Mod rank, simply replace that with the same inheritance as
  167. # I showed for VIP-Mod.
  168.  
  169. # Now, onto you, the founder of the server...
  170.  
  171. # You could easily add in bukkit.command.op: true as this group's only permission, but
  172. # what if you can't get into it for some reason? It's safest to include all the other
  173. # permissions as well, just in case.
  174.  
  175. founder:
  176. permissions:
  177. bukkit.command.reload: true
  178. bukkit.command.help: true
  179. bukkit.command.op: true
  180. bukkit.command.stop: true
  181. bukkit.command.say: true
  182. bukkit.command.save: true
  183. bukkit.command.whitelist.enable: true
  184. bukkit.command.whitelist.disable: true
  185. bukkit.command.whitelist.add: true
  186. bukkit.command.whitelist.remove: true
  187. bukkit.command.whitelist.list: true
  188. bukkit.command.whitelist.reload: true
  189. inheritance:
  190. - admin
  191.  
  192. # By doing all of that, we have given founder access to every initial Minecraft command
  193. # and the permission(s) to build. Keeping in check with my 62 lines (and the fact that
  194. # I haven't memorized them yet), I haven't included the PermissionsBukkit commands for
  195. # the Founder group. They have access to OP, so they can do that themselves. Lazy.
  196.  
  197. # With that, here's a few PermissionsBukkit commands you should memorize:
  198.  
  199. # /permissions player setgroup <username> <group>
  200.  
  201. # This changes a user's group in-game. It can be used with the server's command prompt or
  202. # through commands in-game.
  203.  
  204. # /permissions group setperm <group> <permission.node>
  205.  
  206. # This allows you to add permission nodes to a group instantly without having to stop the
  207. # server. You can also replace setperm with unsetperm to remove one from the entire group
  208. # if you find it necessary.
  209.  
  210. # /permissions player setperm <user> <permission.node>
  211.  
  212. # This allows you to set (or remove, using unsetperm) a permission node for a specific
  213. # user. If someone keeps teleporting people around, if a moderator becomes ban-happy
  214. # and begins banning innocent users, or if you don't want a specific user to build, if
  215. # you've heard griefing reports, just use this command to remove the corresponding
  216. # node.
  217.  
  218. # That's about all there is to it. If you don't think you need these tutorials anymore,
  219. # you can get rid of these lines with the # marks prefacing them and all the empty lines
  220. # to make the document look smoother.
  221.  
  222. # That's about it. Thanks for checking this out!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement