[ADMN] AllPermissions v1.1 - Bring the * node back! [PermissionsBukkit] [1240]

Discussion in 'Inactive/Unsupported Plugins' started by Baummann, Sep 2, 2011.

  1. Offline

    Baummann

    AllPermissions - Bring the * node back!​
    Version: 1.1 CraftBukkit 1240​
    This plugin is adding every permission of every AllPermissions-compatible plugin to your PermissionsBukkit config file but only for groups you want.​
    Features:
    • Bring the * node back
    Commands:
    • /allpermissions [option] - AllPermissions' control panel. Alias: /ap [option]
    How to use:
    1. Go to plugins/AllPermissions
    2. Open config.yml
    3. Add the groups you want to have all permissions
    4. Type ap gp in console
    5. You're done
    How do I add AllPermissions support to my plugin?:
    Show Spoiler
    AllPermissions is reading your plugin.yml file's permissions setting. If you already have it your plugin is already fully supported.

    If not add this to your plugin.yml file:
    Code:
    permissions:
       myplugin.mypermission:
           description: My description
           default: op
    Replace myplugin.mypermission with a permission of your plugin.
    Replace description with a short description of what the permission does.

    Do that with every permission of your plugin.


    Permissions:
    Show Spoiler

    • allpermissions.reload - Ability to reload AllPermissions
    • allpermissions.givepermissions - Ability to use /ap gp
    • allpermissions.* - Access to all of AllPermissions' commands.


    Changelog:
    • v1.0 - First release
    • v1.1 - Now supporting CB 1240
    This is only working with PermissionsBukkit! If you're using Permissions 3.x just add * as permission.
     
  2. Offline

    meee

    I'm going to test that :)
     
  3. Offline

    ratty

    THANK GOD!!! This was holding me up from upgrading, going through 40 plugins, trying to remember what node each uses, screw that! Thanks so much for making this!!!!
     
  4. Offline

    Afotai

    Doesn't this beat the point of having the new permission system? Now developers need to support yet another plugin while SuperPerms was there to uniformisation and ease with 1 system.
     
  5. Offline

    Baummann

    No it doesn't. The most new plugins are already supported, because they have a specific property which every plugin which was made using Bukkit (not CraftBukkit) 804+ should have.
     
  6. Offline

    Pim1234

    Code:
    17:12:14 [SEVERE] Could not load 'plugins/AllPermissions-1.0.jar' in folder 'plugins': PermissionsBukkit
    org.bukkit.plugin.UnknownDependencyException: PermissionsBukkit
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:133)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:213)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:143)
        at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:450)
        at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:281)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:344)
        at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:489)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:468)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    what did i do wrong?
    do i have to post more?
     
  7. Offline

    Baummann

    You need PermissionsBukkit for this.
     
  8. Offline

    Pim1234

    lol, i'm not THAT stupid :p

    i do have permissionsbukkit.

    root permissions.yml (open)

    Code:
    server.Slave:
        Children:
            styxspace.teleport.enter:true
            iConomy.acces:true
            iConomy.payment:true
            mobbounty.collect:true
            MobBounty.mb:true
            fight.user:true
            craftbook.mech.cauldron:true
            admincmd.player.list:true
            PermIconomy.buy:true
            vitualshop.nobuy:true
            virtualshop.nosell:true
            disarm.disarm:true
            ichat.color:true
            snd.help:true
            snd.join.*:true
            admincmd.spawn.tp:true
            admincmd.player.msg:true
            admincmd.player.list:true
    server.Citizen:
        Children:
            bof.*:true
            bog.*:true
            passwordprotect.nopassword:true
            appleseed.plant.apple:true
            iconomy.bank.*:true
            scavenger.*:true
            spawnx.spawn:true
            simplechestlock.lock:true
            server.status:true
            admincmd.tp.home:true
            towny.town.resident:true
            towny.top:true
            backpack.nodrop:true
            backpack.size9:true
            gcb.access:true
            wolfpound.use:true
            animalcompanion.ownwolves:true
            animalcompanion.register:true
            animalcompanion.respawn:true
            animalcompanion.info:true
            animalcompanion.level:true
            animalcompanion.multiworld:true
            animalcompanion.leash:true
            animalcompanion.pack:true
            animalcompanion.ride:true
    server.Merchant:
        Children:
            iconomy.list:true
            iconomy.rank:true
            berespawn.*:true
            appleseed.plant.apple:true
            DailyBonus.get:true
            scavenger.*:true
    server.Nobleman:
        Children:
            appleseed.*:true
            admincmd.player.heal:true
            towny.town.new:true
            scavenger.*:true
    server.VIP:
        Children:
            VIP.VIP:true
            textplayer.free:true
            nocheat.*:true
            afkkick.exempt:true
            kyku.tower:true
            multiverse.tp:true
            mobdisguise.mobtype:true
            towny.cheat.bypass:true
            backpack.upgrade:true
            cf.allowfly:true
            admincmd.player.heal:true
            admincmd.player.fly:true
            stopwhiners.getback:true
            scavenger.*:true
    server.Assistant:
        Children:
            easyban.*:true
            bb.admin.info:true
            bb.admin.rollback:true
            godpowers.heal:true
            worldedit.superpickaxe:true
            kyku.tower:true
            jail.command.jail:true
            jail.command.unjail:true
            adminchat:true
            towny.cheat.bypass:true
            gcb.admin.addbank:true
            admincmd.player.heal:true
            admincmd.player.spymsg:true
            admincmd.player.mute:true
            admincmd.server.repeat:true
            admincmd.tp.to:true
            admincmd.from:true
            admincmd.players:true
            advancedwarning.warn:true
            advancedwarning.check:true
            advancedwarning.clear:true
            scavenger.*:true
    server.Admin:
        Children:
            '*'
    


    permissions bukkit config.yml (open)

    Code:
    users:
        pim16aap2:
            permissions: 
            groups:
            - Emperor
        alex5775:
            permissions: 
            groups:
            - Assistant
        Scribblezzz:
            permissions: 
            groups:
            - MamaDuke
        BloodRayne89:
            permissions: 
            groups:
            - Assistant
        mineshort:
            permissions: 
            groups:
            - Citizen
        DanRock007:
            permissions: 
            groups:
            - Citizen
        biturbo:
            permissions: 
            groups:
            - Citizen
        darkdudefly:
            permissions: 
            groups:
            - Citizen
    
    
    
    groups:
        Slave:
            permissions:
                server.Slave: true
        Citizen:
            permissions:
                server.Citizen: true
            inheritance:
            - Slave
        Merchant:
            permissions:
                permissions.build: true
            inheritance:
            - Citizen
        Nobleman:
            permissions:
                server.Nobleman: true
            inheritance:
            - Merchant
        Assistant:
            permissions:
                server.Assistant: true
            inheritance:
            - Citizen
        Emperor:
            permissions:
                server.Admin: true
            inheritance:
        Mama Duke:
            permissions:
                server.Admin: true
            inheritance:
    
    messages:
        build: '&cYou do not have permission to build here.'
    


    your plugin never creates a config, it just gives me that error
     
  9. Offline

    Baummann

    Try to redownlaod the plugin
     
  10. Offline

    Pim1234

    omg, bukkitdev down (sigh, again)

    EDIT: redownload didn't work :(
     
  11. Offline

    Pim1234

    euhm? how can i get this to work? that would be awesome ;)
     
  12. Offline

    Baummann

    Your PermissionsBukkit's config file has got server.(group) try removing the server. because . is a YAML character. That causes a PermissionsBukkit error, it disables and AllPermissions doesn't find PermissionsBukkit.
     
  13. Offline

    Pim1234

    still not working with these settings:

    root permissions.yml (open)

    Code:
    Slave:
        Children:
            styxspace.teleport.enter: true
            iConomy.acces: true
            iConomy.payment: true
            mobbounty.collect: true
            MobBounty.mb: true
            fight.user: true
            craftbook.mech.cauldron: true
            admincmd.player.list: true
            PermIconomy.buy: true
            vitualshop.nobuy: true
            virtualshop.nosell: true
            disarm.disarm: true
            ichat.color: true
            snd.help: true
            snd.join.*: true
            admincmd.spawn.tp: true
            admincmd.player.msg: true
            admincmd.player.list: true
    
    Citizen:
        Children:
            bof.*: true
            bog.*: true
            passwordprotect.nopassword: true
            appleseed.plant.apple: true
            iconomy.bank.*: true
            scavenger.*: true
            spawnx.spawn: true
            simplechestlock.lock: true
            status: true
            admincmd.tp.home: true
            towny.town.resident: true
            towny.top: true
            backpack.nodrop: true
            backpack.size9: true
            gcb.access: true
            wolfpound.use: true
            animalcompanion.ownwolves: true
            animalcompanion.register: true
            animalcompanion.respawn: true
            animalcompanion.info: true
            animalcompanion.level: true
            animalcompanion.multiworld: true
            animalcompanion.leash: true
            animalcompanion.pack: true
            animalcompanion.ride: true
    
    Merchant:
        Children:
            iconomy.list: true
            iconomy.rank: true
            berespawn.*: true
            appleseed.plant.apple: true
            DailyBonus.get: true
            scavenger.*: true
    
    Nobleman:
        Children:
            appleseed.*: true
            admincmd.player.heal: true
            towny.town.new: true
            scavenger.*: true
    
    VIP:
        Children:
            VIP.VIP: true
            textplayer.free: true
            nocheat.*: true
            afkkick.exempt: true
            kyku.tower: true
            multiverse.tp: true
            mobdisguise.mobtype: true
            towny.cheat.bypass: true
            backpack.upgrade: true
            cf.allowfly: true
            admincmd.player.heal: true
            admincmd.player.fly: true
            stopwhiners.getback: true
            scavenger.*: true
    
    Assistant:
        Children:
            easyban.*: true
            bb.admin.info: true
            bb.admin.rollback: true
            godpowers.heal: true
            worldedit.superpickaxe: true
            kyku.tower: true
            jail.command.jail: true
            jail.command.unjail: true
            adminchat: true
            towny.cheat.bypass: true
            gcb.admin.addbank: true
            admincmd.player.heal: true
            admincmd.player.spymsg: true
            admincmd.player.mute: true
            admincmd.repeat: true
            admincmd.tp.to: true
            admincmd.from: true
            admincmd.players: true
            advancedwarning.warn: true
            advancedwarning.check: true
            advancedwarning.clear: true
            scavenger.*: true
    
    Admin:
        Children:
        '*': true


    permissionsbukkit config.yml (open)

    Code:
    # PermissionsBukkit configuration file
    
    users:
        pim16aap2:
            permissions: 
            groups:
            - Emperor
        alex5775:
            permissions: 
            groups:
            - Assistant
        Scribblezzz:
            permissions: 
            groups:
            - MamaDuke
        BloodRayne89:
            permissions: 
            groups:
            - Assistant
    
    
    
    
    groups:
        Slave:
            permissions:
                Slave: true
        Citizen:
            permissions:
                Citizen: true
                Slave: true
            inheritance:
        Merchant:
            permissions:
                Merchant: true
                Citizen: true
                Slave: true
            inheritance:
            - ''
        Nobleman:
            permissions:
                Nobleman: true
                Merchant: true
                Citizen: true
                Slave: true
            inheritance:
            - Merchant
        Assistant:
            permissions:
                Assistant: true
            inheritance:
            - Citizen
        Emperor:
            permissions:
                Admin: true
            inheritance:
        Mama Duke:
            permissions:
                Admin: true
            inheritance:
    
    messages:
        build: '&cYou do not have permission to build here.'
    
     
  14. Offline

    Baummann

    Try updating your PermissionsBukkit
     
  15. Offline

    Pim1234

    i downgraded (from 1.2 to 1.1) and now it is working, thanks!
     
  16. ive recently changed from groupmanager to permissionsbukkit...

    previously i have just used the * node, and now i use '*':true

    whats is the difference with the GM/Permissions * node and using the '*':true node?
     
  17. Offline

    Baummann

    *:true doesn't exist.
     
  18. Offline

    Pim1234

    it is '*': true
     
  19. Offline

    mxm24

    then that would mean we would not need this plugin?
     
  20. Offline

    JD DeGaetano

    OMG. Thank you! Great plugin!

    For those of you trippin about '*' Go read the permissionsbukkit thread. It says
     
  21. Offline

    Pim1234

    not if you're using permissions 2.7.4 or 3.1.6... if you're using permissionsbukkit this plugin is a lifesaver!
     
  22. Offline

    mxm24

    do you think you could help me get started with superperms? i have yet to find a tutorial on it.
     
  23. Offline

    Rustyhoff

    Is this pretty much saying how to make permissions for a plugin?
     
  24. Offline

    Baummann

    No, it only says how to register a permission for a plugin.
     
  25. Offline

    Pim1234

    log: (open)
    Code:
    21:49:57 [INFO] Starting minecraft server version Beta 1.8.1
    21:49:57 [INFO] Loading properties
    21:49:57 [INFO] Starting Minecraft server on *:25564
    21:49:57 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-1067-g6301507-b1185jnks (MC: 1.8.1)
    21:49:57 [INFO] [SuperpermBridge] Superperm/Permissions bridge initialized
    21:49:57 [INFO] [Safe Creeper] Safe Creeper V0.3.2 Enabled
    21:49:57 [INFO] Preparing level "world"
    21:49:57 [INFO] Default game type: 0
    21:49:57 [INFO] Preparing start region for level 0 (Seed: 2986835217335754996)
    21:49:58 [INFO] Preparing start region for level 1 (Seed: 7945333290932022875)
    21:49:58 [INFO] Preparing spawn area: 32%
    21:49:59 [INFO] [AnyoneSleep] Starting! (version 1.3 by R3ality)
    21:49:59 [INFO] [AnyoneSleep] Found a permission system, using it!
    21:49:59 [INFO] [AutoReplace] version 1.9.1 is enabled.
    21:49:59 [INFO] [MultiInv] version 2.3.2 is enabled!
    21:49:59 [INFO] [MultiVerse] Permissions Found
    21:49:59 [INFO] [MultiVerse] - Version 1.7.2 Enabled
    21:49:59 [INFO] [MultiVerse] Loading World & Settings - 'world_nether' - NETHER
    21:49:59 [INFO] [MultiVerse] Loading World & Settings - 'world' - NORMAL
    21:49:59 [INFO] [MultiVerse] 2 - World(s) loaded.
    21:49:59 [INFO] [MultiVerse] Loading Portals
    21:49:59 [INFO] [MultiVerse] 0 - Portal(s) loaded.
    21:49:59 [INFO] PermissionsBukkit v1.1 is now enabled
    21:49:59 [INFO] [SuperpermBridge] Superperm/Permissions bridge enabled
    21:49:59 [INFO] [MultiVerse] Found Permissions, enabling commands.
    21:49:59 [INFO] WorldEdit 4.6 enabled.
    21:49:59 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin for permissions.
    21:49:59 [INFO] [AllPermissions] Giving permissions...
    21:49:59 [SEVERE] Error occurred while enabling AllPermissions v1.0 (Is it up to date?): org.bukkit.plugin.PluginDescriptionFile.getPermissions()Ljava/util/ArrayList;
    java.lang.NoSuchMethodError: org.bukkit.plugin.PluginDescriptionFile.getPermissions()Ljava/util/ArrayList;
        at com.baummann.allpermissions.handlers.PermissionHandler.givePermissions(PermissionHandler.java:54)
        at com.baummann.allpermissions.AllPermissions.onEnable(AllPermissions.java:22)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:920)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156)
        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)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    21:49:59 [INFO] [mChat] PermissionsBukkit 1.1 found hooking in.
    21:49:59 [INFO] mChat is keeping usage stats an. To opt-out for whatever bizarre reason, check plugins/stats.
    21:49:59 [INFO] [mChat] mChat version 1.7.12 is enabled!
    21:49:59 [INFO] Request: GET http://usage.blockface.org/update.php?name=Craftbukkit&build=1.7.12&plugin=mChat&port=25564&public=1
    Will go to http://usage.blockface.org/update.php?name=Craftbukkit&build=1.7.12&plugin=mChat&port=25564&public=1
    21:49:59 [INFO] Done (0.199s)! For help, type "help" or "?"
    21:49:59 [INFO] resp: 200, len: 7


    am i doing something wrong?
     
  26. Offline

    Flipsen

    Please update to CraftBukkit #1185 and PermissionsBukkit 1.2k
     
  27. Offline

    Pim1234

    are you talking to me or to Baummann? xD
     
  28. Offline

    Baummann

    I'm updating it now.


    EDIT: I've updated it. Could you please test this? Else I'd have to set up a server again, and I don't have much time currently.
     
  29. Offline

    Pim1234

    i'm testing it now!

    EDIT: working on cb 1240 with permissionsbukkit v. 1.2k

    thanks a lot!
     
  30. Offline

    Flipsen

    Thank you for this plugin!!
     

Share This Page