[HELP] How to use Permissions 3.1.x [Bukkit plugin help/guide]

Discussion in 'Bukkit Help' started by RugRats, Aug 7, 2011.

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

    RugRats

  2. Offline

    niekkisjes

    I try to use permissions to, but i have got the problem i can't place a block, or cant place anything? Do you have this problem too?
     
  3. Offline

    RugRats

    Help Template
    CB:
    Permissions version:
    worldname: Just incase :)
    Groups and users file for that world.
    Error:
    Use PasteBin for your groups and users config.

    Follow the instructions please and then I may beable to help you. It may be another plugin or you have build: false because I do not have this problem :)
     
  4. Offline

    niekkisjes

    i get this error :

    Code:
     17:31:45 [SEVERE] java.lang.Exception: Error creating user Niek_NL in world world due to storage problems!
    17:31:45 [SEVERE]     at com.nijiko.permissions.ModularControl.safeGetUser(ModularControl.java:489)
    17:31:45 [SEVERE]     at com.nijiko.permissions.ModularControl.getUsr(ModularControl.java:569)
    17:31:45 [SEVERE]     at com.nijiko.permissions.ModularControl.getPrimaryGroup(ModularControl.java:388)
    17:31:45 [SEVERE]     at com.earth2me.essentials.Permissions3Handler.getGroup(Permissions3Handler.java:20)
    17:31:45 [SEVERE]     at com.earth2me.essentials.PlayerExtension.getGroup(PlayerExtension.java:56)
    17:31:45 [SEVERE]     at com.earth2me.essentials.PlayerExtension.canBuild(PlayerExtension.java:66)
    17:31:45 [SEVERE]     at com.earth2me.essentials.protect.EssentialsProtectPlayerListener.onPlayerInteract(EssentialsProtectPlayerListener.java:47)
    17:31:45 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.java:307)
    17:31:45 [SEVERE]     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    17:31:45 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    17:31:45 [SEVERE]     at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168)
    17:31:45 [SEVERE]     at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:210)
    17:31:45 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:553)
    17:31:45 [SEVERE]     at net.minecraft.server.Packet15Place.a(SourceFile:57)
    17:31:45 [SEVERE]     at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    17:31:45 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    17:31:45 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    17:31:45 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    17:31:45 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    17:31:45 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    17:31:45 [SEVERE] Caused by: while parsing a block mapping
     in "<reader>", line 1, column 1:
        users:
        ^
    expected <block end>, but found BlockMappingStart
     in "<reader>", line 16, column 4:
           Niek_NL:
           ^
    
    17:31:45 [SEVERE]     at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:576)
    17:31:45 [SEVERE]     at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
    17:31:45 [SEVERE]     at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
    17:31:45 [SEVERE]     at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:228)
    17:31:45 [SEVERE]     at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    17:31:45 [SEVERE]     at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
    17:31:45 [SEVERE]     at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    17:31:45 [SEVERE]     at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
    17:31:45 [SEVERE]     at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    17:31:45 [SEVERE]     at com.nijiko.configuration.NotNullConfiguration.load(NotNullConfiguration.java:52)
    17:31:45 [SEVERE]     at com.nijiko.data.YamlUserStorage.reload(YamlUserStorage.java:179)
    17:31:45 [SEVERE]     at com.nijiko.data.YamlUserStorage.<init>(YamlUserStorage.java:29)
    17:31:45 [SEVERE]     at com.nijiko.data.StorageFactory.getUserStorage(StorageFactory.java:92)
    17:31:45 [SEVERE]     at com.nijiko.permissions.ModularControl.forceLoadWorld(ModularControl.java:89)
    17:31:45 [SEVERE]     at com.nijiko.permissions.ModularControl.loadWorld(ModularControl.java:81)
    17:31:45 [SEVERE]     at com.nijiko.permissions.ModularControl.safeGetUser(ModularControl.java:487)
    17:31:45 [SEVERE]     ... 19 more
    17:31:45 [SEVERE] java.lang.Exception: Error creating user Niek_NL in world world due to storage problems!
    17:31:45 [SEVERE]     at com.nijiko.permissions.ModularControl.safeGetUser(ModularControl.java:489)
    17:31:45 [SEVERE]     at com.nijiko.permissions.ModularControl.getUsr(ModularControl.java:569)
    17:31:45 [SEVERE]     at com.nijiko.permissions.ModularControl.canUserBuild(ModularControl.java:404)
    17:31:45 [SEVERE]     at com.earth2me.essentials.Permissions3Handler.canBuild(Permissions3Handler.java:25)
    17:31:45 [SEVERE]     at com.earth2me.essentials.PlayerExtension.canBuild(PlayerExtension.java:66)
    17:31:45 [SEVERE]     at com.earth2me.essentials.protect.EssentialsProtectPlayerListener.onPlayerInteract(EssentialsProtectPlayerListener.java:47)
    17:31:45 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.java:307)
    17:31:45 [SEVERE]     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    17:31:45 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    17:31:45 [SEVERE]     at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168)
    17:31:45 [SEVERE]     at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:210)
    17:31:45 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:553)
    17:31:45 [SEVERE]     at net.minecraft.server.Packet15Place.a(SourceFile:57)
    17:31:45 [SEVERE]     at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    17:31:45 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    17:31:45 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    17:31:45 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    17:31:45 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    17:31:45 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    17:31:45 [SEVERE] Caused by: while parsing a block mapping
     in "<reader>", line 1, column 1:
        users:
        ^
    expected <block end>, but found BlockMappingStart
     in "<reader>", line 16, column 4:
           Niek_NL:
           ^
    
    17:31:45 [SEVERE]     at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:576)
    17:31:45 [SEVERE]     at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
    17:31:45 [SEVERE]     at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
    17:31:45 [SEVERE]     at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:228)
    17:31:45 [SEVERE]     at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    17:31:45 [SEVERE]     at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
    17:31:45 [SEVERE]     at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    17:31:45 [SEVERE]     at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
    17:31:45 [SEVERE]     at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    17:31:45 [SEVERE]     at com.nijiko.configuration.NotNullConfiguration.load(NotNullConfiguration.java:52)
    17:31:45 [SEVERE]     at com.nijiko.data.YamlUserStorage.reload(YamlUserStorage.java:179)
    17:31:45 [SEVERE]     at com.nijiko.data.YamlUserStorage.<init>(YamlUserStorage.java:29)
    17:31:45 [SEVERE]     at com.nijiko.data.StorageFactory.getUserStorage(StorageFactory.java:92)
    17:31:45 [SEVERE]     at com.nijiko.permissions.ModularControl.forceLoadWorld(ModularControl.java:89)
    17:31:45 [SEVERE]     at com.nijiko.permissions.ModularControl.loadWorld(ModularControl.java:81)
    17:31:45 [SEVERE]     at com.nijiko.permissions.ModularControl.safeGetUser(ModularControl.java:487)
    17:31:45 [SEVERE]     ... 18 more
    [code]

    and this are mine permissions groups and users :

    Code:
     groups:
        Default:
            default: true
            info:
                prefix: 
                suffix:
                build: false
            inheritance: 
            permissions:
        Admin:
            default: false
            info:
                prefix: 
                suffix:
                build: true
            inheritance: 
            permissions:
    [code]
    
    [code]
    users:
        Niek_NL:
            group:
        - Admin
            permissions:
                - 'essentials.set.spawn'
        player2:
            group: Default
            permissions:
                - 'essentials.spawn'
    [code]
    Pleasseee help mee plsss

    i have a file named: storageconfig.yml

    i dont have any text in it.

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

    RugRats

    Are you using 3.1.X if not upgrade. Lol and it's not supposed to be in storageconfig.yml it's supposed to be in plugins>permissions>worldname>groups
     
  6. Offline

    niekkisjes

    Yes, i have also : plugins>permissions>world>groups.yml and also plugins>permissions>world>users.yml

    users.yml:
    Code:
    users:
       Niek_NL:
            groups:
            - Admins
            permissions:
            - '*'
    
    groups.yml

    Code:
    
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'foo.bar'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'bar.foo'
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    

    and this is my permissions version:

    17:45:16 [INFO] [Permissions] version [3.1] (Yeti) loaded
     
  7. Offline

    RugRats

    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
            - 'foo.bar'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            - Default
            permissions:
            - 'bar.foo'
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
            - '*'
    and

    Code:
    users:
       Niek_NL:
            permissions:
            - '*'
            groups:
            - Admins
     
  8. Offline

    niekkisjes

    Wauw, i can place items now thanks a lot, what did you change :$ ? Now another question: How can i colour my name? And if i talk, there is no ' Admins ' for my name :(
     
  9. Offline

    RugRats

    Your welcome. Compare your old config to the one I gave you to see the changes :) Also prefix and suffix is where you change the color of your tag and name. Install the plugin iChat. So in '' for example put '&2' in prefix to make your tag green :) Colors can be found here and in suffix for example '&2' would make your name green :)
     
  10. Offline

    niekkisjes

    Thanks a lot man! But euhhh, i realy don't understand how iChat works, when i say something right now, and when i am a operator my name is red. If i am not a operator, in all groups (default, moderator, Admins) the chat is white. Can u give a code whit: Default groups tekst are white, moderatore are blue, Admins are red.
     
  11. Offline

    RugRats

    First off go in your iChat config and where it says message format put this
    Code:
    message-format: '[+prefix+group&f] +suffix+name&f: +message'
    Please install iChat and if your using essentials, essentials by default makes an OP's name red.

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

    niekkisjes

    okay i changed it and now ?

    Yeah sorry, i didn't instal ichat correctely, now i got it and changed what you said, what is the next stap $: ?

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

    RugRats

    Did you install iChat? and I can't change the color or tag of an Op. But for default if you want it white leave both '' blank and moderators blue for suffix put '&1' and for Admin put '&4'
    in the ichat config put this
    Code:
    message-format: '[+prefix+group&f] +suffix+name&f: +message'
    just paste it over the exisiting ichat message format
     
  14. Offline

    niekkisjes

    Ah, the colours doesn't bother me now anymore, to difficult for me. But thanks a lot u helped me! :)

    Oh, wat is the permissions code for cheating, and can i say: Default may onlye cheat 1, and 5 ?

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

    RugRats

    no?
     
  16. Offline

    niekkisjes

    Oh, thank you verry much i now understand permissions verry better! Thanks realy a lot! :) Thumbs up ! :)



    do you now some nice plugins father ? :D
     
  17. Offline

    RugRats

    Your very welcome! ;)

    do you now some nice plugins father ? :D
    What do you mean by this? :eek:
     
  18. Offline

    niekkisjes

    I am from netherlands, can't write english verry well srry. What i trying to ask is, if you know some plugins i should use, you would recommend :)
     
  19. Offline

    RugRats

    I would recommend essentials :) and bigbrother along with worldguard
     
  20. Offline

    niekkisjes

    i just can not get it!!!! This are the codes, i can not place or remove, but i do can cheat. And i am not an op. If i delete permission's i can't cheat. Please help

    user.yml
    Code:
    users:
        Niek_NL:
            permissions:
            groups:
    
    groups.yml
    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
            - '*'
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
            - '*'
    
     
  21. Offline

    RugRats

    Code:
    users:
        Niek_NL:
            permissions:
            groups:
            - Admin
    :)
     
  22. Offline

    niekkisjes

    okaj well, if i have mine tekst,
    en mine name is to group admin, i can't destroy

    i copy you tekst, what is exactly the same, i do can destroy it
    but if i do my name back to default, i stil can destroy it, it is bugged
     
  23. Offline

    RugRats

    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
            - '*'

    try now
     
  24. Offline

    cholo71796

    @RugRats
    In my opinion, your prefix/suffix system is kind of weird. I would just do:
    Code:
    groups:
        Default:
            default: true
            info:
                prefix: '[&4Unregistered&f] '
                suffix: ''
                build: true
            inheritance:
            permissions:
            - '*'
    Or something like that
     
  25. Offline

    RugRats

    I feel that using iChat is much better :) it's simple. Only if a mod can change the Title to how to use permissions 3.1.x with iChat :) Also the only reason why I like is it because it's too simple ;)

    Code:
    groups:
        Unregistered:
            default: true
            info:
                prefix: '&4'
                suffix: '&f'
                build: true
            inheritance:
            permissions:
            - '*'
     
  26. Offline

    cholo71796

    Well, I just mean that my way makes sense as it uses the prefix as a prefix and the suffix as a suffix. You can also use shorthand for group names and apply different titles, and change the title name without changing the Permissions entry for every player in that group.
     
  27. Offline

    RugRats

    Well this way is easy. I don't feel like going through that. I just think of the group name. Take a look at what colors I want and bam! Done. :) I don't like servers at all with MultiColored names for every person and like 2 tags. That is annoying. That is why I would recommend doing it my way.. It's very simple install ichat use the message format I provided and bam. You can experiment sure. But at least if you have no idea what to do you should try my tutorial :p
     
  28. Offline

    mcjason123

    my error is weird the plugins load but i can't build unless i oped them
     
  29. Offline

    RugRats

    You have your permissions set up wrong need help read the post :)
     
  30. Offline

    mcjason123

    Code:
    ##
    # Permissions has AntiBuild, which prevents a player from destroying/placing blocks.
    # To prevent a group of players then set the build: flag to false (build: false).
    # If you want a group to be able to build then set it to true.
    ##
    # Groups can inherit from other groups.
    #   To make a group inherit the permissions and info nodes from another
    #   group, simply place the groups name in the "inheritance:" like so:
    #
    #   Example:
    #       inheritance:
    #           - Default
    ##
    #   Wildcard Permission settings:
    #
    #       You can have wildcard nodes which encompass all nodes that match it.
    #       For example, the node "modplugin.*" matches "modplugin.kick", "modplugin.ban",
    #       "modplugin.settings.view", and so on.
    #
    ##
    #   A single asterisk means that this user/group has all permissions.
    #       - '*'
    ##
    #   Negated nodes are created by prefixing a normal node with "-".
    #   They prevent less specific wildcard nodes from matching the negated node.
    #   For example:
    #
    #   permissions:
    #       - 'foo.*'
    #       - '-foo.bar'
    #
    #   In this case, the user/group will have "foo.foo", "foo.foobar", and so on, but not "foo.bar".
    #
    ##
    #   prefix: and suffix: do not do anything on their own.  You need another outside plugin
    #   such as iChat or HeroChat in order for these to do anything.
    ##
    #
    #   For more info, visit https://github.com/TheYeti/Permissions/wiki/Guide-to-creating-YAML-configs
    #
    ##
    
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'heroes.classes.*'
                - 'factions.participate'
        Member:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'warpplugin.warp'
                - 'econplugin.basic.*'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Member
            permissions:
                - 'modplugin.ban'
                - 'modplugin.kick'
                - 'modplugin.unban'
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
     
Thread Status:
Not open for further replies.

Share This Page