[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

    runerqp

    Im having the same problem please help us..
     
  3. Offline

    Bios Element

    Gotta say, you're being silly. MySQL is FAR faster and FAR easier to manage then a flatfile config if you're scaling at all.To be frank, an "Average" person probably shouldn't be running a server to begin with and even if they did, MySQL is optional with PEX and should be optional with PermissionsBukkit.
     
  4. There's still the issue that there's no reason for it to be a database when the file is only read at startup and written at shutdown. The optimization of the database storage is negligible.
     
  5. Offline

    Bios Element

    With PermissionsBukkit that may be true, but there are still times it's useful and interrogation a web interface is much easier.
     
  6. Offline

    Acaila

    We've been getting a similar error on our server, I added a couple of null object checks to unregisterPlayer and onPlayerQuit to fix it (yay for open source):

    Code:
    diff --git a/src/main/java/com/platymuus/bukkit/permissions/PermissionsPlugin.java b/src/main/java/com/platymuus/bukkit/permissions/PermissionsPlugin.java
    index a451dee..4d975ab 100644
    --- a/src/main/java/com/platymuus/bukkit/permissions/PermissionsPlugin.java
    +++ b/src/main/java/com/platymuus/bukkit/permissions/PermissionsPlugin.java
    @@ -134,8 +134,11 @@ public class PermissionsPlugin extends JavaPlugin {
         }
    
         protected void unregisterPlayer(Player player) {
    -        player.removeAttachment(permissions.get(player.getName()));
    -        permissions.remove(player.getName());
    +        if (player == null) {
    +        } else {
    +            player.removeAttachment(permissions.get(player.getName()));
    +            permissions.remove(player.getName());
    +        }
         }
    
         protected void refreshPermissions() {
    diff --git a/src/main/java/com/platymuus/bukkit/permissions/PlayerListener.java b/src/main/java/com/platymuus/bukkit/permissions/PlayerListener.java
    index 2f4d551..287d690 100644
    --- a/src/main/java/com/platymuus/bukkit/permissions/PlayerListener.java
    +++ b/src/main/java/com/platymuus/bukkit/permissions/PlayerListener.java
    @@ -21,7 +21,10 @@ public class PlayerListener extends org.bukkit.event.player.PlayerListener {
    
         @Override
         public void onPlayerQuit(PlayerQuitEvent event) {
    -        plugin.unregisterPlayer(event.getPlayer());
    +        if (event == null) {
    +       } else {
    +            plugin.unregisterPlayer(event.getPlayer());
    +        }
         }
    
         @Override
    ~
    
    Haven't fully debugged it but I suspect its a race condition between handling the event object and the player object being removed via GC.
     
  7. Offline

    Rowtag

    Is it possible to add antibuild and antiinteraction to the permissionsbukkit?

    Thanks :)
     
  8. Offline

    blahblahjam

    I tried to disable building for a guest group and I could build when I changed to that group. I tried to remove permissions.build and also type permissions.build: false and still could build.
    What should I do?
     
  9. Are you saying that you can't parse a flatfile?
     
  10. Offline

    maller

    @Acaila
    Could you by any chance upload the .jar file with the changes you made ?
     
  11. Offline

    arthoz

    Is there a way to only make player setgroup to only allow groups "below" it?
    i.e you have groups default, user, mod, admin (each inherits previous), so mod can only setgroup default and user, and not make others/self mod or admin.

    If its not possible, could it (or something similar, i.e add permissions.player.setgroup.groupname nodes for (dis)allowed groups to add) be added ? =)
     
  12. Offline

    Thought Ninja

    My default players are able to use all commands for some reason, also whenever i log on it says [Operator] Thought Ninja Has joined the game but I am listed as default and the prefix does not show during chat, just the login. Any help is appreciated. Config:
    Code:
    users:
        Sum1beatu:
            permissions:
            groups:
            - Admin
        Surferdude488:
            permissions:
            groups:
            - Admin
        facemangaler:
            permissions:
            groups:
            - Citizen
        Thought_Ninja:
            permissions:
            groups:
            - Operator
        BUGZE_30:
            permissions:
            groups:
            - Admin
        Friendlyfrenzy:
            permissions:
            groups:
            - Artist
        Jack_x_:
            permissions:
            groups:
            - Mod
        Khalidmine:
            permissions:
            groups:
            - Citizen
        OGthirteen:
            permissions:
            groups:
            - Citizen
        MrFruitTree:
            permissions:
            groups:
            - Operator
        Max_Ashworth:
            permissions:
            groups:
            - Artist
        ixi_your_face:
            permissions:
            groups:
            - Artist
        n00bz_f1rst_t1m3:
            permissions:
            groups:
            - Citizen
        Alec250f:
            permissions:
            groups:
            - Artist
        yellowjacket18:
            permissions:
            groups:
            - Citizen
        Flagadabob:
            permissions:
            groups:
            - Artist
    groups:
        Citizen:
            permissions:
                'craftbook.*': true
                essential.signs.buy.use: true
                essential.signs.protection.create: true
                essential.signs.protection.use: true
                essential.signs.trade.create: true
                essential.signs.trade.use: true
                essentials.back: true
                essentials.compass: true
                essentials.getpose: true
                essentials.help: true
                essentials.home: true
                essentials.list: true
                essentials.motd: true
                essentials.msg: true
                essentials.ping: true
                essentials.rules: true
                essentials.sethome: true
                essentials.signs.disposal.create: true
                essentials.signs.disposal.use: true
                essentials.spawn: true
                essentials.suicide: true
                herochat.color: true
                'mobrider.*': true
                'preciousstones.benefit.*': true
                preciousstones.whitelist: true
                'warp.sign.to.*': true
                'warp.world.to.*': true
                'warp.world.within.*': true
                mchat.prefix.cfceCitizencfce: true
                permissions.build: true
        default:
            permissions:
                'craftbook.*': true
                essentials.compass: true
                essentials.getpos: true
                essentials.help: true
                essentials.list: true
                essentials.motd: true
                essentials.rules: true
                essentials.spawn: true
                essentials.tp: true
                warp.command.list: true
                'warp.sign.to.*': true
                'warp.to.*': true
                'warp.world.to.*': true
                'warp.world.within.*': true
                mchat.prefix.c7Guest: true
                permissions.build: true
            worlds:
                world:
                    permissions.build: false
                world_guest:
                    permissions.build: true
                world_nether:
                    permissions.build: true
        Mod:
            permissions:
                essentials.ban: true
                essentials.god: true
                essentials.heal: true
                essentials.jump: true
                essentials.tppos: true
                essentials.kick: true
                essentials.tp: true
                essentials.whois: true
                essentials.kit.tools: true
                essentials.kit: true
                'movecraft.*': true
                'preciousstones.bypass.*': true
                'warp.to.*': true
                'warp.sign.to*': true
                'worldedit.navigation.*': true
                essentials.back: true
                essentials.spawn: true
                essentials.getpose: true
                essentials.compass: true
                essentials.help: true
                essentials.home: true
                essentials.list: true
                essentials.motd: true
                essentials.msg: true
                essentials.ping: true
                essentials.suicide: true
                essentials.rules: true
                essentials.sethome: true
                'preciousstones.benefit.*': true
                preciousstones.whitelist: true
                essential.signs.trade.create: true
                essential.signs.trade.use: true
                essentials.signs.disposal.use: true
                essentials.signs.disposal.create: true
                'mobrider.*': true
                herochat.color: true
                nocheat.moving: true
                'warp.world.within.*': true
                'warp.world.to.*': true
                'craftbook.*': true
                mchat.prefix.cfcbModcfcb: true
                permissions.build: true
        Operator:
            permissions:
                'craftbook.*': true
                'craftbookcommon.*': true
                'craftbookcircuits.*': true
                'craftbookmechanisms.*': true
                'craftbookvehicles.*': true
                'essentials.*': true
                'herochat.*': true
                'heroicdeath.*': true
                'mobrider.*': true
                'movecraft.*': true
                'multiverse.*': true
                'worldedit.*': true
                'worldguard.*': true
                'xwarp.*': true
                'nocheat.*': true
                'permissionsbukkit.*': true
                mchat.prefix.cfc9Operatorcfc9: true
                permissions.build: true
        Artist:
            permissions:
                'worldedit.navigation.*': true
                essentials.back: true
                essentials.spawn: true
                essentials.getpose: true
                essentials.compass: true
                essentials.help: true
                essentials.home: true
                essentials.list: true
                essentials.motd: true
                essentials.msg: true
                essentials.ping: true
                essentials.kit.tools: true
                essentials.kit: true
                essentials.suicide: true
                essentials.rules: true
                essentials.sethome: true
                'preciousstones.benefit.*': true
                preciousstones.whitelist: true
                essential.signs.trade.use: true
                essentials.signs.disposal.use: true
                essentials.signs.disposal.create: true
                'mobrider.*': true
                herochat.color: true
                'warp.sign.to.*': true
                'warp.to.*': true
                nocheat.moving: true
                'warp.world.within.*': true
                'warp.world.to.*': true
                'craftbook.*': true
                essentials.tp: true
                warp.command.list: true
                mchat.prefix.cfc5Artistcfc5: true
                permissions.build: true
                essentials.time: true
        Admin:
            permissions:
                'craftbook.*': true
                essential.signs.buy.use: true
                essential.signs.protection.create: true
                essential.signs.protection.use: true
                essential.signs.trade.create: true
                essential.signs.trade.use: true
                essentials.back: true
                essentials.ban: true
                essentials.clearinventory: true
                essentials.compass: true
                essentials.getpose: true
                essentials.give: true
                essentials.god: true
                essentials.heal: true
                essentials.help: true
                essentials.home: true
                essentials.invsee: true
                essentials.item: true
                essentials.jump: true
                essentials.kick: true
                essentials.kill: true
                essentials.kit: true
                essentials.kit.tools: true
                essentials.list: true
                essentials.motd: true
                essentials.msg: true
                essentials.ping: true
                essentials.rules: true
                essentials.sethome: true
                essentials.signs.disposal.create: true
                essentials.signs.disposal.use: true
                essentials.spawn: true
                essentials.spawnmob: true
                essentials.suicide: true
                essentials.time: true
                'essentials.time.*': true
                essentials.tp: true
                essentials.tpahere: true
                essentials.tppos: true
                essentials.tree: true
                essentials.weather: true
                essentials.whois: true
                herochat.color: true
                'mobrider.*': true
                'movecraft.*': true
                nocheat.moving: true
                'preciousstones.admin.*': true
                'preciousstones.alert.*': true
                'preciousstones.benefit.*': true
                'preciousstones.bypass.*': true
                preciousstones.whitelist: true
                'warp.*': true
                'warp.world.to.*': true
                'warp.world.within.*': true
                'worldedit.*': true
                mchat.prefix.cfc3Admincfc3: true
                permissions.build: true
    messages:
        build: '&cYou do not have permission to build here.'
    Thanks
    --Thought_Ninja
     
  13. Offline

    runerqp

    having same problem please help. Now were 3 guys.
     
  14. Offline

    Bubylou

    Try posting your configuration. Also are you an op?
     
  15. Offline

    Acaila

  16. Offline

    Bios Element

    I'm saying what's easier.
     
    sbeex likes this.
  17. Offline

    sbeex

    Of course it's a plus ! Just think about minecraft communauties who doesn't have to copy a flat file for each server.
    And it is of course easier to manage a sql database as a flat file with a website.

    So please :) add mysql support ^^
     
    Bios Element likes this.
  18. Offline

    Deathlysteve-

    ok, is there a way that i can make admin so ANYTHING (Like the ORIGINAL permissions.....)
    coz im admin, i can do most stuff, but when i try using a plugin like WAR, it dont work anymore (i cant use it like b4 without typing in the nodes)
    everything in config hasnt really changed much, only added ppl to those groups...

    urgh this new permissions is annoying me big time, but MyMcAdmin needs it if u want customisable permission :(

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  19. Offline

    sagethor

    I agree with you Deathly. It's been painful having to try to correct the glitches with permissions, and possible mistakes just to find out that the plugin just won't work with PermissionsBukkit.

    EDIT - I've tried seven times to fix problems with VirtualChests and Hungry and PermissionsBukkit doesn't work with them, where Permissions 3.1.5 did. Frustrating.
     
  20. Offline

    Ziden

    Sorry i could figure out really how to use this.

    All plugins i use still use the older permissions, so im using the permissions bridge.
    Where shall i add my permissions ?

    In BukkitPermissions YML:

    What am i doing wrong ? Neather my Admin permissions worked neather the players 'default' did.

    Thanx for any help.
     
  21. Offline

    Plop

  22. Offline

    WaterFalcon

    Ok, i have a problem, i don't know if it is just the config, or a bug of some sort.

    my problem (open)

    I would like it so that when the "user" people are in "world1" they have many admin powers, however, when they leave that world, there powers are gone, and go back to the basic "user" permissions.however that is not happening. here is my config file.

    Code:
    groups:
        default:
            permissions:
                permissions.build: true
        user:
            permissions:
                permissions.build: true
                admincmd.user: true
                bookworm.user: true
                falsebook.ic.standard: true
                hookshot.use: true
                mc.use: true
                movecraft.basic: true
                PaintingSwitch.use: true
                RainBucket: true
            worlds:
                world:
                    permissions.build: true
                    admincmd.all: true
                    bookworm.admin: true
                    nocheat.admin: true
                    openinv.admin: true
                    mulitverse.admin: true
                    falsebook.admin: true
                    movecraft.*: true
                    regios.admin: true
                    worldedit.admin: true
            inheritance:
            - default
        admin:
            permissions:
                overlord.superadmin: true
            inheritance:
            - user
    messages:
        build: '&cYou do not have permission to build here.'
    whenever the "user" group goes into "world2" they keep all the permissions from "world1" and do not go back to the regular permissions. am i doing something wrong?

    any help would be apereciated, thanks. :)

    edit: when i log in to "world1" as "user" and teleport to "world2" i keep the "world1" permissions. when i log in while in "world2" and teleport to "world1" i get the basic permissions while in "world1", not the admin permissions.

    edit:
    "user" also can't build anything
     
  23. Offline

    Kiwii

    I get this annoying error everytime somebody is auto kicked for flying. Anyway to get rid of it?
    Console Output (open)
    22:17:20 [WARNING] EvilCheater was kicked for floating too long!
    22:17:20 [SEVERE] Could not pass event PLAYER_QUIT to PermissionsBukkit
    java.lang.IllegalArgumentException: Attachment cannot be null
    at org.bukkit.permissions.PermissibleBase.removeAttachment(PermissibleBase.java:134)
    at org.bukkit.craftbukkit.entity.CraftHumanEntity.removeAttachment(CraftHumanEntity.java:104)
    at com.platymuus.bukkit.permissions.PermissionsPlugin.unregisterPlayer(PermissionsPlugin.java:137)
    at com.platymuus.bukkit.permissions.PlayerListener.onPlayerQuit(PlayerListener.java:24)
    at org.bukkit.plugin.java.JavaPluginLoader$2.execute(JavaPluginLoader.java:251)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    at net.minecraft.server.ServerConfigurationManager.disconnect(ServerConfigurationManager.java:146)
    at net.minecraft.server.NetServerHandler.disconnect(NetServerHandler.java:117)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:354)
    at net.minecraft.server.Packet10Flying.a(SourceFile:126)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Edit: Bukkit b1000, PermissionsBukkit version 1.1
    Thanks in advance! And btw, I really like the way Bukkit's permission system turned out to be.
     
  24. Offline

    RustyDagger

    I have a question how to i allow my mods to promote say a noob to player with out letting them promote them self or say a user to a group lower than them i only want the to be able to promote from Noob>player and not noob>player>vip>mod>admin>superadmin>owner

    You get the drift it dont seem all that user friendly in allowing the handout of permissions to lower ranks that should not be given free range of use. some thing like. a ranking system that permissions plus uses would be ideal as it is simple and very easy to understand.

    some thing a bit like this:
    Code:
    group:
        Ranking:
             - rank.4
             - Ranklimit.2
    
    This would mean that said player that was in group could not interfere or change any permissions on any person that has a rank higher than 2
     
  25. Offline

    tassox33

    When I do /permissions player addgroup xxx gatekeeper , it adds them to gatekeeper and default so i have to do removegroup default right after. Though I'd love it if it added default users to the permissions, it would probably work with timerank that way.

    Is there a way to make it so i dont have to removegroup?

    Ugh messed with this for 3 hours, seems to fail all over the place.
     
  26. Offline

    RustyDagger

    Uh i just noticed that i cant see a way to tell the plugin what permissions to give if the user is not in the file aka default permissions how do i set them :( how do i make the group ""THE DEFAULT"" How do i define it i cant see it in any of the examples...

    If my Default group has to be called Default I think im not going to worrie with this stinking pile of crap flexibility in not this plugin i should be able to have my lowest group called what ever the hell i want not default.

    Mainly because my lowest group is not the main group every player that joins should be in. because my lowest group is banned 0 permissions the next group up is Noob Just stop being so god dam lazy and add a F*** permission node to declare a group as the default group GEzus...
     
  27. Offline

    kyuubireaper

    I am totally lost here. Please tell me how to set this is up. I type in the config:
    users: kyuubireaper: permissions: permissions.*: true
    And that is all. But I get an error and it doesn't work.
     
  28. Offline

    Flabaliki

    @SpaceManiac I think you were talking about my plugin in your thread, Simple Prefix, I've updated to use Superperms and is fully compatible alongside PermissionsBukkit.
     
  29. Offline

    Megalanias

    Hey can someone help me ? i use a yaml parser to test my permissions but when the parser marks failures and i correct them, the parser say there is still a failure like :
    ERROR: while scanning a simple key in "<unicode string>", line 2, column 1: megalanias ^ could not found expected ':' in "<unicode string>", line 3, column 22: ConspiracyWizard :
    Und ich verstehe einfach nicht was bei megalanias falsch ist und warum der den doppelpunkt bei conspiracywizard nicht erkennt ! Kann mir jemand helfen ?
     
  30. Offline

    SH4D0WS1N

    I've used Permissions several times on my own server, however I try to help my friend set them up just now, and it doesn't work. We were originally using Permissions, but when he got his dedicated server I decided on a switch to SuperPems.
    I don't know if it's the plugins we have or our config, but the server does not want to cooperate with us.
    First and foremost a simple un-related question:
    How do you make an op not be colored?

    Now off to our problems.

    The plugins:
    All four Craft Book jars
    CreativeGates
    Essentials, Essentials GeoIP, Protect, and Spawn
    Factions
    iConomy
    mChat
    PermissionsBukkit1.1
    SuperPermBridge 1.2
    World Edit

    Craft Book is untested
    Creative Gates untested
    Essentials (I believe) outputs "Error: null" when using the /help command
    iConomy untested
    World Edit works

    When the owner of the server sends a message, it appears as "dFACTIONNAMEc HISNAME" or something very similar
    The config.yaml is below.

    Code:
    # PermissionsBukkit configuration file
    #
    # 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 all admin permissions. 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.
    mchat-join-message: 'has joined the game.'
    mchat-leave-message: 'has left the game.'
    mchat-kick-message: 'has been kicked from the game.'
    mchat-colouring: 'dark_blue'
    mchat-contrib-enabled: 'true'
    mchat-notifyHealth-enabled: 'false'
    mchat-contrib-PMBox: 'false'
    mchat-typingMessage: '*Typing*'
    mchat-name-format: '+prefix+name&e'
    mchat-date-format: HH:mm:ss
    mchat-message-format: '+prefix+name&f: +message'
    mchat:
        prefix:
            owner: '&4[Owner] &7'
            headadmin: '&2[Head Admin] &7'
            clay: '&d[Gay] &7'
            admin: '&1[Admin] &7'
            vip: '&b[VIP] &7'
            moderator: '&5[Moderator] &7'
            default: '&7'
    users:
    #############################################################################
    # ME
    #############################################################################
        SH4D0WS1N:
            permissions:
            groups:
            - shadow
    #############################################################################
    # OWNER
    #############################################################################
        CyborgNUDL:
            permissions:
            groups:
            - owner
    #############################################################################
    # HEAD ADMINS
    #############################################################################
        bigfootsmyth:
            permissions:
            groups:
            - headadmin
        KalebBrown1231:
            permissions:
            groups:
            - headadmin
    #############################################################################
    # ADMINS
    #############################################################################
        Kory:
            permissions:
            groups:
            - admin
        asillysquirrel:
            permissions:
            groups:
            - admin
    #############################################################################
    # MODERATOR
    #############################################################################
    
    #############################################################################
    # VIP
    #############################################################################
    
    #############################################################################
    # GAY GUY - Joke
    #############################################################################
        clabay96:
            permissions:
            groups:
            - clay
    
    
    #############################################################################
    #############################################################################
    ############################## GROUP SETTINGS ###############################
    #############################################################################
    #############################################################################
    
    
    groups:
        shadow:
            permissions:
                mchat.prefix.owner: false
                mchat.prefix.default: true
            inheritance:
            - owner
        owner:
            permissions:
                mchat.prefix.headadmin: false
                mchat.prefix.owner: true
                permissions.*: true
                superpermbridge.*: true
        headadmin:
            permissions:
                mchat.prefix.admin: false
                mchat.prefix.headadmin: true
                superpermbridge.essentials.*: true
                superpermbridge.essentials.tptoggle: false
                superpermbridge.essentials.nick.others: false
                superpermbridge.essentials.ban.exempt: true
                superpermbridge.essentials.tempban.exempt: true
                superpermbridge.essentials.kick.exempt: true
                superpermbridge.essentials.mute.exempt: true
                superpermbridge.essentials.nuke: false
                superpermbridge.essentials.thunder: false
                superpermbridge.factions.*: true
                superpermbridge.iConomy.*: true
                superpermbridge.iConomyChestShop.*: true
            inheritance:
            - admin
        clay:
            permissions:
                mchat.prefix.admin: false
                mchat.prefix.clay: true
            inheritance:
            - admin
        admin:
            permissions:
                mchat.prefix.moderator: false
                mchat.prefix.admin: true
                superpermbridge.creativegates.*: true
                superpermbridge.esstentials.item: true
                superpermbridge.essentials.clearinventory: true
                superpermbridge.essentials.tempban: true
            inheritance:
            - moderator
        vip:
            permissions:
                mchat.prefix.moderator: false
                mchat.prefix.vip: true
                superpermbridge.essentials.jump: true
                superpermbridge.essentials.top: true
                superpermbridge.essentials.tphere: true
                superpermbridge.essentials.joinfullserver: true
                superpermbridge.factions.manageSafeZone: true
                superpermbridge.worldedit.*: true
            inheritance:
            - default
        moderator:
            permissions:
                mchat.prefix.default: false
                mchat.prefix.moderator: true
                superpermbridge.essentials.time: true
                superpermbridge.essentials.weather: true
                superpermbridge.essentials.tp: true
            inheritance:
            - default
        default:
            permissions:
                permissions.build: true
                mchat.prefix.default: true
                superpermbridge.creativegates.*: false
                superpermbridge.essentials.afk: true
                superpermbridge.essentials.compass: true
                superpermbridge.essentials.depth: true
                superpermbridge.essentials.getpos: true
                superpermbridge.essentials.help: true
                superpermbridge.essentials.ignore: true
                superpermbridge.essentials.list: true
                superpermbridge.essentials.me: true
                superpermbridge.essentials.motd: true
                superpermbridge.essentials.msg: true
                superpermbridge.essentials.rules: true
                superpermbridge.essentials.ban.notify: true
                superpermbridge.essentials.kick.notify: true
                superpermbridge.essentials.home: true
                superpermbridge.essentials.warp: true
                superpermbridge.essentials.warp.list: true
                superpermbridge.essentials.portal: true
                superpermbridge.essentials.participate: true
                superpermbridge.factions.create: true
                superpermbridge.factions.manageWarZone: true
                superpermbridge.iConomy.access: true
                superpermbridge.iConomy.rank: true
                superpermbridge.iConomy.list: true
                superpermbridge.iConomyChestShop.shop.create: true
                superpermbridge.iConomyChestShop.shop.buy: true
                superpermbridge.iConomyChestShop.shop.sell: true
                superpermbridge.iConomyChestShop.shop.exclude.46: true
    messages:
        build: '&cYou do not have permission to build here.'
    
    The server start up is below (TCADMIN)

    Code:
    2011-07-28 02:55:34 [INFO] Starting minecraft server version Beta 1.7.3
    2011-07-28 02:55:34 [WARNING] **** NOT ENOUGH RAM!
    2011-07-28 02:55:34 [WARNING] To start the server with more ram, launch it as "java -Xmx1024M -Xms1024M -jar minecraft_server.jar"
    2011-07-28 02:55:34 [INFO] Loading properties
    2011-07-28 02:55:34 [INFO] Starting Minecraft server on 184.171.169.66:25597
    2011-07-28 02:55:34 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-945-g73697a4-b1000jnks (MC: 1.7.3)
    2011-07-28 02:55:35 [INFO] DataSourcePool [iConomyChestShop] autoCommit[false] transIsolation[SERIALIZABLE] min[2] max[20]
    2011-07-28 02:55:35 [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin.java.PluginClassLoader]
    2011-07-28 02:55:35 [INFO] Entities enhanced[0] subclassed[1]
    2011-07-28 02:55:36 [INFO] [SuperpermBridge] Superperm/Permissions bridge initialized
    2011-07-28 02:55:36 [INFO] Preparing level "world"
    2011-07-28 02:55:36 [INFO] Preparing start region for level 0 (Seed: 7315890714907831462)
    2011-07-28 02:55:41 [INFO] Preparing spawn area: 3%
    2011-07-28 02:55:41 [INFO] Preparing start region for level 1 (Seed: -8271051160399125119)
    2011-07-28 02:55:42 [INFO] Preparing spawn area: 85%
    2011-07-28 02:55:42 [INFO] CraftBookCommon 46-a9b78b6 enabled.
    2011-07-28 02:55:42 [INFO] CraftBookCommon: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-07-28 02:55:42 [INFO] CraftBookCircuits 46-a9b78b6 enabled.
    2011-07-28 02:55:42 [INFO] CraftBookCircuits: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-07-28 02:55:42 [INFO] CraftBookCircuits: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-07-28 02:55:42 [INFO] CraftBook: Enumerating chunks for self-triggered components...
    2011-07-28 02:55:42 [INFO] CraftBook: 1250 chunk(s) for 2 world(s) processed (0s elapsed)
    2011-07-28 02:55:42 [INFO] CraftBookMechanisms 46-a9b78b6 enabled.
    2011-07-28 02:55:42 [INFO] CraftBookMechanisms: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-07-28 02:55:42 [INFO] 1 cauldron recipe(s) loaded
    2011-07-28 02:55:42 [INFO] CraftBookVehicles 46-a9b78b6 enabled.
    2011-07-28 02:55:42 [INFO] CraftBookVehicles: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-07-28 02:55:42 [INFO] [CreativeGates v1.1.2] ===== ENABLE START
    2011-07-28 02:55:42 [INFO] [CreativeGates v1.1.2] Loading conf.txt ...
    2011-07-28 02:55:42 [INFO] [CreativeGates v1.1.2] Wand: Watch
    2011-07-28 02:55:42 [INFO] [CreativeGates v1.1.2] Block: Diamond block
    2011-07-28 02:55:42 [INFO] [CreativeGates v1.1.2] Max Area: 200
    2011-07-28 02:55:42 [INFO] [CreativeGates v1.1.2] Found and will use plugin Permissions v2.7.7
    2011-07-28 02:55:42 [INFO] [CreativeGates v1.1.2] ===== ENABLE END
    2011-07-28 02:55:43 [INFO] Loaded Essentials build 2.4.2 by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans and Xeology
    2011-07-28 02:55:43 [INFO] [Essentials] Payment method found (iConomy version: 5)
    2011-07-28 02:55:43 [INFO] Loaded EssentialsGeoIP build 2.4.2 by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans and Xeology
    2011-07-28 02:55:43 [INFO] This product includes GeoLite data created by MaxMind, available from http://www.maxmind.com/.
    2011-07-28 02:55:43 [INFO] Loaded EssentialsProtect build 2.4.2 by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans and Xeology
    2011-07-28 02:55:43 [INFO] Loaded EssentialsSpawn build 2.4.2 by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans and Xeology
    2011-07-28 02:55:44 [INFO] [iConomy] Logging is currently disabled.
    2011-07-28 02:55:44 [INFO] [iConomy] v5.01 (Eruanna) loaded.
    2011-07-28 02:55:44 [INFO] [iConomy] Developed by: [Nijikokun]
    2011-07-28 02:55:44 [INFO] [iConomyChestShop] version 2.75 initialized!
    2011-07-28 02:55:44 [INFO] [iConomyChestShop] iConomy version 5 loaded.
    2011-07-28 02:55:44 [INFO] [iConomyChestShop] Permissions version 2.7.7 loaded.
    2011-07-28 02:55:44 [INFO] [mChat] BukkitContrib not found not using.
    2011-07-28 02:55:44 [INFO] [mChat] PermissionsBukkit 1.1 found hooking in.
    2011-07-28 02:55:44 [INFO] [mChat] version 1.7.7_2 is enabled!
    2011-07-28 02:55:44 [INFO] PermissionsBukkit v1.1 is now enabled
    2011-07-28 02:55:44 [INFO] [SuperpermBridge] Superperm/Permissions bridge enabled
    2011-07-28 02:55:44 [INFO] CraftBookCircuits: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-07-28 02:55:44 [INFO] [iConomy] hooked into Permissions.
    2011-07-28 02:55:44 [INFO] WorldEdit 4.6 enabled.
    2011-07-28 02:55:44 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-07-28 02:55:44 [INFO] [Factions v1.4.0] === INIT START ===
    2011-07-28 02:55:44 [INFO] [Factions v1.4.0] Loading conf from disk
    2011-07-28 02:55:44 [INFO] [Factions v1.4.0] Loading players from disk
    2011-07-28 02:55:44 [INFO] [Factions v1.4.0] Loading factions from disk
    2011-07-28 02:55:44 [INFO] [Factions v1.4.0] Loading board from disk
    2011-07-28 02:55:44 [INFO] [Factions v1.4.0] Found and will use plugin Permissions v2.7.7
    2011-07-28 02:55:44 [INFO] [Factions v1.4.0] === INIT DONE (Took 133ms) ===
    2011-07-28 02:55:44 [INFO] Server permissions file permissions.yml is empty, ignoring it
    2011-07-28 02:55:44 [INFO] Done (0.829s)! For help, type "help" or "?"
    2011-07-28 02:55:56 [INFO] SH4D0WS1N [/67.49.45.224:63710] logged in with entity id 27 at ([world] 238.81115085475915, 102.0, 437.88536191713524)
    2011-07-28 02:55:58 [INFO] SH4D0WS1N: a 
    2011-07-28 02:55:59 [INFO] ?9[PLAYER_COMMAND] SH4D0WS1N: /help 

    EDIT: Whoever made the editors for posts needs to be reprimanded for either coming up with or allowing the stupid idea of inline hidden color and code tags.
     
  31. Offline

    marvinej

    why dont new users automatically get added to a group :mad:
     

Share This Page