Inactive [ADMN/DEV] Permissions 3.1.6 - The Plugin of Tomorrow [935]

Discussion in 'Inactive/Unsupported Plugins' started by rcjrrjcr, May 24, 2011.

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

    rcjrrjcr

    Permissions 3.1.6 (Yeti)

    Download:
    Latest Stable (3.1.6) : Full Zip | Main Jar Only | SQL Interface Jar Only

    Previous Versions:
    3.1.5 (JAR|SQL) | 3.1.4 (JAR|SQL) | 3.1.3 (JAR|SQL) | 3.1.2 (JAR|SQL) | 3.1.1 (JAR) | 3.1 (JAR) | More older versions


    COMMAND RESTRUCTURING
    Feel free to comment and give suggestions.


    DO NOT USE GLOBAL CONFIGS FOR NOW. THE GLOBAL CONFIG IS MEANT TO SUPPLEMENT WORLD-SPECIFIC CONFIGS, NOT THE OTHER WAY ROUND. SEE https://github.com/TheYeti/Permissions/wiki/Global-vs-World .I WILL WRITE A PROPER TUTORIAL ON HOW TO USE THE GLOBAL CONFIGS SOON.

    TODO:
    • Revamp commands
    Known plugins that cause IllegalAccessError(s):

    • Help (not fixed yet)
    Temp Fix for IAEs (open)




    1. Open Help's JAR with 7zip.
    2. Find MANIFEST.MF (it can be in the root folder or in the META-INF folder, or both).
    3. Open the MANIFEST.MF file in a text editor
    4. Look for a line that starts with "Class-Path:".
    5. Delete "Permissions.jar" from that line.
    6. Save the manifest.
    7. 7zip will prompt you to save changes back into the archive. Accept.
    8. Restart server.





    Plugin Authors: How to hook into Permissions

    Due to @TheYeti being busy in RL for now, I have created a new thread for Permissions 3.x. TheYeti is still part of the Permissions team.

    Permissions... Reborn.
    This is a continuation of the work that was originally done by Nijikokun. All original credit goes to them as without their work this plugin would not have been possible. This plugin does not provide any commands or additional functionality beyond what is described in this post. That means that you need another plugin to provide colored names, chat prefixes, and op commands such as /give and /time.​

    The Permissions Team

    The team consists of myself @rcjrrjcr and @TheYeti currently with contributions from @Nijikokun as well on occasion. There are also several other members of the community who frequently assist with providing code changes, bug fixes, patches, support, feedback, and beta testing. Special thanks to @flames and the Dynmap & Wormhole X-Treme teams for the hosting of Permissions on their Jenkins server.

    What's new in 3.x?

    Taken from the GitHub page:
    1. In-game commands. For a long time, users have been pestering, nagging, demanding and/or screaming for an way to manage Permissions via commands. Now, in 3.0, in-game commands are available to manage permissions and groups.
    2. SQL storage. This allows web interfaces to manage Permissions by updating the SQL database Permissions uses.
    3. Promotion/demotion tracks. With a simple command, users can be promoted/demoted along a preconfigured track, allowing RP servers with ranks to promote the player along a class track and other possibilities.
    4. Multigroup.
    5. Weightage. Plugins are able to compare users via their weight, which is inherited from their groups. For example, SlapPlugin can check if Player A is higher-weighted than Player B when A tries to slap B (Not IRL, obviously).
    6. Improved world mirroring. Config files are now split into a group file and a user file. Also, by editing storageconfig.yml, you can configure the mirroring of entire worlds, or just its users/groups. You also do not have to create files for worlds that mirror another world. Also, two different worlds can use different storage types, like YAML and SQL.
    7. Global permissions. Instead of having to resort to cross-world group inheritance, now all worlds inherit groups and users from the global permissions file. Also, the inherited groups/users can be overridden via editing the specific world's file.
    Upgrading from 2.x to 3.x







    I have written a guide on GitHub. This demonstrates how to convert 2.x-style configs to 3.0. The YAML-to-SQL converter are still in testing, but it can be downloaded from here. It's written in Perl. @Zgred has created a web version of the script located here. @omgneeq is working on an Web UI for SQL databases (Sorry about the previous statement that he was making a converter.)​


    Install (open)
    For the admins

    In case you missed the link above, the Setup Guide on GitHub will help you quite a bit

    Samkio has updated his tutorial for P3:


    First thing that you will need to do is download the plugin. Place it in your plugins/ folder and unzip it. This should create the folder Permissions and a Permissions.jar file in your plugins folder. Next, go into Permissions/ and create a folder named the same as your world. So if your world name from server.properties is Foo you will need to create the folder plugins/Permissions/Foo. You MUST rename it to whatever your world's name is or it will not work.

    Note, if you have your server maps all saved into a single directory then the initial setup will be somewhat different. Say your maps are arranged in the main directory like so: bukkit/mapfolder/world1, bukkit/mapfolder/world2, etc. Then inside of the plugin/Permissions directory you will need to create a folder called mapfolder and inside of that put the directories containing users.yml and groups.yml in there.

    Next, you will need to go in and add yourself to the users, just replace the user that is in there with your name. Make any other modifications that you need to. While making modifications make sure that you do NOT use tabs. These will break the YAML format and cause issues. Instead, each indent should be four spaces. If you want people who aren't in the Admin group to be able to reload the permissions plugin you need to give them 'permissions.reload' permissions within the config file.

    Permissions gives server admins great control, mostly in-game reloading. More info about commands can be found here.


    FAQ (open)

    [FAQ]

    [Q] What is with the version numbers? I can't keep up, it seems like every time I look there is a new version!
    [A] I use the GNU versioning system for my version numbers. So what this means is the version number should be read as Major.Minor.Revision. So for version 2.5.2 this would mean it is the 2nd Major version, the 5th Minor release in this version, and the 2nd revision. I tend to release bug fixes and anything that doesn't add functionality or will not break things as revisions. So generally you should be safe with just watching the major & minor numbers and only getting the revision if it fixes a bug specific to you. Technically 2.5.2 should have been released as 2.6 as it did add functionality, but this was below even a minor change so I released it as a revision.

    [Q] I am getting an error that it can't pass BLOCK_PLACED or BLOCK _BREAK events to Permissions. Fix it!
    [A] That's not a question. The reason why it can't place these is probably because the syntax of your Permissions file is all whacked out, or it is a different world and you don't have a config file for that world.

    [Q] What am I suppose to name the config file?
    [A] You need to name it the same as your world. So if you look in server.properties at "level-name" you will see a world name there. Rename your config file to the same thing as that. Make sure you keep the .yml extension at the end.

    [Q] Permissions are broken. Why can no one use commands? Why am I not an admin?
    [A] First off, make sure that your formatting is correct. Look at the format that the default config file uses. Yours should look like that. Do NOT use tabs. Use 4 spaces (IE. " " <-- Four of those things.). Also, whichever group you give the permission '*' to, do not have that group inherit permissions from anyone else. That is called overloading and it will break things. Also, this.


    [Q] Which one am I suppose to download and unzip to install this?
    [A] Download the main package, not the JAR only. Unzip the ZIP file. The JAR only downloads are simply there for people who are UPGRADING and do not need the default config file.

    [Q] I have done all of this and this doesn't work! I'm going back to GroupManager!
    [A] Well, there is probably the problem. Make sure that you delete EssentialsGroupManager.jar and EssentialsGroupBridge.jar as these don't play well with Permissions and will cause headache.

    [Q] When are you going to add <blah> <feature/command> into this already? You suck! Do what I want NAU PL0X!
    [A] Feature requests should be posted on the GitHub tracker. Stupid suggestions like adding teleportation functionality and other less ludicrous stuff will be rejected.



    Changelog
    • 3.1.6
      • Major fixes.
      • Simplify tracks
    Changelog (open)





    • 3.1.5
      • Fix several minor bugs.
      • Autoconvert 2.x/GM format (only works if you split them into groups.yml and users.yml, but leave the rest untouched)
    • 3.1.4
      • Fix YAML locking bugs.
    • 3.1.3
      • Fix another SQL data and inheritance issue.
    • 3.1.2
      • Fix SQL data issues.
      • Added user/group name autocomplete
      • Separated SQL interface into separate plugin
    • 3.1.1
      • Fix prefix/suffix issues.
      • Added ON UPDATE CASCADE to the SQL foreign [/SIZE]
    • 3.1
      • Tons of fixes.
    • 3.0.6
      • Fix SQLite issues due to misimplementation of methods.
    • 3.0.5
      • Fix cache-related NPEs
      • Fixed quoted worlds (thanks again @Jeyge !)
    • 3.0.4
      • Fix LinkageError caused by ServiceManager not unloading the PermissionHandler class.
      • Added cache
      • Fix index not being incremented when promoting (thanks @Jeyge !)
    • 3.0.3
      • Fixed another getGroup bug.
    • 3.0.2
      • Fixed getGroup bug.
    • 3.0.1
      • Fixed some NPE bugs.
    • 3.0
      • Total overhaul of Permissions. Adds many new features (see What's new in 3.0?).
    • 2.7.4
      • Added overload of has() and permissions() for plugin devs
    • 2.7.3
      • Fixed negate node add/remove bug.
    • 2.7.2
      • Fix for small subtle bug introduced in last minor version.
    • 2.7.1
      • Commit by DThielke to fix several bugs with programmatic modifications of user permissions.
    • 2.7
      • Further commits by rcjrrjcr
        • Removed negatedNode checks
        • Temp fix for NULL issue
        • WorldConfigurationModification to save only modified configs
        • Fix for cache problems








    Credits (open)


    TheYeti:
    Nijikokun - Without their original work this plugin would not be possible.​
    All of the members of the community that regularly provide support in this thread for Permissions​
    Rigby, Kainzo, DThielke, GoMySQL, sk89q, RightLegRed - For hanging out with me in IRC, tons of testing, and pushing me to improve on the code constantly and make changes to make this plugin constantly better and better, and in general being entertaining.​
    Everyone else on here and in IRC who provides support, feedback, assistance, plugins that have continued to support and integrate this, and in general makes my life a bit easier, THANK YOU!​

    rcjrrjcr:
    I would like to thank Joy , jamesg and omgneeq for staying in #permissions for long periods of time to test out 3.0, and help me find many coding mistakes I made, patiently waiting for the next build while I fixed the bugs. I appreciate SvenBrnn 's and GoMySQL(Geoff Winans on this forum) 's help that allow me to design and code the SQL interface, and the HeroCraft coding team for providing support and some priceless IRC quotes (Dgco). Also, I would like to thank Lycano for helping me in many different aspects. Last but not least, I would like to thank Nijikokun and TheYeti for developing P2, which was one of my core plugins when I was still a 14-year-old server admin that didn't understand Java, and was the base for 3.0. Without these people, 3.0 would never be possible.​


    If after reading through all of that you are still having issues do one of two things. If it is a provable bug, and you have things like screenshots or copies of startup, steps to reproduce, your craftbukkit build and the version this is running along with your config files then submit the bug on the issue tracker. If it is general help or support you are needing then post a reply to this thread and someone will try to help you.

    Old thread: Permissions v2.7.4
     
  2. Offline

    hellsome

    do i even need anything in my users.yml? what will it do?.... do i have to do this for every new member that joins my server? what would happen if i left it blank? would the promote/demote command work if i left users.yml blank?or in the users.yml does there have to be a world: thing or something to specify the world or does that not matter? also for the prefixes... i typed one in but when i go on to test it it doesnt come up with any prefix. just my name
     
  3. Offline

    obscurehero

    So, I could be wrong on this, but once you've installed the plugin it should auto-create a groups.yml and a users.yml for each world you have together in a folder in the directory permissions where you can also find the global files. If you don't have any of the default text, the default configuration can be found within the zip like I had described before.

    You DO need a users.yml for each world. However, it should auto-fill in new users and assign them a group automatically (only with the 3.1.6+) based on what you defined in that world's groups.yml as the default user group. Typically this is the "guest" user group. At this point, if you've defined a track, you can promote the user up the track. That is, a guest comes to your server, you decide you like him/her and you promote them up to the basic level, for example.
     
  4. Offline

    hellsome

    what happened was the first time i downloaded the jar file and put it in my server then restarted it it did automake the folders however i could not get the coding together and decided to restart all of it so i deleted all thos files then put the jar file back in and it didnt automake the folders
     
  5. Offline

    Qhran

    Ok, I have fixed the fact that I can't build, but now I face another problem, I can't use any commands, when I try to use like the 'time set 1' command or 'give <player> 5 2' command, then nothing happens and I should have any ability in the game because I am an admin in my config.yml file, anybody able to help me?
     
  6. Offline

    VALO

    ONCE AGAIN can i please use the permissions plugin in a plugin pack im making just respond to me somehow if its a yes or no, you didnt answer me last time i have the pack finished all i need is your permission i got essentials, exactspawns, and worldedits permission just please RESPOND!, i will give you full credit for your work
     
  7. Offline

    Tigerius

    does it work with 953? i have had some problem, says it isnt up to date. and also makes some other plugins(LWC,Scavenger,Citizen) say that they arent up to date. And i know that they are, because they work when permission isnt enabled
     
  8. Offline

    johndom

    Can some1 please help me with this I have downloaded this and have made my own permissions ( they are fine on YAML parser) and also on my server, BUT whenever I make a new rank and give them certain permissions such as Donator is able to use God mode or something, they cannot use it or even build and build= true

    Here are the permissions for Groups, I will actually LOVE whoever helps fix this PLEASE!!!

    groups:
    Owner:
    default: false
    permissions:
    - '*'
    inheritance: [Admins]
    info:
    prefix: '&4[Owner]&f'
    build: true
    suffix: '&f'
    Builder:
    default: false
    permissions:
    - essentials.balance
    - essentials.home
    - essentials.list
    - essentials.msg
    - essentials.pay
    - essentials.protect
    - essentials.sethome
    - essentials.spawn
    - foo.bar
    - iConomyChestShop.shop.buy
    - iConomyChestShop.shop.create
    inheritance: []
    info:
    prefix: '&2[Builder]&f'
    build: true
    suffix: '&f'
    Admins:
    default: false
    permissions:
    - '*'
    inheritance: [Owner]
    info:
    prefix: '&c[Admin]&f'
    build: true
    suffix: '&f'
    Donator:
    default: false
    permissions:
    - essentials.heal
    - essentials.time
    - essentials.sell
    - essentials.msg
    - essentials.weather
    - essentials.spawn
    - essentials.home
    - essentials.back.ondeath
    - essentials.tp
    - essentials.tphere
    - essentials.balance
    - iConomyChestShop.shop.buy
    - iConomyChestShop.shop.create
    inheritance: [Donator]
    info:
    prefix: '&6[Donator]&f'
    build: true
    suffix: '&f'
    Moderator:
    default: false
    permissions:
    - essentials.give
    - essentials.give.item-<itemid>
    - essentials.give.item-all
    - essentials.god
    - essentials.heal
    - essentials.time
    - essentials.sell
    - essentials.ignore
    - essentials.msg
    - essentials.rules
    - essentials.clearinventory
    - essentials.essentials
    - essentials.kick
    - essentials.unban
    - essentials.weather
    - essentials.spawn
    - essentials.home
    - essentials.ban
    - essentials.back.ondeath
    - essentials.tp
    - essentials.tphere
    - essentials.setwarp
    - essentials.warp.list
    - essentials.balance
    - iConomyChestShop.shop.buy
    - iConomyChestShop.shop.create
    inheritance: [Moderator]
    info:
    prefix: '&1[Moderator]&f'
    build: true
    suffix: '&f'
    Newbie:
    default: false
    permissions:
    - essentials.list
    - essentials.spawn
    - foo.bar
    inheritance: []
    info:
    prefix: '&e[Newbie]&f'
    build: true
    suffix: '&f'
     
  9. Offline

    obscurehero

    So, I totally broke my bukkit server yesterday using CommandHelper to pass a command to permissions. I was trying to make an intelligent alias so that a user only need type '/promote <player>' but I forgot that the functions I was calling only returned the group and world of a player if the player was connected...

    Needless to say, permissions threw TONS of errors in the console and I had to stop the server. After restarting, none of my plugins would load and the server was basically DOA. I returned to an older backup.

    If I can replicate the issue, I'll try to post the server log.
     
  10. Offline

    Pikman46

    I cannot get prefixes and suffixes to work correctly.. I had it working with the colors plugin before but that messed with PwnCraft. Is there something I'm doing wrong to make permissions not be able to do prefixes?

    also, can I have colors with permissions or would I need to get a plugin for colors?

    Groups:
    Code:
    groups:
        Guest:
            default: true
            info:
                prefix: '[Guest]'
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'hookshot.use'
        Builder:
            default: false
            info:
                prefix: '[Builder]'
                suffix: ''
                build: true
            inheritance:
                - Guest
            permissions:
                - 'choptree.chop'
        Moderator:
            default: false
            info:
                prefix: '[Moderator]'
                suffix: ''
                build: true
            inheritance:
                - Builder
            permissions:
                - 'modplugin.ban'
                - 'modplugin.kick'
                - 'modplugin.unban'
                - 'giveto.others'
                - 'giveto.self'
        Admins:
            default: false
            info:
                prefix: '[Admin]'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    Users:
    Code:
    users:
        Pikman46:
            info:
                prefix: '[Admin]'
            groups:
            - Admins
        milperdoodle:
            groups:
            - Admins
            info:
                prefix: '[Admin]'
        jimmybob1997:
            groups:
            - Moderator
            info:
                prefix: '[Moderator]'
        gameboyx23:
            groups:
            - Moderator
            info:
                prefix: '[Moderator]'
        Soren567:
            groups:
            - Builder
            info:
                prefix: '[Builder]'
                permissions: -giveto.others
                Permissions: -giveto.self
        kikiwannabanana:
            groups:
            - Builder
            info:
                prefix: '[Builder]'
                permissions: -giveto.others
                Permissions: -giveto.self
        jameshelton:
            groups:
            - Builder
            info:
                prefix: '[Builder]'
        xionxvi:
            groups:
            - Builder
            info:
                prefix: '[Builder]'
        lee1302:
            groups:
            - Builder
            info:
                prefix: '[Builder]'
        Herpina:
            info:
                prefix: '&4[~Alice~]&f'
                permissions:
            groups:
            - Member
        Derpina:
            groups:
            - Member
        llamapants:
            permissions:
            groups:
            - Guest
    
     
  11. Offline

    XRayted

    Is there a way that you can run Permissions and that it will depend only on "ops.txt" and "admins.txt" ? We have a, lets say, private-private dedicated server. Some plugins depends on Permissions plus the users/groups file.

    Our whitelist is tight and just with 20 people on it . Just 4 admins and the rest are free to do what they want (when the rules are clear for them). I struggle so bad the last couple of days(nearly a week) with my local-server and some (other) plugins are just so cool, but Permissions is a requirement.

    I dearly hope that it is possible.
     
  12. Offline

    obscurehero

    If you trust them with all the commands of each plugin you can define a default user group that anyone on your whitelist will be on. Give them permissions to each plugin very easily like this:

    -'plugin-A.*'
    -'plugin-B.*'
    etc.

    obviously, replace plugin-A with the name of your plugin of choice, like essentials, for example. In this way you're giving complete access to that plugin indiscriminately, this will include any admin functions, so this is certainly the quicker and lazier way. If you trust everyone, go for it.

    Ultimately, you can just give a group -'*' permissions and they have access to everything but op commands. Your choice.

    Try a plugin like HeroChat or iChat. This will give you colors. Permissions clearly states it doesn't do this natively. You'll also need to add color flags to your prefixes in conjunction with said plugins.

    Your users and groups look...ok. However, I would clean up some of your formatting.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Sep 9, 2018
  13. Offline

    Pikman46

    my only problem with using a plugin is that PwnCraft doesn't recognize colored names or prefixes and won't be able to save your data =/

    unless this was fixed recently..
     
  14. Offline

    XRayted

    obscurehero, Thank you so much and your quick answer :)
    It's not that I am lazy, but the admin/ops system is vanilla on our server. We are running 25+ game servers at >XI< and just maintenance takes so much time.

    For now, I like to ask what the best way is to know/find the line of the plugins to add.
    For example the plugin-A. ?
     
  15. Offline

    Techykid3

    How do I promote someone in another world, from a different world? Like lets say if a guest was in a survival world, and I wanted to promote them from the creative world, how would I do this?
     
  16. Offline

    XRayted

    I believe it is: /pr <username> promote <groupname> <groupworld>
    Or else @ https://github.com/TheYeti/Permissions/wiki/Chat-Commands
     
  17. Offline

    obscurehero

    Sure. I didn't mean anything by 'lazy', just that its the easiest. As for what the name of it is, its usually in that specific plugin's documentation, but otherwise it should just be the name of the plugin.

    I have no idea what PwnCraft supports, so I can't help you there. Sorry!
     
  18. Offline

    XRayted

    I can't break my local server, so I will just test it and abuse myself in it, lol. So much to learn.
    Thanks again for your time ! Ps: I won't give up,....yet ;) I am just an Idiot(avatar).
     
  19. Offline

    Tusing

    Hey guys, I'm having a problem trying to promote people. Here is the error I get:

    Show Spoiler

    Code:
    12:07:49 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'pr' in plugin Permissions v3.1.6
    	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    	at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
    	at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:711)
    	at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
    	at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    	at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
    	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)
    Caused by: java.lang.NullPointerException
    	at java.util.HashSet.<init>(HashSet.java:116)
    	at com.nijiko.data.YamlGroupStorage.getTracks(YamlGroupStorage.java:284)
    	at com.nijiko.permissions.PermissionWorld.getTracks(PermissionWorld.java:168)
    	at com.nijiko.permissions.ModularControl.getTracks(ModularControl.java:532)
    	at com.nijikokun.bukkit.Permissions.Permissions.onCommand(Permissions.java:731)
    	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    	... 12 more
    


    And here is my Groups config:
    Show Spoiler

    Code:
    plugin:
        permissions:
            system: default
    groups:
        Spectator:
            default: true
            info:
                prefix: null
                suffix: null
                build: false
            inheritance: null
            permissions:
            - essentails.list
            - commandbook.debug.*
        Default:
            default: false
            info:
                prefix: null
                suffix: null
                build: true
            inheritance: null
            permissions:
            - essentials.home
            - essentials.sethome
            - essentials.tp.*
            - lwc.protect
            - essentials.list
            - essentials.help
            - essentials.mail
            - essentials.mail.send
            - essentials.msg
            - essentials.kit.*
            - essentials.jump
            - flashlight.normal
            - essentials.spawn
            - essentials.motd
            - essentials.portal
            - essentials.world
            - mywarp.warp.sign.warp
            - mywarp.warp.*
            - tplus.tp.*
            - iConomyChestShop.shop.buy
            - iConomyChestShop.shop.sell
            - iConomy.access
            - iConomy.payment
            - iConomy.admin.account.create
            - tpp.request
            - tpp.mod.take
            - tpp.jump.*
            - myhome.home.basic.*
            - lwc.protect.*
            - lwc.protect
            - craftbook.mech.*
            - craftbook.mech.cauldron
            - commandbook.debug.*
            - commandbook.teleport
            - war.player
        Founder:
            default: false
            info:
                prefix: '&8'
                suffix: '&f'
                build: true
            inheritance:
            - Default
            permissions: null
        Trusted:
            default: false
            info:
                prefix: '&8'
                suffix: '&f'
                build: true
            inheritance:
            - Default
            permissions:
            - essentials.heal
            - essentials.portal
            - essentials.world
            - mywarp.warp
            - worldedit.superpickaxe
            - magiccarpet.*
        Admins:
            default: false
            info:
                prefix: '&b'
                suffix: '&f'
                build: true
            inheritance:
            - Trusted
            permissions:
            - '*'
            - flashlight.*
            - essentials.*
            - mc.*
            - essentials.portal
            - mywarp.*
            - magiccarpet.mc
            - griefalertr.view
            - AdminChat.use
        Sniper:
            default: false
            info:
                prefix: '&b'
                suffix: '&f'
                build: true
            inheritance:
            - Trusted
            permissions:
            - '*'
            - flashlight.*
            - essentials.*
            - mc.*
            - essentials.portal
            - mywarp.*
            - magiccarpet.mc
            - griefalertr.view
            - AdminChat.use
        Superbuilder:
            default: false
            info:
                prefix: '&c'
                suffix: '&f'
                build: true
            inheritance:
            - Trusted
            permissions:
            - flashlight.*
            - essentials.portal
            - '*'
            - essentials.*
            - bb.admin.*
            - lwc.admin.
            - essentials.jail
            - mywarp.*
            - magiccarpet.mc
            - griefalertr.ignore
        Donator$$$:
            default: false
            info:
                prefix: '&e'
                suffix: '&f'
                build: true
            inheritance:
            - Admins
            permissions:
            - flashlight.*
            - essentials.portal
            - '*'
            - essentials.*
            - bb.admin.*
            - lwc.admin.
            - essentials.jail
            - mywarp.*
            - magiccarpet.mc
            - griefalertr.ignore
        Donator$$$$$:
            default: false
            info:
                prefix: '&e'
                suffix: '&f'
                build: true
            inheritance:
            - Admins
            permissions:
            - flashlight.*
            - essentials.portal
            - '*'
            - essentials.*
            - bb.admin.*
            - lwc.admin.
            - essentials.jail
            - mywarp.*
            - magiccarpet.mc
            - griefalertr.ignore
        Owner:
            default: false
            info:
                prefix: '&5'
                suffix: '&a'
                build: true
            inheritance:
            - Admins
            permissions:
            - '*'
            - flashlight.*
            - essentials.*
            - essentials.jail
            - mywarp.*
            - magiccarpet.mc
            - magiccarpet.*
            - vanish.*
            - AdminChat.modify
    tracks: track
        trackname:
            - Spectator
            - Default
            - Founder
            - Trusted
            - Admins
            - Superbuilder
            - Donator$$$
            - Donator$$$$
            - Owner
    


    Someone please, please help.

    EDIT: promote with the promote command
     
  20. Offline

    obscurehero

    Re-written to fix formatting issues. I took out the '*' as the rest of your permissions are pointless if you're just going to give groups 5-9 every permissions possible. Also, I wouldn't run essentials AND commandbook. I think they conflict with one another.
    Show Spoiler

    Code:
    plugin:
        permissions:
            system: default
    groups:
        Spectator:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
                - essentails.list
                - commandbook.debug.*
        Default:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Spectator
            permissions:
                - essentials.home
                - essentials.sethome
                - essentials.tp.*
                - lwc.protect
                - essentials.help
                - essentials.mail
                - essentials.mail.send
                - essentials.msg
                - essentials.kit.*
                - essentials.jump
                - flashlight.normal
                - essentials.spawn
                - essentials.motd
                - essentials.portal
                - essentials.world
                - mywarp.warp.sign.warp
                - mywarp.warp.*
                - tplus.tp.*
                - iConomyChestShop.shop.buy
                - iConomyChestShop.shop.sell
                - iConomy.access
                - iConomy.payment
                - tpp.request
                - tpp.mod.take
                - tpp.jump.*
                - myhome.home.basic.*
                - craftbook.mech.*
                - commandbook.debug.*
                - commandbook.teleport
                - war.player
        Founder:
            default: false
            info:
                prefix: '&8'
                suffix: '&f'
                build: true
            inheritance:
                - Default
            permissions:
        Trusted:
            default: false
            info:
                prefix: '&8'
                suffix: '&f'
                build: true
            inheritance:
                - Default
            permissions:
                - essentials.heal
                - essentials.portal
                - essentials.world
                - mywarp.warp
                - worldedit.superpickaxe
                - magiccarpet.*
        Admins:
            default: false
            info:
                prefix: '&b'
                suffix: '&f'
                build: true
            inheritance:
                - Trusted
            permissions:
                - flashlight.*
                - essentials.*
                - mc.*
                - mywarp.*
                - griefalertr.view
                - AdminChat.use
        Sniper:
            default: false
            info:
                prefix: '&b'
                suffix: '&f'
                build: true
            inheritance:
                - Admins
            permissions:
    tracks:
        trackname:
            - Spectator
            - Default
            - Founder
            - Trusted
            - Admins
            - Superbuilder
            - Donator$$$
            - Donator$$$$
            - Owner
    

    OK, so I stopped at Sniper. If you can see the changes I've made continue on for the rest of them. I got tired of making the same group with exactly the same permissions.
     
  21. Offline

    johndom

    Can some1 please help me, I have fixed the permissions and everything but every time I try setting someone to a specific group it comes up "this group does not exist" I have checked it over and over and there are no errors ( I hope) I have even put it on yaml parser and it seems fine, but the only ranks I can promote to is owner and admin, nothing else =[

    Can some1 please help me, I have given certain commands to groups and yet they cant build or even use the commands, and when I use /pr "name" parents add "group" it comes up "this group does not exist" any ideas any one?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Sep 9, 2018
  22. Offline

    Phanku


    I had this same problem but I seemed to fix it by renaming the Permissions.jar file to 0Permissions.jar. This seems to cause the permissions jar to load first and then everything seemed to work for us.

    I am posting this at the time of us figuring this out. I have no idea if it actually works but seems to for us.

    Let me know if any one else finds this is the actual fix.
     
  23. Offline

    Tusing

    Thanks! I cleaned up my permissions a bit, but now I face another problem.
    When I type "/pr tusing demote t:worldtrack" I get
    Code:
    14:07:27 [INFO] [Permissions] No world specified. Defaulting to default world.
    14:07:27 [INFO] [Permissions] Specified track does not exist.
    
    When I type "/pr tusing demote" I get the same thing! Even when I type "/pr tusing demote w:world t:worldtrack"!

    When I type "/pr tusing w:world t:track demote" I get the syntax error
    Show Spoiler
    Code:
    14:10:02 [INFO] [Permissions] Syntax: /permissions <target> (w:<world>) [promote|demote] (t:<track>) (<parent>) (w:<parentworld>)
    14:10:02 [INFO] /permissions (g:)<target> (w:<world>) [perms|parents] [list|add|remove] ...
    14:10:02 [INFO] /permissions (g:)<target> (w:<world>) info [get|set|remove] ...
    14:10:02 [INFO] /pr | Displays Permissions Info
    14:10:02 [INFO] /pr -reload | Reloads the default world
    14:10:02 [INFO] /pr -reload all | Reloads all worlds
    14:10:02 [INFO] /pr -reload [world] | Reloads [world]
    14:10:02 [INFO] /pr (g:)<target> (w:<targetworld>) (action) (actionparams) | Directs (action) on specified group/user.
    


    This is driving me crazy! Here are my permissions files:
    Show Spoiler

    users,yml
    Show Spoiler

    Code:
    users:
        tusing:
            permissions: []
            groups:
            - Owner
        impervious:
            permissions: []
            groups:
            - Admins
        kkyyllee11:
            permissions: []
            groups:
            - Founder
        PurpleCamel:
            permissions: []
            groups:
            - Admins
        waffleman508:
            permissions: []
            groups:
            - Trusted
        RazKenobi:
            permissions: []
            groups:
            - Admins
        CopperWolf7:
            permissions: []
            groups:
            - Sniper
        steve2000:
            permissions: []
            groups:
            - Trusted
        Mordrede:
            permissions: []
            groups:
            - Admins
        NozRecon:
            permissions: []
            groups:
            - Admins
        squeakycookie:
            permissions: []
            groups:
            - Trusted
        lee301:
            permissions: []
            groups:
            - Trusted
        kityman:
            permissions: []
            groups:
            - Admins
        sparklezz:
            permissions: []
            groups:
            - Trusted
        alvinator:
            permissions: []
            groups:
            - Trusted
        Madcardsmith:
            permissions: []
            groups:
            - Donator$$$
        GrimReaper999:
            permissions: []
            groups:
            - Trusted
        wanderbear:
            permissions: []
            groups:
            - Trusted
        golddog8:
            permissions: []
            groups:
            - Trusted
        kirbystar:
            permissions: []
            groups:
            - Trusted
        sch:
            groups:
            - Default
            permissions: []
        schockie:
            groups:
            - Spectator
            permissions: []
        garrisons:
            groups:
            - Default
            permissions: []
        raptor:
            groups:
            - Default
            permissions: []
        mickts:
            groups:
            - Trusted
            permissions: []
        garrisonk:
            groups:
            - Default
            permissions: []
        garrisonsk:
            groups:
            - Trusted
            permissions: []
        ThorSve33:
            groups:
            - Admins
            permissions: []
        Estevan12:
            groups:
            - Default
            permissions: []
        Armorinarmor:
            groups:
            - Default
            permissions: []
        Hellriders101:
            groups:
            - Default
            permissions: []
        Shadowdrag0n:
            groups:
            - Default
            permissions: []
        estroidodon:
            groups:
            - Default
            permissions: []
        alvin:
            groups:
            - Default
            permissions: []
        alv:
            groups:
            - Default
            permissions: []
        saint_valentine:
            groups:
            - Superbuilder
            permissions: []
        FFGURU:
            groups:
            - Founder
            permissions: []
        pumpalolo:
            groups:
            - Donator$$$$$
            permissions: []
        EMC12349:
            groups:
            - Default
            permissions: []
        ghost_rider115:
            groups:
            - Default
            permissions: []
        e62fire:
            groups:
            - Default
            permissions: []
        DarkLordDL:
            groups:
            - Default
            permissions: []
        JohnnyL:
            groups:
            - Default
            permissions: []
        dontpushit:
            groups:
            - Default
            permissions: []
        Jvossy:
            groups:
            - Default
            permissions: []
        wheatthins:
            groups:
            - Default
            permissions: []
        0nions:
            groups:
            - Default
            permissions: []
        soccerskyman:
            groups:
            - Default
            permissions: []
    


    And here is my groups.yml:
    Show Spoiler

    Code:
    plugin:
        permissions:
            system: default
    groups:
        Spectator:
            default: true
            info:
                prefix: null
                suffix: null
                build: false
            inheritance: null
            permissions:
            - essentails.list
            - commandbook.debug.*
        Default:
            default: false
            info:
                prefix: null
                suffix: null
                build: true
            inheritance: null
            permissions:
            - essentials.home
            - essentials.sethome
            - essentials.tp.*
            - lwc.protect
            - essentials.list
            - essentials.help
            - essentials.mail
            - essentials.mail.send
            - essentials.msg
            - essentials.kit.*
            - essentials.jump
            - flashlight.normal
            - essentials.spawn
            - essentials.motd
            - essentials.portal
            - essentials.world
            - mywarp.warp.sign.warp
            - mywarp.warp.*
            - tplus.tp.*
            - iConomyChestShop.shop.buy
            - iConomyChestShop.shop.sell
            - iConomy.access
            - iConomy.payment
            - iConomy.admin.account.create
            - tpp.request
            - tpp.mod.take
            - tpp.jump.*
            - myhome.home.basic.*
            - lwc.protect.*
            - lwc.protect
            - craftbook.mech.cauldron
            - commandbook.debug.*
            - commandbook.teleport
            - war.player
        Founder:
            default: false
            info:
                prefix: '&8'
                suffix: '&f'
                build: true
            inheritance:
            - Default
            permissions: null
        Trusted:
            default: false
            info:
                prefix: '&8'
                suffix: '&f'
                build: true
            inheritance:
            - Default
            permissions:
            - essentials.heal
            - essentials.portal
            - essentials.world
            - mywarp.warp
            - worldedit.superpickaxe
            - magiccarpet.*
        Admins:
            default: false
            info:
                prefix: '&b'
                suffix: '&f'
                build: true
            inheritance:
            - Trusted
            permissions:
            - craftbook.*
            - commandbook.*
            - essentials.*
            - worldguard.*
            - mywarp.*
            - multiverse.*
            - iConomy.*
            - LWC.*
        Sniper:
            default: false
            info:
                prefix: '&b'
                suffix: '&9'
                build: true
            inheritance:
            - Admins
            permissions:
            - worldedit.*
        Superbuilder:
            default: false
            info:
                prefix: '&c'
                suffix: '&f'
                build: true
            inheritance:
            - Admins
            permissions:
        Donator$$$:
            default: false
            info:
                prefix: '&e'
                suffix: '&f'
                build: true
            inheritance:
            - Trusted
            permissions:
            - essentials.*
            - craftbook.*
            - commandbook.*
        Donator$$$$$:
            default: false
            info:
                prefix: '&e'
                suffix: '&f'
                build: true
            inheritance:
            - Donator$$$
            permissions:
        Owner:
            default: false
            info:
                prefix: '&5'
                suffix: '&a'
                build: true
            inheritance:
            - Sniper
            permissions:
            - '*'
    tracks:
        trackname: worldtrack
            - Spectator
            - Default
            - Founder
            - Trusted
            - Admins
            - Superbuilder
            - Donator$$$
            - Donator$$$$
            - Owner
    


    What the heck am I doing wrong? I'm going crazy!
     
  24. Offline

    kymotsujason

    My permissions keeps on disabling itself for no apparent reason.
    I didn't change anything, I only changed the groups.yml and users.yml.
    Here are my files:
    Code:
    groups:
        Regular:
            default: true
            info:
                prefix: '&e'
                suffix: '&e'
                build: true
            inheritance:
            permissions:
                - 'craftbook.mech.cauldron'
                - 'iConomy.access'
                - 'iConomy.list'
                - 'iConomy.payment'
                - 'iConomy.rank'
                - 'craftbook.mech.bridge'
                - 'lc.level.*
                - 'mcbans.vote'
                - 'commandbook.who'
                - 'commandbook.say.me'
                - 'commandbook.ping'
                - 'appleseed.plant.*'
                - 'lockette.user.create.*'
        Builder:
            default: false
            info:
                prefix: '&b'
                suffix: '&b'
                build: true
            inheritance:
                - Regular
            permissions:
                - 'logblock.me'
                - 'logblock.tool'
                - 'logblock.toolblock'
                - 'CreeperHeal.admin'
        Mod:
            default: false
            info:
                prefix: '&a'
                suffix: '&a'
                build: true
            inheritance:
                - Builder
            permissions:
                - 'mcbans.kick'
                - 'mcbans.mute.player'
                - 'mcbans.mod'
                - 'mcbans.unban'
                - 'mcbans.ban.temp'
                - 'mcbans.ban.local'
                - 'mcbans.ban.view'
                - 'mcbans.lookup'
                - 'spyer.spy'
                - 'lockette.admin.snoop'
        Admin:
            default: false
            info:
                prefix: '&c'
                suffix: '&c'
                build: true
            inheritance:
            permissions:
                - '*'
    Code:
    users:
        kymotsujason:
            groups:
                - Admin
            permissions:
        TheBlessed:
            groups:
                - Mod
            permissions:
        Fallout_12:
            groups:
                - Builder
            permissions:
        MedievalSoli:
            groups:
                - Mod
            permissions:
     
  25. Offline

    Tusing

    Renaming to aPermissions.jar works for me. Same concept.
     
  26. Offline

    Techwiz101

    Can someone help me I can't seem to get permissions to work now that it's updated.

    Here is my groups
    Code:
    plugin:
        permissions:
            system: default
    groups:
      guest:
        default: true
        info:
            prefix: '&2'
            suffix: '&f'
            build: false
        permissions:
      builder:
        default: false
        info:
            prefix: '&2'
            suffix: '&f'
            build: true
            inheritance:
                - guest
        permissions:
        - 'uQuest.CanQuest.*'
        - 'iConomy.access'
        - 'iConomy.list'
        - 'iConomy.payment'
        - 'iConomy.rank'
        - 'iConomyChestShop.shop.buy'
        - 'iConomyChestShop.shop.sell'
        - 'choptree.chop'
        VIP:
            default: false
            info:
            prefix: 'Vip: '
            suffix: ''
            build: true
            inheritance:
                - builder
        permissions:
        - 'iConomyChestShop.shop.create'
      admin:
        default: true
        info:
            prefix: '&b'
            suffix: '&f'
            build: true
        permissions:
          - '*'
    And my users
    Code:
    users:
        Techwiz101:
            permissions:
            groups:
                - builder
        KickAssStyle:
            permissions:
            groups:
                - builder
        itastelikecheese:
            permissions:
            groups:
                - builder
        xIHunterrr:
            permissions:
            groups:
                - admin
        Callum_Corpse:
            permissions:
            groups:
                - admin
        atmanemilio:
            permissions:
            groups:
                - builder
        Pineapple64:
            permissions:
            groups:
                - builder
        Trageks:
            permissions:
            groups:
                - guest
        KingRoy25:
            permissions:
            groups:
                - builder
        OpToCo:
            permissions:
            groups:
                - builder
        thekid132:
            permissions:
            groups:
                - guest
        Crocdude190:
            permissions:
            groups:
                - builder
        wombu:
            permissions:
            groups:
                - guest
        dvaughan8:
            permissions:
            groups:
                - guest
     
  27. Offline

    kymotsujason

    Funnily enough, that actually solved my problem lol.
     
  28. Offline

    Techykid3

  29. Offline

    XRayted

    /pr bob promote admin bobsworld

    "bob" and "bobsworld" are just examples. Try it.
     
  30. Offline

    Techykid3

    It bob already an admin?
     
  31. Offline

    XRayted

    I think this page would help you better. To use "globalGroups" and "globalUsers"

    https://github.com/TheYeti/Permissions/wiki/Global-vs-World

    Code:
    1.bob enters world1
    2.permissions looks for a user entry for bob
    3.world1/users.yml [none found]
    4.because all worlds inherit from the global world, permissions checks there
    5.globalUsers.yml [bob found with a group called builder]
    6.permissions reads globalGroups.yml and looks for a builder group [builder found]
    7.permissions adds *,builder to the parent's list for world1;bob (group memberships are referred to as parents)
    
    You mean as in text?
    I use Notepadd++ and/or PSPad to open all Notepad based files(txt, yml ,lua, .....)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Mar 26, 2019
Thread Status:
Not open for further replies.

Share This Page