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

    Dilios

    you need to make a guide reference to the SQL tables and explain what each field is for...
    The SQL method is absolutely over complicated
     
  3. Offline

    staticfactory

    There are quite a few people experiencing this same issue. I wonder if the inability to break/build is due to the "build: false" flag being inherited down the chain. The wiki states this:


    This -shouldn't- apply to the build flag, but it's possible that it currently is. I guess the easiest way to check would be to enable build rights for your default group.
     
  4. Offline

    oxguy3

    Blargh, what does this mean?!?!
    Code:
    2011-06-01 14:43:13 [SEVERE] tried to access class com.nijiko.permissions.ModularControl$1RefreshTask from class com.nijiko.permissions.ModularControl initializing Permissions v3.1 (Is it up to date?)
    java.lang.IllegalAccessError: tried to access class com.nijiko.permissions.ModularControl$1RefreshTask from class com.nijiko.permissions.ModularControl
        at com.nijiko.permissions.ModularControl.<init>(ModularControl.java:53)
        at com.nijikokun.bukkit.Permissions.Permissions.setupPermissions(Permissions.java:167)
        at com.nijikokun.bukkit.Permissions.Permissions.onLoad(Permissions.java:127)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:106)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-06-01 14:43:13 [INFO] [Permissions] version [3.1] (Yeti)  loaded
    Permissions still loaded after this and was detected by all the other plugins I have that use it, but all /permissions and /pr commands gave an internal error:
    Code:
    2011-06-01 14:51:42 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'pr' in plugin Permissions v3.1
    	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
    	at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:281)
    	at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:718)
    	at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:684)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:677)
    	at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    	at net.minecraft.server.NetworkManager.b(NetworkManager.java:217)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    	at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:401)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
    	at com.nijikokun.bukkit.Permissions.Permissions.onCommand(Permissions.java:205)
    	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    	... 12 more
    What is the problem here? I am running CraftBukkit b818. If I haven't provided enough info, please tell me what I need to provide. Thanks!
     
  5. Offline

    Fyrecrypts

    Does anyone know where in the Sql tables the build flag is stored? I'll manually change the damn thing, I don't really care about the in-game command, but I can't find out where this would be stored.
     
  6. Offline

    staticfactory

    This usually means that one of your plugins does not support Permissions 3+. You may need to exclude your plugins one by one to find the culprit.

    As per the wiki: https://github.com/TheYeti/Permissions/wiki/SQL-Database-Schema

    Code:
    CREATE TABLE IF NOT EXISTS PrGroups (
        gid INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
        groupname VARCHAR(32) NOT NULL,
        worldid  INTEGER NOT NULL,
        prefix VARCHAR(32) NOT NULL,
        suffix VARCHAR(32) NOT NULL,
        build TINYINT NOT NULL DEFAULT 0,
        weight INTEGER NOT NULL DEFAULT 0,
        CONSTRAINT GroupNameWorld UNIQUE (groupname, worldid),
        FOREIGN KEY(worldid) REFERENCES PrWorlds(worldid)
    );
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  7. Offline

    Fyrecrypts

    That schema is not correct for 3.1
     
  8. Offline

    xHaZarD

    So whenever I create a second line of permissions for any group it turns red in Notepad++. It also gives me errors when I start the server and disables permissions.
     
  9. Offline

    staticfactory

    Good to know.
     
  10. Offline

    Magnoman5

    I am having the same problems. Does anyone know what is going wrong. I really want to add guests to my server and to be able to promote them in-game. Manually adding about 70 members then adding more everytime I get a new member would be a pain.
     
  11. Offline

    Fyrecrypts

    This appears to be the 3.1 schema:

    Code:
    CREATE TABLE IF NOT EXISTS `PrData` (
      `dataid` int(11) NOT NULL AUTO_INCREMENT,
      `entryid` int(11) NOT NULL,
      `path` varchar(64) NOT NULL,
      `data` varchar(64) NOT NULL,
      PRIMARY KEY (`dataid`),
      UNIQUE KEY `PrDataUnique` (`entryid`,`path`)
    ) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
    
    -- --------------------------------------------------------
    
    --
    -- Table structure for table `PrEntries`
    --
    
    CREATE TABLE IF NOT EXISTS `PrEntries` (
      `entryid` int(11) NOT NULL AUTO_INCREMENT,
      `name` varchar(32) NOT NULL,
      `worldid` int(11) NOT NULL,
      `type` tinyint(4) NOT NULL,
      PRIMARY KEY (`entryid`),
      UNIQUE KEY `NameWorld` (`name`,`worldid`,`type`),
      KEY `pr_entryname_index` (`name`),
      KEY `worldid` (`worldid`)
    ) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;
    
    -- --------------------------------------------------------
    
    --
    -- Table structure for table `PrInheritance`
    --
    
    CREATE TABLE IF NOT EXISTS `PrInheritance` (
      `uinheritid` int(11) NOT NULL AUTO_INCREMENT,
      `childid` int(11) NOT NULL,
      `parentid` int(11) NOT NULL,
      PRIMARY KEY (`uinheritid`),
      UNIQUE KEY `PrParent` (`childid`,`parentid`),
      KEY `parentid` (`parentid`)
    ) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 ;
    
    -- --------------------------------------------------------
    
    --
    -- Table structure for table `PrPermissions`
    --
    
    CREATE TABLE IF NOT EXISTS `PrPermissions` (
      `permid` int(11) NOT NULL AUTO_INCREMENT,
      `permstring` varchar(64) NOT NULL,
      `entryid` int(11) NOT NULL,
      PRIMARY KEY (`permid`),
      UNIQUE KEY `PrEntryPerm` (`entryid`,`permstring`)
    ) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=65 ;
    
    -- --------------------------------------------------------
    
    --
    -- Table structure for table `PrTrackGroups`
    --
    
    CREATE TABLE IF NOT EXISTS `PrTrackGroups` (
      `trackgroupid` int(11) NOT NULL AUTO_INCREMENT,
      `trackid` int(11) NOT NULL,
      `gid` int(11) NOT NULL,
      `groupOrder` int(11) NOT NULL,
      PRIMARY KEY (`trackgroupid`),
      UNIQUE KEY `TrackGroupsUnique` (`trackid`,`gid`),
      KEY `gid` (`gid`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
    
    -- --------------------------------------------------------
    
    --
    -- Table structure for table `PrTracks`
    --
    
    CREATE TABLE IF NOT EXISTS `PrTracks` (
      `trackid` int(11) NOT NULL AUTO_INCREMENT,
      `trackname` varchar(64) NOT NULL,
      `worldid` int(11) NOT NULL,
      PRIMARY KEY (`trackid`),
      UNIQUE KEY `trackname` (`trackname`),
      UNIQUE KEY `TracksUnique` (`trackid`,`worldid`),
      KEY `worldid` (`worldid`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
    
    -- --------------------------------------------------------
    
    --
    -- Table structure for table `PrWorldBase`
    --
    
    CREATE TABLE IF NOT EXISTS `PrWorldBase` (
      `worldid` int(11) NOT NULL,
      `defaultid` int(11) DEFAULT NULL,
      KEY `worldid` (`worldid`),
      KEY `defaultid` (`defaultid`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    
    -- --------------------------------------------------------
    
    --
    -- Table structure for table `PrWorlds`
    --
    
    CREATE TABLE IF NOT EXISTS `PrWorlds` (
      `worldid` int(11) NOT NULL AUTO_INCREMENT,
      `worldname` varchar(32) NOT NULL,
      PRIMARY KEY (`worldid`),
      UNIQUE KEY `worldname` (`worldname`)
    ) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
    
    --
    -- Constraints for dumped tables
    --
    
    --
    -- Constraints for table `PrData`
    --
    ALTER TABLE `PrData`
      ADD CONSTRAINT `PrData_ibfk_1` FOREIGN KEY (`entryid`) REFERENCES `PrEntries` (`entryid`) ON DELETE CASCADE;
    
    --
    -- Constraints for table `PrEntries`
    --
    ALTER TABLE `PrEntries`
      ADD CONSTRAINT `PrEntries_ibfk_1` FOREIGN KEY (`worldid`) REFERENCES `PrWorlds` (`worldid`) ON DELETE CASCADE;
    
    --
    -- Constraints for table `PrInheritance`
    --
    ALTER TABLE `PrInheritance`
      ADD CONSTRAINT `PrInheritance_ibfk_1` FOREIGN KEY (`childid`) REFERENCES `PrEntries` (`entryid`) ON DELETE CASCADE,
      ADD CONSTRAINT `PrInheritance_ibfk_2` FOREIGN KEY (`parentid`) REFERENCES `PrEntries` (`entryid`) ON DELETE CASCADE;
    
    --
    -- Constraints for table `PrPermissions`
    --
    ALTER TABLE `PrPermissions`
      ADD CONSTRAINT `PrPermissions_ibfk_1` FOREIGN KEY (`entryid`) REFERENCES `PrEntries` (`entryid`) ON DELETE CASCADE;
    
    --
    -- Constraints for table `PrTrackGroups`
    --
    ALTER TABLE `PrTrackGroups`
      ADD CONSTRAINT `PrTrackGroups_ibfk_1` FOREIGN KEY (`trackid`) REFERENCES `PrTracks` (`trackid`) ON DELETE CASCADE,
      ADD CONSTRAINT `PrTrackGroups_ibfk_2` FOREIGN KEY (`gid`) REFERENCES `PrEntries` (`entryid`) ON DELETE CASCADE;
    
    --
    -- Constraints for table `PrTracks`
    --
    ALTER TABLE `PrTracks`
      ADD CONSTRAINT `PrTracks_ibfk_1` FOREIGN KEY (`worldid`) REFERENCES `PrWorlds` (`worldid`) ON DELETE CASCADE;
    
    --
    -- Constraints for table `PrWorldBase`
    --
    ALTER TABLE `PrWorldBase`
      ADD CONSTRAINT `PrWorldBase_ibfk_1` FOREIGN KEY (`worldid`) REFERENCES `PrWorlds` (`worldid`) ON DELETE CASCADE,
      ADD CONSTRAINT `PrWorldBase_ibfk_2` FOREIGN KEY (`defaultid`) REFERENCES `PrEntries` (`entryid`) ON DELETE CASCADE;
    
     
  12. Offline

    staticfactory

    YAML files do not like tabs. Make sure to only use spaces (4 of them between tiers). You can convert your tabs to spaces in Notepad++ by going to EDIT - Blank Operations - TAB TO Space
     
  13. Offline

    Guzmanus

    What does this line mean?
    I cant run permissions, it just gives the help output every command I try and it doesnt work

    Code:
    2011-06-01 21:05:00 [INFO] Fake Permissions version 2.7.2 is enabled
    
    
    Its the only line i get about permissions :/
     
  14. Offline

    staticfactory

    Very weird... doesn't look like any of the 'info' related variables are in there.
     
  15. Offline

    poiuyt580

    How can I add a user to a group in game without using promote/demote?
     
  16. Offline

    staticfactory

    That's from group manager.
     
  17. Offline

    Tankhitcher

    Along with a lot of other people, I am using b818 and permissions 3.1 and have the group error where no one can build and are put into the default group. Tried adding the users to the Global user/group but had no effect. So should I just wait for a more stable version or has someone found a fix?
     
  18. Offline

    Fyrecrypts

    T
    They are in PrData, however "build" to "true" doesn't work.
     
  19. Offline

    oxguy3

    What?!? It's possible for that to happen? I did not see that anywhere in the documentation of this mod. Goddamnit. Fuck this, I'm going back to version 2.
     
  20. Offline

    Guzmanus

    Oh dear i broke my brain just to figure out what the heck was causing that and was that plugin v.v
    Thankyou!
     
  21. Offline

    Techykid3

    Okay:

    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'SpawnControl.spawn.use'
                - 'craftbook.mech.cauldron'
        Member:
            default: false
            info:
                prefix: '&9Member'
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'magiccarpet.mc'
                - 'magiccarpet.ml'
                - 'craftbook.mech.cauldron'
                - 'lwc.protect'
                - 'essentials.home'
                - 'essentials.sethome'
                - 'essentials.warp'
                - 'antihack.canfly'
                - 'SpawnControl.home.basic'
                - 'SpawnControl.sethome.basic'
                - 'SpawnControl.spawn.use'
        Admins:
            default: false
            info:
                prefix: '&4Admin'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
                - 'torchmissile.Normal'
    Code:
    users:
        Techykid3:
            groups:
                - Admins
        megan10:
            groups:
                - Member
        Bearcat97:
            groups:
                - Admins
     
  22. Offline

    Dragonntiger

    Is it possible for Players to hop tracks using ingame commands? If so, how?
     
  23. Offline

    imjoe

    Yep, sames happening for me too :/
     
  24. Offline

    Dragonntiger

    you guys gotta put your users/groups file, in (MineCraftServerFolderName)>Plugins>Permissions>(worldname)
    copy and paste it in world_nether as well after someone has gone thru nether or else it'll be default
     
  25. Offline

    imjoe

    no, in the regular world, its showing about
    No, in the regular world, im showing as default even though im owner.
     
  26. Offline

    Dragonntiger

    yeah, you have to create a folder in permissions with your world name
    example: my world folder is world
    so in Permissions, theres a folder called world
    in it has users and groups
    go into your world.yml from 2.x and paste users in users.yml and groups in groups.yml
    make sure you go with the new format though in users
    Code:
    users:
        Tutorial:
            groups:
            - Head Admin
            info:
                prefix: King_
                suffix: ''
            permissions:
    notice how group changed to plural and you gotta put the node in or hyphen
     
  27. Offline

    Ashens

    For some reason the build value cannot be set in SQL anymore. I scrambled back to YAML, and will probably keep it that way until a proper database schema and CLI commands are constructed.
     
  28. Offline

    SalumoN

    Thanks for the 3.1 update! None of my permissions, except Admin worked while on 3.0. With no changes, except the jar file, everything works now! :D
     
  29. Offline

    Techykid3

    Okay, here is my problem, NONE of my permission nodes are working.... Here my my files:

    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'SpawnControl.spawn.use'
                - 'craftbook.mech.cauldron'
        Member:
            default: false
            info:
                prefix: '&9Member'
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'magiccarpet.mc'
                - 'magiccarpet.ml'
                - 'craftbook.mech.cauldron'
                - 'lwc.protect'
                - 'essentials.home'
                - 'essentials.sethome'
                - 'essentials.warp'
                - 'antihack.canfly'
                - 'SpawnControl.home.basic'
                - 'SpawnControl.sethome.basic'
                - 'SpawnControl.spawn.use'
        Admins:
            default: false
            info:
                prefix: '&4Admin'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
                - 'torchmissile.Normal'
    Code:
    users:
        Techykid3:
            groups:
                - Admins
        megan10:
            groups:
                - Member
        Bearcat97:
            groups:
                - Admins
    At least I can have someone help me. =(
     
  30. Offline

    imjoe

    011-06-01 13:09:12 [SEVERE] Caused by: while parsing a block mapping
    in "<reader>", line 2, column 5:
    ImJoeNemesis:
    ^
    expected <block end>, but found BlockSequenceStart
    in "<reader>", line 8, column 9:
    - Admin
    ^

    2011-06-01 13:09:12 [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:576)
    2011-06-01 13:09:12 [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
    2011-06-01 13:09:12 [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
    2011-06-01 13:09:12 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:228)
    2011-06-01 13:09:12 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    2011-06-01 13:09:12 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    2011-06-01 13:09:12 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    2011-06-01 13:09:12 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
    2011-06-01 13:09:12 [SEVERE] at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    2011-06-01 13:09:12 [SEVERE] at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
    2011-06-01 13:09:12 [SEVERE] at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    2011-06-01 13:09:12 [SEVERE] at com.nijiko.configuration.NotNullConfiguration.load(NotNullConfiguration.java:52)
    2011-06-01 13:09:12 [SEVERE] at com.nijiko.data.YamlUserStorage.reload(YamlUserStorage.java:179)
    2011-06-01 13:09:12 [SEVERE] at com.nijiko.data.YamlUserStorage.<init>(YamlUserStorage.java:29)
    2011-06-01 13:09:12 [SEVERE] at com.nijiko.data.StorageFactory.getUserStorage(StorageFactory.java:92)
    2011-06-01 13:09:12 [SEVERE] at com.nijiko.permissions.ModularControl.forceLoadWorld(ModularControl.java:89)
    2011-06-01 13:09:12 [SEVERE] at com.nijiko.permissions.ModularControl.loadWorld(ModularControl.java:81)
    2011-06-01 13:09:12 [SEVERE] at com.nijiko.permissions.ModularControl.safeGetUser(ModularControl.java:487)
    2011-06-01 13:09:12 [SEVERE] ... 19 more
    2011-06-01 13:09:15 [SEVERE] java.lang.Exception: Error creating user Deadshot12345 in world world1 due to storage problems!
    2011-06-01 13:09:15 [SEVERE] at com.nijiko.permissions.ModularControl.safeGetUser(ModularControl.java:489)
    2011-06-01 13:09:15 [SEVERE] at com.nijiko.permissions.ModularControl.getUsr(ModularControl.java:569)
    2011-06-01 13:09:15 [SEVERE] at com.nijiko.permissions.ModularControl.permission(ModularControl.java:313)
    2011-06-01 13:09:15 [SEVERE] at com.nijiko.permissions.ModularControl.permission(ModularControl.java:305)
    2011-06-01 13:09:15 [SEVERE] at com.nijiko.permissions.ModularControl.has(ModularControl.java:298)
    2011-06-01 13:09:15 [SEVERE] at cc.co.evenprime.bukkit.nocheat.NoCheat.hasPermission(NoCheat.java:300)
    2011-06-01 13:09:15 [SEVERE] at cc.co.evenprime.bukkit.nocheat.checks.MovingCheck.check(MovingCheck.java:193)
    2011-06-01 13:09:15 [SEVERE] at cc.co.evenprime.bukkit.nocheat.listeners.MovingPlayerListener.onPlayerMove(MovingPlayerListener.java:26)
    2011-06-01 13:09:15 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:285)
    2011-06-01 13:09:15 [SEVERE] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    2011-06-01 13:09:15 [SEVERE] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
    2011-06-01 13:09:15 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:139)
    2011-06-01 13:09:15 [SEVERE] at net.minecraft.server.Packet10Flying.a(SourceFile:126)
    2011-06-01 13:09:15 [SEVERE] at net.minecraft.server.NetworkManager.b(NetworkManager.java:217)
    2011-06-01 13:09:15 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    2011-06-01 13:09:15 [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    2011-06-01 13:09:15 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:401)
    2011-06-01 13:09:15 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
    2011-06-01 13:09:15 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-06-01 13:09:15 [SEVERE] Caused by: while parsing a block mapping​


    Im getting that error.

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

    p0rnflakes

    Hi,
    I installed Permissions, and it works fine for admins, but every other group has no permissions at all, despite of the nodes in their group.
    How to fix that?

    users.yml
    Code:
    users:
        p0rnflakes:
            groups:
            - Admin
        Michelle2604:
            groups:
            - Regular
        Morphz:
            groups:
            - Admin
    groups.yml
    Code:
    groups:
        Guest:
            default: true
            info:
                prefix: ''
                suffix: '&5'
                build: false
            inheritance:
            permissions:
            - commandbook.rules
            - commandbook.motd
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: '&2'
                build: true
            inheritance:
            - Trusted
            permissions:
            - commandbook.kick
            - commandbook.bans.*
        Admin:
            default: false
            info:
                prefix: ''
                suffix: '&4'
                build: true
            inheritance:
            permissions:
            - '*'
        Trusted:
            default: false
            info:
                prefix: ''
                suffix: '&3'
            permissions:
            - worldedit.*
            - commandbook.weather.*
            - commandbook.slap
            - commandbook.rocket
            inheritance:
            - Regular
        Regular:
            default: false
            info:
                prefix: ''
                suffix: '&a'
            permissions:
            - commandbook.more.*
            - commandbook.teleport.*
            - commandbook.give.*
            - commandbook.spawn
            - commandbook.who
            inheritance:
            - Default
    tracks:
        Standard:
        - Default
        - Regular
        - Builder
        - Trusted
        - Moderator
     
Thread Status:
Not open for further replies.

Share This Page