[ADMN/DEV] PermissionsBukkit v2.0 - Official Default Groups Plugin [1.5.2-R1.0]

Discussion in 'Archived: Plugin Releases' started by SpaceManiac, Jul 17, 2011.

  1. Offline

    SpaceManiac

    PermissionsBukkit - the Official Default Groups Plugin
    Current Version: v2.0
    Find PermissionsBukkit on BukkitDev!

    If you are getting a specific error or cannot determine what is wrong with your permissions file, filing a ticket on BukkitDev will make me much more likely to respond to you; general questions are best to ask in this thread or on the forums on BukkitDev.

    It's been a long time coming, but with the accomplishment of build 1000 Bukkit has finally accomplished a built-in Permissions system (codenamed Superperms). For more info on how they work, and how to integrate them with your plugin, see the official Permissions FAQ. Keep in mind that you should rarely, if ever, have to hook this plugin directly; instead keep things in the realm of checking player.hasPermission("yourplugin.node"). The FAQ thread has more info on how to use Superperms with things like chat prefixes/suffixes.

    Features:
    • Storage of users and groups in plugins/PermissionsBukkit/config.yml.
    • Both users and groups can be assigned individual permissions and parent groups to inherit permissions from.
    • Support for global and per-world permissions.
    • Reload configuration from file with out reloading the plugin.
    • Ability to check if a player has a specific permission node.
    • Ability to dump all permissions a player has and the plugins that set them.
    • Ability to print plugin, description, and default for a given permission node.
    • Ability to modify the permissions of groups and users and the groups of a user in-game.
    • Built-in antibuild via the "permissions.build" node (defaults to allowing anyone to build).
    • A minimalistic bridge from Permissions 3.0 to Superperms is available as a separate plugin, which does not depend on PermissionsBukkit.
    Command Usage:

    Show Spoiler
    PermissionsBukkit uses the command /permissions, with aliases /perms and /perm.

    /permissions reload - reload the configuration from disk.
    /permissions check <node> [player] - check if a player or the sender has a permission (any plugin).
    /permissions info <node> - prints information on a specific permission.
    /permissions dump [player] [page] - prints info about a player's (or the sender's) permissions.
    /permissions setrank <player> <group> - set a player to be in a group with per-group permissions.
    /permissions group - list group-related commands.
    /permissions group list - list all groups.
    /permissions group players <group> - list players in a group.
    /permissions group setperm <group> <[world:]node> [true|false] - set a permission on a group.
    /permissions group unsetperm <group> <[world:]node> - unset a permission on a group.
    /permissions player - list player-related commands.
    /permissions player groups <player> - list groups a player is in.
    /permissions player setgroup <player> <group,...> - set a player to be in only the given groups.
    /permissions player addgroup <player> <group> - add a player to a group.
    /permissions player removegroup <player> <group> - remove a player from a group.
    /permissions player setperm <player> <[world:]node> [true|false] - set a permission on a player.
    /permissions player unsetperm <player> <[world:]node> - unset a permission on a player.

    All commands have in-game help and are usable from the server console.

    Configuration:
    Show Spoiler
    A permission node is a string like 'permissions.build', usually starting with the name of the plugin. Refer to a plugin's documentation for what permissions it cares about. Each node should be followed by true to grant that permission or false to revoke it, as in 'permissions.build: true'. Some plugins provide permission nodes that map to a group of permissions - for example, PermissionsBukkit has 'permissions.*', which automatically grants permissions for all PermissionsBukkit commands. You can also specify false for permissions of this type.

    Users inherit permissions from the groups they are a part of. If a user is not specified here, or does not have a 'groups' node, they will be in the group 'default'. Permissions for individual users may also be specified by using a 'permissions' node with a list of permission nodes, which will override their group permissions. World permissions may be assigned to users with a 'worlds:' entry.

    Groups can be assigned to players and all their permissions will also be assigned to those players. Groups can also inherit permissions from other groups. Like user permissions, groups may override the permissions of their parent group(s). Unlike users, groups do NOT automatically inherit from default. World permissions may be assigned to groups with a 'worlds:' entry.

    The cannot-build message is configurable. If it is left blank, no message will be displayed to the player if PermissionsBukkit prevents them from building, digging, or interacting with a block. Use '&' characters to signify color codes.

    An example configuration file might look like this:
    Code:
    users:
        ConspiracyWizard:
            permissions:
                permissions.example: true
            groups:
            - admin
    groups:
        default:
            permissions:
                permissions.build: false
        admin:
            permissions:
                permissions.*: true
            inheritance:
            - user
        user:
            permissions:
                permissions.build: true
            worlds:
                creative:
                    coolplugin.item: true
            inheritance:
            - default
    messages:
        build: '&cYou do not have permission to build here.'
    

    Permissions:
    Show Spoiler
    PermissionsBukkit checks for the following permission nodes:
    • permissions.build - Allows a player to build. Defaults to true.
    • permissions.help - Allows viewing of usage for /permissions.
    • permissions.reload - Allows use of /permissions reload.
    • permissions.check - Allows use of /permissions reload.
    • permissions.info - Allows use of /permissions reload.
    • permissions.dump - Allows use of /permissions reload.
    • permissions.group.help - Allows viewing of usage for /permissions group.
    • permissions.group.list - Allows use of /permissions group list.
    • permissions.group.players - Allows use of /permissions group players.
    • permissions.group.setperm - Allows use of /permissions group setperm.
    • permissions.group.unsetperm - Allows use of /permissions group unsetperm.
    • permissions.player.help - Allows viewing of usage for /permissions player
    • permissions.player.groups - Allows use of /permissions player groups.
    • permissions.player.setgroup - Allows use of /permissions player setgroup.
    • permissions.player.addgroup - Allows use of /permissions player addgroup.
    • permissions.player.removegroup - Allows use of /permissions player removegroup.
    • permissions.player.setperm - Allows use of /permissions player addgroup.
    • permissions.player.unsetperm - Allows use of /permissions player removegroup.
    Also, the following parent nodes are provided for convenience:

    • permissions.* - Maps to permissions.help, .reload, .check, .info, .dump, and to permissions.group.* and permissions.player.*. Defaults to op.
    • permissions.group.* - Maps to permissions.group.help, .list, .players, .setperm, and .unsetperm.
    • permissions.player.* - Maps to permissions.player.help, .groups, .setgroup, .addgroup, .removegroup, .setperm, and .unsetperm.


    Frequently Asked Questions:
    1. Where are my * nodes? (open)
    Bukkit's Superperms has no built-in concept of a global '*' node that automatically gives all permissions, which is intentional - a player can instead be given all permissions by being given 'op' status (that is, listed in ops.txt). Additionally, individual plugins define a parent node (which could be 'pluginname.*' or 'pluginname.all' or anything else) which maps to whatever subpermissions in that plugin the author desires.

    An example is PermissionsBukkit, which provides three such permissions: 'permissions.group.*' for all /permissions group commands, 'permissions.player.*' for all /permissions player commands, and'permissions.*' for all /permissions commands (including permissions.group.* and permissions.player.*).

    If you are using SuperpermsBridge, you can do something similar to '*' nodes for plugins which use Permissions 2.7/3.1 - see the next FAQ for more information.
    2. How do I use SuperpermsBridge? (open)
    SuperpermsBridge is kind of like FakePermissions for GroupManager or PermissionsBridge for PermissionsEx. Once it's installed, it pretends to be the Permissions plugin and converts any plugins that use Permissions 2.7 or Permissions 3.1 to use Superperms instead.

    You can have PermissionsBukkit without SuperpermsBridge or SuperpermsBridge without PermissionsBukkit if you like, but both of these are limited in functionality. If you install SuperpermsBridge without PermissionsBukkit you will not be able to make use of PermissionsBukkit's groups feature or admin commands, and if you install PermissionsBukkit without SuperpermsBridge, plugins that have not updated to use Superperms directly will not function.

    For plugins that use Permissions 2.7/3.1, you can use the special node 'superpermbridge.*' to give the equivalent of what used to be the '*' node for plugins that do not use Superperms directly. If you don't want to give the * node, you can also use the node 'superpermbridge.pluginname' to do the equivalent of what used to be the 'pluginname.*' node. Once again, these only apply to plugins that SuperpermsBridge handles and not to plugins using Superperms directly.
    3. How do I use the root permissions.yml? (open)
    The file 'permissions.yml' in the root of your server can be used to set up custom parent permissions. Parent permissions are a single node that, when given to a player or group, automatically give all their children node. Here's a simple example:
    Code:
    server.basics:
        children:
            commandbook.motd: true
            commandbook.say: true
            commandbook.say.me: true
            commandbook.time: true
    
    Now, if you give a player the node 'server.basics', they automatically get all the nodes listed here. Children may also say 'false' instead of 'true', in which case giving the parent will remove the child instead of giving it.

    You can also specify a description if you like, which can be used by plugins to provide information on your node (such as PermissionsBukkit's /perm info command). If you want, you can also provide a default, which can be one of "true", "false", "op", or "notop". CraftBukkit will automatically assign everyone, no one (default), ops, or non-ops the children permissions based on the specified default. Without any plugin like PermissionsBukkit, you can use this defaults system as a limited way to assign people permissions. Here's a more complex example:
    Code:
    server.basics:
        description: Basic permissions for My Cool Server.
        default: true
        children:
            commandbook.motd: true
            commandbook.say: true
            commandbook.say.me: true
            commandbook.time: true
    server.admin:
        description: Admin permissions for My Cool Server.
        default: op
        children:
            commandbook.broadcast: true
            commandbook.teleport: true
            commandbook.kick: true
            commandbook.ban: true
    
    You can also define permissions without children, but this is of limited usefulness in permissions.yml (though is important in plugin.yml; see question #6)
    4. How do I switch from (other Permissions plugin)? (open)
    Depends on the Permissions plugin! If you were using PEX's YAML backend, I have a converter done and available on the PermissionsBukkit Tools page. Also available on the tools page is an automatic converter for Essentials GroupManager users.yml and groups.yml files. Automatic converters for Permissions 2.7 and 3.x are on their way, but in the meantime you can still convert your configurations manually.
    5. Where are prefixes and suffixes (or option nodes)? (open)
    Bukkit Superperms has no built-in prefix/suffix settings or non-boolean permission nodes, so individual chat plugins will have to start supporting Superperms in order to make use of non-Permissions-plugin based prefixes and suffixes. Herochat, iChat, and Simple Suffix are all aware of the Superperms update, but in the meantime you can use mChat, which already supports Superperms.

    Once you install mChat and configure the mchat.prefix, mchat.suffix, and mchat.group names in its configuration file (see the example), use PermissionsBukkit to give players or groups the permissions "mchat.prefix.admin", replacing "admin" with whatever node you configured. For example, with an mchat configuration that looks similar to this:
    Code:
    da-name-format: '+prefix+name&e'
    date-format: HH:mm:ss
    message-format: '+prefix+name&f: +message'
    mchat:
        prefix:
            admin: '&4DtK [SO] &7 '
            sadmin: '&9DtK [SA] &7 '
            jadmin: '&aDtK [JA] &7  '
            member: '&cDtK [M] &7 '
    
    You can assign players or groups the mchat.prefix.admin node to get the "SO" prefix, mchat.prefix.sadmin to get the "SA" prefix, and so on.
    6. (Coders) How do I set up my plugin.yml? (open)
    Take a look at this post in Dinnerbone's FAQ for an example. This is a lot like the setup of permissions.yml (see above), but you can also define non-parent permissions (just include description and default and leave out children).
    7. Is PermissionsBukkit outdated? (open)
    No! PermissionsBukkit 2.0 was last updated for 1.3.1-R2.0, is verified to work on 1.4.7-R1.0, and is unlikely to break on future releases.

    Downloads:
    Current Version:

    PermissionsBukkit v2.0 (jar) (details)
    Old Versions:
    PermissionsBukkit v1.6 (jar) (details)

    [​IMG]

    Changelog:

    Friday 7 September 2012 (2.0)
    • Fixed a case-sensitivity issue with setting per-world permissions that could cause some permissions to fail to apply.
    • Added /perm setrank <player> <group> subcommand (alias rank) with per-group permissions (permissions.setrank and permissions.setrank.<group>)
    • Added plugin metrics via http://mcstats.org/plugin/PermissionsBukkitMCStats (disableable in plugins/PluginMetrics/config.yml)
    Wednesday 29 February 2012 (1.6)
    • Fixed some massive issues that were caused due to having uploaded a buggy, in-development version instead of 1.5.
    • Note: If your configuration was messed up as a result of this issue, the new build should gradually correct it as needed.
    Saturday 25 February 2012 (1.5b)
    • Revamped to be compatible with R5.
    • Fixed issues with permissions not carrying properly on world change.
    • Many internal improvements for performance and stability.
    • SuperpermsBridge: in honor of R5 removing deprecated code, SuperpermsBridge is officially gone!
    Monday 18 July 2011 (1.1/1.2)
    • Fix BukkitContrib incompatibility issues.
    • Improved the output of the /perm check command.
    • Fixed issues when 'users:' is not specified in the config file.
    • Fixed the /permissions reload command.
    • SuperpermsBridge: improve wildcard handling; in addition to 'superpermbridge.*' and 'superpermbridge.pluginname', now supported are 'superpermbridge.plugin.*', 'superpermbridge.plugin.subnode.*', and so on.
    Monday 18 July 2011 (1.0/1.1)
    • SuperpermsBridge: adding the special 'superpermbridge.*' and 'superpermbridge.pluginname' nodes (see #2 in the FAQ for details).
    Sunday 17 July 2011 (1.0/1.0)

    • Initial release of PermissionsBukkit v1.0 and SuperpermsBridge v1.0.
     
    madmac, Gesundheit, tripleX and 23 others like this.
  2. Offline

    Elrohir

    Yeah i am looking for something like that too, cant have my supporters promote them to admins :p
     
  3. Offline

    Phedg1

    Could you give me an exmaple of how to add a worlds: node for users? Because I've tried, but I can't seem to get it right - Thanks in advance
     
  4. Offline

    petfrank

    When a new player logs in they aren't in a group automatically so i have to manually change them and i cant be on 24/7 so is there a way to make a group the default group!?
     
  5. Offline

    SunriseMoon

    I want to give my mods permission to upgrade players to trusted level, but I don't want them to be able to upgrade each other or anyone else any higher than trusted (ie admin :p). Is there a way to do this easily?
     
  6. Offline

    Phedg1

    Currently (to my knowledge) you can't set a 'default: true' node, but if you have a group NAMED default it will work as the default user - Use a program like iChat if you want to have the name appear differently ingame

    There is a plugin which solves your issues, found HERE: http://forums.bukkit.org/threads/ad...game-permissionsbukkit-superperms-1317.34614/ - Use the permissions nodes as pecified on the main post to set which groups can promote others to which groups
    .
    Only, instead of using the '/permissions player setgroup <player> <group>' command, you use '/rank <player> <group>' In my opinion, much simpler

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 14, 2016
  7. Offline

    Elrohir

    THANK YOU!! Looked for something like that the whole week, thx for posting it:D
     
  8. Offline

    Phedg1

    Because '*' is not yet a recognised permission node, some plugins will allow you to use pluginname.*, but the easiest work around I've found is to add a list of all the permissions to permissions.yml in the root of your bukkit directory. You would add this, relative to your own plugins.
    Code:
    server.allpermissions:
        description: All Permission Nodes
        default: false
        children:
            simplesignedit.edit: true
            simplesignedit.edit.all: true
            simplesignedit.colour.*: true
            simplesignedit.setowner: true
            colorsheep.spawnrand: true
            colorsheep.max: true
            colorsheep.spawn: true
            colorsheep.rave: true
            colorsheep.kill: true
            colorsheep.status: true
            colorsheep.colors: true
            multiverse.portal.access.*: true
            multiverse.portal.list: true
            multiverse.portal.select: true
            multiverse.portal.givewand: true
            multiverse.portal.info: true
            multiverse.portal.create: true
            multiverse.portal.remove: true
            multiverse.portal.modify: true
    This would create the permission node 'server.allpermissions' for you to use and is active by default. You would add this to your config.yml
    Code:
    groups:
        admin:
            permissions:
                sever.allpermissions: true
    This is a temporary workaround until full support for the wild character is added.

    I'm sorry no one has got back to you yet - What you've done is simply made a typo. The bukkit claims 'Mapping values are not allowed here', this is because you've left the previous statement open-ended. You wrote:
    Code:
    groups:
        default:
            permissions:
                permissions.build
    when you should have written (Line 80)
    Code:
    groups:
        default:
            permissions:
                permissions.build: true
    Hope this helps

    I can't see any errors, save one. LittleDeath is in both Admin and Default, this is unessescary as admin inherits default, so try removing one and see how that goes.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 14, 2016
  9. Offline

    OZ4RK

    trying to promote someone in game to the rank Special Agent.
    I am typing /permissions player setgroup <username> Special Agent
    I don't think permissions is recognizing the space. Is there a character to represent a space? _ and / don't work so any ideas?
     
  10. Offline

    Phedg1

    A space is an actual gap in the code, what you're looking for is a blank character - Hold down Alt and type the number 255 and it should do what you're looking for. It's like in windows, you can't name a folder as just a space, but you can as Alt+255.
     
  11. Offline

    javoris767

    How do i use IChat to show the prefixes
     
  12. Offline

    Krapinou

    Please help me, It doesn't work for me :'(
    Code:
    groups:
      default:
        options:
            rank: 100
        permissions:
          essentials.spawn: true
          essentials.list: true
          essentials.help: true
          essentials.motd: true
          essentials.rules: true
          essentials.msg: true
          essentials.signs.warp.use: true
          snowballs.dodamage: true
          mchat.prefix.c2-Visiteur-cf: true
          mchat.suffix.cf: true
          permissions.build: false
      Citoyen:
        options:
            rank: 90
        permissions:
          essentials.spawn: true
          essentials.list: true
          essentials.help: true
          essentials.motd: true
          essentials.rules: true
          essentials.msg: true
          essentials.me: true
          essentials.signs.warp.use: true
          essentials.signs.disposal.use: true
          essentials.signs.heal.use: true
          iConomy.help: true
          iConomy.holdings: true
          iConomy.holdings.others: true
          iConomy.payment: true
          ChestShop.shop.create: true
          ChestShop.shop.buy: true
          ChestShop.shop.sell: true
          lwc.protect: true
          'myhome.home.soc.*': true
          'myhome.home.basic.*': true
          citizens.trader.use.trade: true
          citizens.trader.modify.stock: true
          citizens.use.trader: true
          snowballs.dodamage: true
          'mobarena.classes.*': true
          'mobarena.use.*': true
          'mobarena.arenas.*': true
          factions.participate: true
          factions.create: true
          spoutessentials.music: true
          spoutessentials.stopgmusic: true
          mchat.prefix.c3-Citoyen-cf: true
          mchat.suffix.cf: true
          permissions.build: true
        inheritance:
          - default
      Bourgeois:
        permissions:
          essentials.msg: true
          essentials.help: true
          essentials.list: true
          essentials.spawn: true
          essentials.item: true
          essentials.time: true
          essentials.me: true
          essentials.signs.warp.use: true
          essentials.motd: true
          essentials.signs.disposal.use: true
          essentials.signs.heal.use: true
          citizens.trader.use.trade: true
          citizens.trader.modify.stock: true
          citizens.use.trader: true
          iConomy.payment: true
          iConomy.rank: true
          iConomy.access: true
          iConomy.list: true
          ChestShop.shop.create: true
          ChestShop.shop.buy: true
          ChestShop.shop.sell: true
          lwc.protect: true
          'myhome.home.soc.*': true
          'myhome.home.basic.*': true
          magiccarpet.mc: true
          snowballs.dodamage: true
          'mobarena.classes.*': true
          'mobarena.use.*': true
          factions.participate: true
          factions.create: true
          'mobarena.arenas.*': true
          mchat.prefix.c5-Bourgeois-cf: true
          mchat.suffix.cf: true
          permissions.build: true
        inheritance:
          - Citoyen
      Animateur:
        permissions:
          essentials.msg: true
          essentials.help: true
          essentials.list: true
          essentials.spawn: true
          essentials.time: true
          essentials.me: true
          essentials.tp: true
          essentials.tphere: true
          essentials.signs.warp.use: true
          essentials.motd: true
          essentials.signs.disposal.use: true
          essentials.signs.heal.use: true
          citizens.trader.use.trade: true
          iConomy.payment: true
          iConomy.rank: true
          ChestShop.shop.create: true
          ChestShop.shop.buy: true
          ChestShop.shop.sell: true
          lwc.protect: true
          'myhome.home.soc.*': true
          'myhome.home.basic.*': true
          magiccarpet.mc: true
          p2.promote: true
          p2.demote: true
          snowballs.dodamage: true
          'mobarena.classes.*': true
          'mobarena.use.*': true
          factions.participate: true
          factions.create: true
          'mobarena.arenas.*': true
          mchat.prefix.cd-Animateur-cf: true
          mchat.suffix.cf: true
          permissions.build: true
        inheritance:
          - Bourgeois
      Moderateur:
        permissions:
          essentials.kit.tools: true
          essentials.nick: true
          essentials.time: true
          essentials.kick: true
          essentials.ban: true
          essentials.tempban: true
          essentials.unban: true
          essentials.tp: true
          essentials.tphere: true
          essentials.god: true
          essentials.me: true
          essentials.signs.warp.use: true
          essentials.motd: true
          essentials.signs.disposal.use: true
          essentials.signs.heal.use: true
          essentials.item: true
          essentials.give: true
          essentials.clearinventory: true
          magiccarpet.mc: true
          essentials.spawn: true
          essentials.help: true
          essentials.list: true
          iConomy.payment: true
          iConomy.rank: true
          iConomy.access: true
          iConomy.list: true
          iConomy.admin.stats: true
          ChestShop.shop.create: true
          ChestShop.shop.buy: true
          ChestShop.shop.sell: true
          lwc.protect: true
          p2.promote: true
          p2.demote: true
          'myhome.home.soc.*': true
          'myhome.home.basic.*': true
          essentials.msg: true
          jobs.join.<jobname>: true
          jobs.admin.fire: true
          jobs.admin.employ: true
          jobs.admin.promote: true
          jobs.admin.demote: true
          jobs.admin.grantxp: true
          jobs.admin.removexp: true
          jobs.admin.transfer: true
          logblock.tools.tool: true
          logblock.tools.toolblock: true
          logblock.me: true
          'mobarena.classes.*': true
          'mobarena.use.*': true
          factions.participate: true
          factions.create: true
          citizens.trader.use.trade: true
          citizens.trader.modify.stock: true
          citizens.use.trader: true
          mobdisguise.player: true
          'mobarena.arenas.*': true
          spoutessentials.guiColumnOne: true
          mchat.prefix.c6-Moderateur-cf: true
          mchat.suffix.cf: true
          permissions.build: true
        inheritance:
          - Animateur
      Administrateur:
        permissions:
          ChestShop.shop.create: true
          ChestShop.shop.buy: true
          ChestShop.shop.sell: true
          ChestShop.admin: true
          jobs.join.<jobname>: true
          citizens.trader.use.trade: true
          citizens.trader.modify.stock: true
          citizens.use.trader: true
          'mobdisguise.*': true
          mobdisguise.player: true
          'spoutessentials.*': true
          mchat.prefix.c4-Administrateur-cf: true
          mchat.suffix.cf: true
          permissions.build: true
        inheritance:
          - Moderateur
    users:
      Krapinou:
        groups:
            Administrateur
      Eglefinbryan:
        groups:
            Citoyen
      bbausiere:
      p4uk:
      lucalux:
    
    
     
  13. Offline

    Tommyten

    I´ve got an problem.
    The consolesays me that:
    Code:
    15:00:07 [SCHWERWIEGEND] Error occurred while enabling PermissionsBukkit v1.2 (I
    s it up to date?): special characters are not allowed
    unacceptable character '?' (0xFFFD) special characters are not allowed
    in "<reader>", position 817
            at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.ja
    va:98)
            at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:191)
            at org.yaml.snakeyaml.reader.StreamReader.<init>(StreamReader.java:63)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:423)
            at org.bukkit.util.config.Configuration.load(Configuration.java:89)
            at org.bukkit.plugin.java.JavaPlugin.getConfiguration(JavaPlugin.java:11
    6)
            at com.platymuus.bukkit.permissions.BlockListener.<init>(BlockListener.j
    ava:15)
            at com.platymuus.bukkit.permissions.PermissionsPlugin.onEnable(Permissio
    nsPlugin.java:39)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:174)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:957)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:280)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:171)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:154
    )
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)

    Heres the config:

    Code:
    # Supports "Default" and "GroupUsers"
    plugin:
        permissions:
            system: default
    
    ##
    # Groups can contain inheritance.
    #   To make a group inherit the permissions from another
    #   group simply place the groups name in the "inheritance:"
    #   field seperated by commas.
    #
    #   Example: inheritance: Default,Admins,
    ##
    #   All permissions including the asterisks must be placed in single quotes.
    #   like so:
    #
    #       - 'general.spawn'
    #
    #   Otherwise errors will happen!
    ##
    #   Globalized Permission settings:
    #
    #       If a permission contains periods (.) you can denote a globalized parameter:
    #
    #           - 'general.*'
    #
    #       This will allow you to use all general commands.
    #
    ##
    #
    #   Single Asterisk denotes all commands:
    #
    #       - '*'
    # Edit by Bl00dyAngel
    # Ich füge ein paar Kommentare ein, diese beziehen sich immer auf die Zeile über dem Kommentar
    # Bitte achtet dadrauf dass ihr keine Tabs sondern Leerzeichen nutzt, sonst kann es zu Fehlern kommen
    ##
    groups:
    # Hier werden die gruppen eingefügt
        Default:
    #Gruppen Name
            default: true
    # bedeutet, dass jeder neue user Automatisch in dieser Gruppe landet
            info:
                prefix:
                suffix:
                build: false
    # bedeutet, dass Member dieser Gruppe bauen dürfen. Wollt ihr das nicht, setzt den Wert auf False
            inheritance:
            permissions:
                - 'plgsetspawn.spawn'
                - 'commandbook.who '
                - 'commandbook.motd '
                - 'permissions.help'
                - 'permissions.help'
    # Liste der Befehle. Wichtig ist das der Syntax eingehalten wird! ein * ist eine wildcard.
    # Das bedeutet mit '*' können die Member der Gruppe alle Befehle benutzen.
    # Mit z.B. ' General.* können die Member der Gruppe alle Befehle vom Plugin General nutzen.
    # Die Liste der Befehle könnt ihr aus dem Bukkit Forum beim Thread des jeweiligen Plugins entnehmen.
        User:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
                - 'plgsetspawn.spawn'
                - 'mobarena.use.join'
                - 'mobarena.use.leave'
                - 'mobarena.use.spectate'
                - 'commandbook.who'
                - 'commandbook.motd'
                - 'commandbook.home.set'
                - 'commandbook.home.teleport'
                - 'worldguard.region.info.*'
                - 'worldguard.region.addowner.own.*'
                - 'worldguard.region.removeowner.own.*'
                - 'worldguard.region.addmember.own.* '
                - 'worldguard.region.removemember.own.* '
    
        Moderator:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - User
            permissions:
                - 'worldguard.fire-toggle.*'
                - 'plgsetspawn.spawn'
                - 'mobarena.use.join'
                - 'mobarena.use.leave'
                - 'mobarena.use.spectate'
                - 'commandbook.who'
                - 'commandbook.motd'
                - 'commandbook.time'
                - 'commandbook.weather'
                - 'commandbook.teleport'
                - 'commandbook.teleport.other'
                - 'commandbook.teleport'
                - 'commandbook.home.set'
                - 'commandbook.home.teleport'
                - 'commandbook.kick'
                - 'commandbook.bans.ban'
                - 'commandbook.bans.unban'
                - 'commandbook.bans.load'
                - 'worldguard.region.define'
                - 'worldguard.region.redefine.*'
                - 'worldguard.region.select.<region>'
                - 'worldguard.region.info.*'
                - 'worldguard.region.addowner.*'
                - 'worldguard.region.removeowner.*'
                - 'worldguard.region.addmember.*'
                - 'worldguard.region.removemember.*'
                - 'worldedit.selection.*'
                - 'worldedit.wand'
                - 'worldedit.wand.toggle'
                - 'permissions.player.addgroup'
                - 'permissions.player.removegroup'
    
        Admins:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - Moderator
            permissions:
                - '*'
    
    ##
    # DarkGrave has control over all commands.
    # sk89q can use /spawn & /time
    ##
    users:
    # Hier werden User eingetragen welche nicht in der Default Gruppe sein sollen.
    # Außerdem könnt ihr hier den Usern berechtigung für Commands zuweisen,
    # welche sie normalerweise nicht über ihre Gruppe erhalten würden.
        Tommyten:
            group: Admins
            permissions:
        Th3DaVinci:
            group: Moderator
            permissions:
        Kejaman:
            group: User
            permissions:
        kevin15124:
            group: User
            permissions:
        HALO282:
            group: User
            permissions:
    Ignore the annotations these are in german.

    here are the other Plugins:

    Burning Creative Suite
    CommandBook
    iOP
    Lockette
    MobArena
    NoLagg
    PermissionsBukkit
    PLGSetSpawn
    PvPToggle
    RegrowingSheepcoat
    SmoothChat
    Worldedit
    Worldguard

    Ok got my First Problem fixed myself. But got a new one.
    When i make myself a Default or User i can´t use /spawn for example.

    Thats my Config:

    Code:
    plugin:
        permissions:
            system: default
    groups:
        Default:
            default: true
            info:
                prefix:
                suffix:
                build: false
            inheritance:
            permissions:
            - plgsetspawn.spawn
            - 'commandbook.who '
            - 'commandbook.motd '
            - permissions.help
            - permissions.help
        User:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
            - Default
            permissions:
            - plgsetspawn.spawn
            - mobarena.use.join
            - mobarena.use.leave
            - mobarena.use.spectate
            - commandbook.who
            - commandbook.motd
            - commandbook.home.set
            - commandbook.home.teleport
            - worldguard.region.info.*
            - worldguard.region.addowner.own.*
            - worldguard.region.removeowner.own.*
            - 'worldguard.region.addmember.own.* '
            - 'worldguard.region.removemember.own.* '
        Moderator:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
            - User
            permissions:
            - worldguard.fire-toggle.*
            - plgsetspawn.spawn
            - mobarena.use.join
            - mobarena.use.leave
            - mobarena.use.spectate
            - commandbook.who
            - commandbook.motd
            - commandbook.time
            - commandbook.weather
            - commandbook.teleport
            - commandbook.teleport.other
            - commandbook.teleport
            - commandbook.home.set
            - commandbook.home.teleport
            - commandbook.kick
            - commandbook.bans.ban
            - commandbook.bans.unban
            - commandbook.bans.load
            - worldguard.region.define
            - worldguard.region.redefine.*
            - worldguard.region.select.<region>
            - worldguard.region.info.*
            - worldguard.region.addowner.*
            - worldguard.region.removeowner.*
            - worldguard.region.addmember.*
            - worldguard.region.removemember.*
            - worldedit.selection.*
            - worldedit.wand
            - worldedit.wand.toggle
            - permissions.player.addgroup
            - permissions.player.removegroup
        Admins:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
            - Moderator
            permissions:
            - '*'
    users:
        Tommyten:
            group: Admins
            permissions:
        Th3DaVinci:
            group: Moderator
            permissions:
        Kejaman:
            group: User
            permissions:
        kevin15124:
            group: User
            permissions:
        HALO282:
            group: User
            permissions:
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 14, 2016
  14. Offline

    soloman981

    you should add permission nodes like this
    permissions.player.setgroup.<group>
    so someone can only add players to that group

    What do you think about it?

     
  15. Offline

    ashlii21

    Would someone please tell me how I would go about switching from groupmanager to this?
     
  16. Offline

    petfrank

    You need to add better commands. Its really annoying typing in /permissions player addgroup ____ ____
     
  17. Offline

    sunkid

    Check FAQ #4 in the OP

    You are not using the correct permission syntax. Permissions in PermissionsBukkit are nodes, not list elements. They have to be assigned a boolean value (most commonly, at least). The above should be

    Code:
    groups:
        default:
            permissions:
                plgsetspawn.spawn: true
    
    Read the OP carefully and look at FAQ #4 for links to a converter tool.

    Please be more specific about your particular problem. There is a sticky in this forum that explains what information is needed to help you.

    This is an iChat-specific question. Try to post it in their thread.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 14, 2016
  18. Offline

    jkmalan

    @soloman981 & @petfrank
    Look up the plugin SetRankPB, it does what you want, shortens the command, and allows per group promotions. Don't expect anything like this to be added.
    @Phedg1
    Looking back pretty far, to add world nodes, try this:
    Code:
    group:
        default:
            permissions:
                permissions.build: true
                bukkit.command.me: true
                bukkit.command.kill: true
            worlds:
                world1:
                    permissions.build: false
                world1_nether:
                    bukkit.command.kill: false
    Notice, that I stated permissions.build: true in global permissions, that is how it must be formatted. Then falsify it per world. If you already got this to work, sorry, just didn't want to leave you hanging. :D
     
  19. Offline

    Krapinou

    Yes, sorry :/ I want to create "rank" because I need to typing
    Code:
     /permissions player addgroup
    and after
    Code:
    /permssions player removegroup
     
  20. Offline

    Tho-1528

    Can somebody help me? Yesterday everything worked fine, but today, nothing works anymore, suddenly!
    Even redownloading the .jar didn't work! (The Plugin itself is active, though, because I get some messages of it.)
    I did NOT use tabs. All I did today was adding one little permission(that is supported to this plugin), what caused NOTHING to work.

    I even used the ingame command to add a permission to a group, but players from that group STILL don't have permission!

    Edit: I found out EVERYONE (even defaults who don't have build permissions) can build in a radius of 15 blocks away from the Spawn.
     
  21. Offline

    Phedg1

    You could try removing you config file, that should cause everything to go back ot normal. You probably made a typo withought know, and that's what's causing the error. You may have just added one to many spaces in somwhere which would cause the file to be read incorrectly. The permissions.build node is true by default, so everyone can build by default, you have to set it your self. To fix the 15 block radius thing, open server properties and add spawn-protection=0 to the file, then restart the server, this will turn all spawn protection off, but is not advised. The line will be removed after restarting the server, so don't fret if you don't see it there later.

    I meant under users: as the format is different than under groups:.
    @SpaceManiac I would recommed recommending SetRank plugin in your first post, as 3/5 issues brought up in this thread are asking how to promote people easily and set promotion nodes, and each time somone has to suggest SetRank. Doing this would save alot of peoples time. Thankyou.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 14, 2016
  22. Offline

    Tho-1528

    I regenerated the config file over 20 times, and I still get those problems.
    And I checked over 10 times how much spaces I used, and they are all right.
    Well.. And that 15 block radius thingy didn't occur before today. I tried adding that line "spawn-protection=0" but nothing changed.

    So... My whole server is bugged right? Because I removed all plugins and only used this one, AND IT STILL DOES NOT WORK!! What am I doing wrong?!

    Edit: Here is my config.
    Code:
    users:
        Tho1528:
            permissions:
            groups:
            - owner
        lalolalo9:
            permissions:
            groups:
            - user
        Kyang123:
            permissions:
            groups:
            - exception
        lol123:
            permissions:
            groups:
            - user
        LewisGY:
            permissions:
            groups:
            - user
    groups:
        default:
            permissions:
                permissions.build: false
                admincmd.server.rules: true
        owner:
            permissions:
                permissions.*: true
        user:
            permissions:
                permissions.build: true
                admincmd.item.add: true
                admincmd.item.color: true
                admincmd.item.more: true
                admincmd.tp.to: true
                admincmd.player.list: true
                admincmd.player.msg: true
                admincmd.warp.tp: true
                mobdisguise.*: true
                admincmd.tp.back: true
                admincmd.tp.home: true
                admincmd.server.news: true
        exception:
            permissions:
                permissions.build: true
                admincmd.item.add: true
                admincmd.player.list: true
                admincmd.warp.tp: true
                admincmd.tp.home: true
                admincmd.server.news: true
    messages:
        build: '&4You do not have permission to do that!'
    
    
     
  23. Offline

    jalle1997

    Does this plugin works a separet plugin from the others like PEX and the other thing does this automaticly add users into the file instead of i need to make it manualy?
     
  24. Offline

    Tho-1528

    I don't wanna be impatient, but I seriously need help with my unusual problem.
     
  25. Offline

    lecraeman

    So how do i edit default? Whenever i start it up it automatically makes a admin group. How can i set the default permissions?
     
  26. Offline

    Mitzey234

    ummm i have the craftbukkit 1.8.1 on the newest build and the .yml file is blank once you start the craftbukkit server up. and when I put in the config that I find... here is what the server says about it:
    (Permission node 'groups' in server config is invalid)
    and the .yml is set with:
    users:
    ConspiracyWizard:
    permissions:
    permissions.example: true
    groups:
    - admin
    groups:
    default:
    permissions:
    permissions.build: false
    admin:
    permissions:
    permissions.*: true
    inheritance:
    - user
    user:
    permissions:
    permissions.build: true
    worlds:
    creative:
    coolplugin.item: true
    inheritance:
    - default
    messages:
    build: '&cYou do not have permission to build here.'

    I really need help.
    :confused:
     
  27. Offline

    Danielzxzx

    Hi, I own a server and I would to know if there is a way to change the name of the default group. I want it so that everyone that joins is in the rank, 'Recruit' and not 'Default'. How do I do this?
     
  28. Offline

    javoris767

    Does this work for 1337 cuz it randomly sets everyone to Player on my server
     
  29. Offline

    John

    Does PB work with any of the latest versions of Essentials?
     
  30. Offline

    Phedg1

    @SpaceManiac can you set world specific permissions for users? And if so, what is the correct setting out, because using the same setout as under groups doesn't respond.
     
  31. Offline

    donbuster

    on the pex converter i got
    Code:
    Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Unable to parse string: Unable to parse line 28 (Guests).' in /f5/wombatymuus/public/minecraft/permissions/sfYaml.php:100 Stack trace: #0 /f5/wombatymuus/public/minecraft/permissions/index.php(196): sfYaml::load('groups:?? Gu...') #1 /f5/wombatymuus/public/minecraft/permissions/index.php(294): calculateResult('groups:?? Gu...', 'PEX') #2 {main} thrown in /f5/wombatymuus/public/minecraft/permissions/sfYaml.php on line 100
     
    
    what it was complaining about

    line 27; inheritance:
    line 28; guest
     

Share This Page