Examples/simple/permissions-bukkit
Simple example: Vault + PermissionsBukkit
This example lets all (default) users use the command '/time add <amount> ' inside a specific region.
World name: world
Region name: test_rsp (to be created this WorldGuard)
Permission group: timetest
Notes:
- Use at least PermissionsBukkit 1.6 and have latest the Vault version as well (Works with Vault 1.2.14 on CraftBukkkit/1.2.5).
- To use PermissionsBukkit you need Vault, currently.
- Make the region big enough to allow for some inaccuracy with a lazy-dist setting of 5, or adjust lazy-dist to a lower value (at the cost of some performance).
- If your world name differs from 'world', then change it in the links section of the RSP configuration.
- In this example the filter-permission is added to the default group (presumably everyone) of course you can add the permission to some tester-group and use it that way then.
/plugins/RSP/rsp.yml
# CONFIGURATION WITH RSP 0.12.0-DEV-3 # ONE CHANGE TO THE DEFAULT CONFIGURATION! # (SEE BELOW AT: 'use-worlds: false') # Since RSP 0.12.0-DEV-4 this change is done hidden anyway, # though not shown in the configuration, the settings will be adapted automatically, # for PermissionsBukkit. create-portals: false errors: log: min-delay: 10000 stats: use: true show: range: false log: false load-plugins: [] permissions: saving-period: 180 save: on-check: false on-checkout: false # DIFFERENCE TO DEFAULT CONFIGURATION: 'use-worlds: false' # Obsolete to change since RSP 0.12.0-DEV-4, PermissionsBukkit is recognized. use-worlds: false player-cache: lifetime: 12345 generic-links: ownership: [] online: [] heuristic: lazy-dist: 5 confine: enabled: false # NEW PARTS (PERMDEFS + LINKS) # PERMDEFS: permdefs: test_time: ignore-perm: test.ignore.test filter-perm: test.test.test have-inside: groups: - timetest # LINKS: links: world: test_rsp: - test_time
/plugins/PermissionsBukkit/config.yml
groups: default: permissions: test.test.test: true # ... more permissions ... timetest: permissions: bukkit.command.time.add: true # ... more groups ...
Comments