You don't have permission to do this, after giving myself permission.

Discussion in 'Bukkit Help' started by TerryJ, Oct 10, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    TerryJ

    I've been trying this for days, and I can't seem to get it to work. I'm using PermissionsBukkit on version 1240 of Bukkit. The server runs on Windows 7 x64. I've tried to redo everything on a new bukkit server but the same thing happens every time. To me it seems that it just isn't reading the permissions file at all.

    My list of plugins are:
    Command Book
    MultiInv
    Multiverse-Core
    Multiverse-NetherPortals
    PermissionsBukkit
    SuperpermsBridge
    WorldEdit

    And here is my permissions config:
    Code:
    users:
        Gocarts:
            permissions:
            groups:
            - admin
    groups:
        default:
            permissions:
                multiverse.teleport.self: true
                commandbook.time: true
                commandbook.whereami: true
                commandbook.rules: true
                commandbook.clear: true
                commandbook.msg: true
                commandbook.weather: true
            worlds:
                1:
                    worldedit.*: false
                    permissions.build: true
                    commandbook.call: true
                1_nether:
                    worldedit.*: false
                    permissions.build: true
                    commandbook.call: true
                2:
                    worldedit.*: true
                    commandbook.teleport: true
                2_nether:
                    worldedit.*: true
                    commandbook.teleport: true
        admin:
            permissions:
                permissions.*: true
                commandbook.kick: true
                commandbook.bans.ban: true
                commandbook.bans.unban: true
                commandbook.bans.isbanned: true
                commandbook.bans.load: true
                commandbook.bans.save: true
                commandbook.mute: true
                multiverse.core.create: true
            inheritance:
            - default
    messages:
        build: '&cYou do not have permission to build here.'
    
     
  2. Offline

    Celeixen

    So what command are you trying to do?
     
  3. Offline

    TerryJ

    Any and all of them, none of the ones I have enabled will let me use them. At one point it was letting me use the Multiverse commands and then just stopped for some reason. Haven't been able to get it to do anything since.

    I've tried to change permissions.build to true and false, and it doesn't make a difference, everyone is always allowed to build.

    From what I can see my permissions are setup correctly, and it's a problem with PermissionsBukkit not wanting to read the permissions config at all.
     
  4. Offline

    Celeixen

    So its not producing any errors and you in the correct group?
     
  5. Offline

    TerryJ

    This is everything. And yes I'm in the correct Group, my username is Gocarts.
    Code:
    161 recipes
    17 achievements
    08:15:39 [INFO] Starting minecraft server version Beta 1.8.1
    08:15:39 [INFO] Loading properties
    08:15:39 [INFO] Starting Minecraft server on *:25565
    08:15:40 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-1112
    -g54a13b2-b1240jnks (MC: 1.8.1)
    08:15:41 [INFO] [SuperpermBridge] Superperm/Permissions bridge initialized
    08:15:41 [INFO] Preparing level "1"
    08:15:41 [INFO] Default game type: 0
    08:15:41 [INFO] Preparing start region for level 0 (Seed: 720394495)
    08:15:42 [INFO] Preparing spawn area: 24%
    08:15:43 [INFO] Preparing spawn area: 97%
    08:15:44 [INFO] Preparing start region for level 1 (Seed: 720394495)
    08:15:45 [INFO] Preparing spawn area: 52%
    08:15:45 [INFO] CommandBook 1.6 enabled.
    08:15:45 [SEVERE] CommandBook: Unable to read default configuration: config.yml
    08:15:45 [SEVERE] CommandBook: Unable to read default configuration: kits.txt
    08:15:45 [WARNING] CommandBook: 0 Warps(s) loaded
    08:15:45 [WARNING] CommandBook: 0 Homes(s) loaded
    08:15:45 [INFO] CommandBook: Maximum wrapper compatibility is enabled. Some feat
    ures have been disabled to be compatible with poorly written server wrappers.
    08:15:45 [INFO] CommandBook: 0 banned name(s) loaded.
    08:15:45 [INFO] CommandBook: Using the Bukkit Permissions API.
    08:15:46 [INFO] [MultiInv] version 2.3.2 is enabled!
    08:15:46 [INFO] [Multiverse-Core] - Version 2.0-b279 Enabled - By Rigby and fern
    ferret
    08:15:46 [INFO] [Multiverse-Core] - Attached to Permissions
    08:15:46 [INFO] [AllPay] - Version 3.0 - using only an item based economy for Mu
    ltiverse-Core v2.0-b279
    08:15:46 [INFO] [Multiverse-Core] - Multiverse Config -- Loaded
    08:15:46 [INFO] [Multiverse-Core] - World Config -- Loaded
    08:15:46 [SEVERE] Error occurred while enabling Multiverse-Core v2.0-b279 (Is it
     up to date?): java.lang.Integer cannot be cast to java.lang.String
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Stri
    ng
            at com.onarandombox.utils.WorldManager.loadWorlds(WorldManager.java:373)
    
            at com.onarandombox.MultiverseCore.MultiverseCore.onEnable(MultiverseCor
    e.java:137)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:941)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:280)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:174)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:157
    )
            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)
    08:15:46 [INFO] [MultiVerse-NetherPortals] - Version 2.0-b225 Enabled - By Rigby
     and fernferret
    08:15:46 [INFO] [SuperpermBridge] Superperm/Permissions bridge enabled
    08:15:46 [INFO] CommandBook: Using the Bukkit Permissions API.
    08:15:46 [INFO] [Multiverse-Core] - Attached to Permissions
    08:15:46 [INFO] WorldEdit 4.7 enabled.
    08:15:46 [SEVERE] WorldEdit: Unable to read default configuration: config.yml
    08:15:46 [INFO] WorldEdit: Using the Bukkit Permissions API.
    08:15:46 [INFO] PermissionsBukkit v1.2 is now enabled
    08:15:46 [INFO] Server permissions file permissions.yml is empty, ignoring it
    08:15:46 [INFO] Done (0.518s)! For help, type "help" or "?"
    >
    No one has any idea?

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

    Celeixen

    First of all you should probably fix that error. Are you editing the right config file because isn't there 1 per world and 1 global one? Also maybe try redo it because if you even miss 1 space it can stuff up the config (i don't think you can use tabs).
     
  7. Offline

    TerryJ

    The error doesn't seem to do anything, as it says it couldn't enable and then it enables. I've tried running the server without that plugin but it doesn't make a difference. I'm editing the config.yml file in the root/plugins/PermissionsBukkit folder, not the root permissions.yml. I've read the guides on how to write the permissions file properly, and as far as I can tell my permissions file is written properly. I do not use tabs, and have enabled the tabs to space option in Notepad++ long ago. What I get from this is that BukkitPermissions isn't reading the config file at all, as it doesn't care whether permissions.build is enabled or not, and always lets me build even if set to false.
     
  8. Offline

    Celeixen

    have you tried giving yourself permissions through commands? there might be something wrong with the config, but i cant tell for sure.
     
  9. Offline

    TerryJ

    Do you mean using the console to give myself permissions? Using what commands? I've managed to figure out a few things about my plugins, and it seems that it didn't generate the config.yml for a few, and I got that fixed. But, it's still not seeing that I have the permission. I've set permission.build to false, and can still build. Here is my console report and my config.yml for PermissionsBukkit as of now.

    Console:

    Code:
    161 recipes
    17 achievements
    16:20:45 [INFO] Starting minecraft server version Beta 1.8.1
    16:20:45 [INFO] Loading properties
    16:20:45 [INFO] Starting Minecraft server on *:25565
    16:20:46 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-1126
    -g35eac7a-b1317jnks (MC: 1.8.1)
    16:20:46 [INFO] [SuperpermBridge] Superperm/Permissions bridge initialized
    16:20:46 [INFO] Preparing level "1"
    16:20:46 [INFO] Default game type: 0
    16:20:47 [INFO] Preparing start region for level 0 (Seed: 720394495)
    16:20:48 [INFO] Preparing spawn area: 48%
    16:20:48 [INFO] Preparing start region for level 1 (Seed: 720394495)
    16:20:49 [INFO] Preparing spawn area: 20%
    16:20:50 [INFO] Preparing spawn area: 93%
    16:20:50 [INFO] CommandBook 1.6 enabled.
    16:20:50 [SEVERE] CommandBook: Unable to read default configuration: kits.txt
    16:20:50 [WARNING] CommandBook: 0 Warps(s) loaded
    16:20:50 [WARNING] CommandBook: 0 Homes(s) loaded
    16:20:50 [INFO] CommandBook: Maximum wrapper compatibility is enabled. Some feat
    ures have been disabled to be compatible with poorly written server wrappers.
    16:20:50 [INFO] CommandBook: 0 banned name(s) loaded.
    16:20:50 [INFO] CommandBook: Using the Bukkit Permissions API.
    16:20:50 [INFO] [MultiInv] version 2.3.2 is enabled!
    16:20:50 [INFO] [Multiverse-Core] - Version 2.0-b279 Enabled - By Rigby and fern
    ferret
    16:20:50 [INFO] [Multiverse-Core] - Attached to Permissions
    16:20:50 [INFO] [AllPay] - Version 3.0 - using only an item based economy for Mu
    ltiverse-Core v2.0-b279
    16:20:50 [INFO] [Multiverse-Core] - Multiverse Config -- Loaded
    16:20:50 [INFO] [Multiverse-Core] - World Config -- Loaded
    16:20:50 [INFO] [Multiverse-Core] Loading World & Settings - '1' - NORMAL with s
    eed: 251902290
    16:20:51 [INFO] Preparing start region for level 2 (Seed: 2)
    16:20:52 [INFO] Preparing spawn area for 2, 69%
    16:20:52 [INFO] [Multiverse-Core] Loading World & Settings - '2' - NORMAL with s
    eed: 2
    16:20:52 [INFO] Preparing start region for level 3 (Seed: -1394251515)
    16:20:53 [INFO] Preparing spawn area for 2_nether, 73%
    16:20:53 [INFO] [Multiverse-Core] Loading World & Settings - '2_nether' - NETHER
     with seed: -1394251515
    16:20:54 [INFO] [Multiverse-Core] 3 - World(s) loaded.
    16:20:54 [INFO] [MultiVerse-NetherPortals] - Version 2.0-b225 Enabled - By Rigby
     and fernferret
    16:20:54 [INFO] [SuperpermBridge] Superperm/Permissions bridge enabled
    16:20:54 [INFO] CommandBook: Using the Bukkit Permissions API.
    16:20:54 [INFO] [Multiverse-Core] - Attached to Permissions
    16:20:54 [INFO] WorldEdit 4.7 enabled.
    16:20:54 [INFO] WorldEdit: Using the Bukkit Permissions API.
    16:20:54 [INFO] PermissionsBukkit v1.2 is now enabled
    16:20:54 [INFO] Server permissions file permissions.yml is empty, ignoring it
    16:20:55 [INFO] Done (0.834s)! For help, type "help" or "?"
    16:21:07 [INFO] Gocarts [/192.168.44.1:58614] logged in with entity id 597 at ([
    1] 117.4375, 72.0, 214.25)
    16:21:07 [SEVERE] Could not pass event PLAYER_JOIN to PermissionsBukkit
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Stri
    ng
            at com.platymuus.bukkit.permissions.PermissionsPlugin.getNode(Permission
    sPlugin.java:215)
            at com.platymuus.bukkit.permissions.PermissionsPlugin.getNode(Permission
    sPlugin.java:185)
            at com.platymuus.bukkit.permissions.PermissionsPlugin.calculateGroupPerm
    issions(PermissionsPlugin.java:280)
            at com.platymuus.bukkit.permissions.PermissionsPlugin.calculateGroupPerm
    issions(PermissionsPlugin.java:292)
            at com.platymuus.bukkit.permissions.PermissionsPlugin.calculatePlayerPer
    missions(PermissionsPlugin.java:263)
            at com.platymuus.bukkit.permissions.PermissionsPlugin.calculateAttachmen
    t(PermissionsPlugin.java:237)
            at com.platymuus.bukkit.permissions.PermissionsPlugin.setLastWorld(Permi
    ssionsPlugin.java:168)
            at com.platymuus.bukkit.permissions.PermissionsPlugin.registerPlayer(Per
    missionsPlugin.java:146)
            at com.platymuus.bukkit.permissions.PlayerListener.onPlayerJoin(PlayerLi
    stener.java:22)
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:260)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:339)
            at net.minecraft.server.ServerConfigurationManager.c(ServerConfiguration
    Manager.java:129)
            at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:121)
            at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:39)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:94)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    16:21:08 [INFO] [MultiInv] Shared worlds loaded with no errors
    16:21:08 [INFO] New max size: 484
    16:21:08 [INFO] New max size: 784
    16:21:10 [WARNING] Can't keep up! Did the system time change, or is the server o
    verloaded?
    >

    And here is the config.yml:

    Code:
    users:
        Gocarts:
            permissions:
            groups:
            - admin
    groups:
        default:
            permissions:
                permissions.build: false
                multiverse.teleport.self: true
                commandbook.time: true
                commandbook.whereami: true
                commandbook.rules: true
                commandbook.clear: true
                commandbook.msg: true
                commandbook.weather: true
            worlds:
                1:
                    worldedit.*: false
                    commandbook.call: true
                1_nether:
                    worldedit.*: false
                    commandbook.call: true
                2:
                    worldedit.*: true
                    commandbook.teleport: true
                2_nether:
                    worldedit.*: true
                    commandbook.teleport: true
        admin:
            permissions:
                permissions.*: true
                commandbook.kick: true
                commandbook.bans.ban: true
                commandbook.bans.unban: true
                commandbook.bans.isbanned: true
                commandbook.bans.load: true
                commandbook.bans.save: true
                commandbook.mute: true
                multiverse.core.create: true
            inheritance:
            - default
    messages:
        build: '&cYou do not have permission to build here.'
    
    From what I see it's because of the error "16:21:07 [SEVERE] Could not pass event PLAYER_JOIN to PermissionsBukkit" making it so that each player doesn't have any permissions set to them.
     
  10. Offline

    TerryJ

    Yaar! Back to the top with ye!
     
  11. Offline

    Celeixen

    ?!? Did u fix it?
     
  12. Offline

    TerryJ

    Nope, was just bumping my thread. Still having the same problem. Been working on it but no luck.
     
  13. Offline

    TerryJ

    Let's do this again, can anyone help?
     
  14. Offline

    Rwembee

    1. Update permsbukkit and bridge.
    or
    2. Use PEX or bPermissions
     
  15. Offline

    TerryJ

    Updated Perms and bridge, nothing.
    Gonna try those two now. Hopefully they work.
     
  16. Offline

    Cody Pawlowski

    How did it go? I've been trying literally all day to fix this and it's annoying the hell out of me. I have close to 140 plugins and going though all of them to see what the problem is is really stressful.
     
  17. Offline

    TerryJ

    It seemed to be a problem with PermissionsBukkit. So I switched to PermissionsEX and it works perfectly. The only problem is I haven't figured out how to set permissions for a specific world only. Other than that, it's all working fine.
     
  18. Offline

    Cody Pawlowski

    I actually fixed it. It was caused by the Death Recover plugin
     
  19. Offline

    TerryJ

    That's good. So you weren't having the same problem as me? Strange.
     
  20. Offline

    EpiphoneKL

    You forgot to set the permissions as - '*' to give you access to all of your commands.
     
  21. Offline

    Rwembee

    pex group <group> add <permission> [world]
    https://github.com/t3hk0d3/PermissionsEx/wiki/Commands#wiki-world-management
     
Thread Status:
Not open for further replies.

Share This Page