Inactive [ADMN/GEN/MECH] Time Rank v0.1.0b - Let players earn/buy/rent nodes/groups Economy support [1000]

Discussion in 'Inactive/Unsupported Plugins' started by xlilcasper, Jun 14, 2011.

  1. Offline

    xlilcasper

    Time Rank - Time/Economy based group advancement
    Version: v0.1.0b
    Download Latest version: Time Rank.zip (jar)
    Source: GitHub
    This plugin will allow you to promote people to different groups based upon how long they have been playing. It also lets player buy or rent ranks using money or blocks.
    Requires permissions 3.x or Group Manager
    Optional: iConomy 4, iConomy 5, Essentials Eco, BOSEconomy
    Features:
    • Change a persons group after they have played for a set amount of time
    • Allow players to buy groups using blocks
    • Allows players to buy ranks using money
    • Supports all 4 major economy plugins
    • Supports multiple groups
    • Can be removed from one group when added to another.
    • Works with permissions' globalUsers and globalGroups
    • Configurable messages upon promotion
    • Ability to rent ranks for a set number of minutes.
    Please feel free to post comments, bugs, or feature requests here and I will do my best to help or add the requested features in.


    Asking for help
    Please include the following in your post.
    server.log - With out the server log we can't really tell what error your getting, which plugin it might be from, where the error is in our plugin....

    Error message - Sometimes you might be getting more then one error. What error are you trying to fix? Also if the server log is missing or very long, this will help us locate it.

    Which permissions plugin your using. - We need to know if your using permissions or Group Manager. It might be an error specific to that plugin. Also both work very differently. The steps to fix one might be different then the steps to fix the other. Config files are different...

    Explain the problem - Simply posting it doesn't work doesn't help. We need what you were doing, what caused the error and other any information that could help.


    Config example
    Config (open)

    Code:
    settings:
    #Show debug messages. Will spam your console if turned on
        debug: false
    #Only show ranks/abilities people can gain when doing /listranks or /listabs
        hideUnavaible: false
    #config version. Do not change. Used internally to know when to auto-update the config file.
        configVersion: 2
    #All your ranks go here.
    ranks:
    #Rank name. This is what is used with /buyrank and such.
        Trusted:
    #This is the group the rank grants when it is earned/bought/rented
            group: Trusted
    #This is the world the group belongs to.
            world: world
    #This is the group that the person must be in before they can buy/rent/earn the rank. Can be removed to allow anyone access to it.
            oldgroup: Default
    #Amount of time, in minutes, before the rank is earned. This can be removed or set to -1 to disable it.
            time: 60
    #Description shown in /listranks
            description: Can build, use basic commands, has access to water.
    #If we should remove the oldGroup after adding the new group. Most of the time this should be true unless your using Permissions 3.x and want to have people in more then 1 group.
            remove: true
        Vet:
            group: Vet
            world: world
            oldgroup: Trusted
            time: 2520
    #Allow this rank to be bought with /buyrank.
            buy:
    #Amount of the resource to require when buying.
                amount: 25000.0
    #Broadcast to the whole server when this rank is bought.
                broadcast: true
    #What to broadcast. See messages below for variables that are allowed.
                msg: '&B<player.name> &Ehas been promoted to &B<rank.group>'
    #What this costs to buy. This can be any block ID (example 266 for gold ingots) or Money to use a supported Economy plugin.
                cost: Money
    #The minimum amount of play time required before they are able to buy this rank. -1 disables this.
                minTime: -1
            description: Has access to tnt and lava.
            remove: true
    #Rent would be set up the same way, See rent from the abilities section below for examples.
        Elite:
            group: Elite
            world: world
            oldgroup: Vet
            time: 5040
            buy:
                amount: 5.0
                broadcast: true
                msg: '&B<player.name> &Ehas been promoted to &B<rank.group>'
                cost: 266
                minTime: -1
            description: Has the ability to fly and to tp to other players.
            remove: true
    #These grant just permission nodes with out changing a persons group.
    abilities:
    #Ability name.
        Superpick:
           #World that this person will gain the permission for. Use * for all worlds
            world: world
    #The permission node the person must have before they can earn/buy/rent this ability. Can be set to whatever you want. Just make sure to give the person/group this node so they can get this ability. Can be removed to allow everyone to get it.
            permission: timerank.ab.Superpick
    #List of nodes this ability grants. These will be added when bought/rented/earned and removed when time runs out if it was rented.
            nodes:
            - worldedit.superpickaxe
            - worldedit.superpickaxe.area
            description: Enable Superpick
    #Categories the ability will show up in. This helps organize large sets of abilities. Later these may be used for permissions but right now it's just for /listabs <category>
            categories:
            - pick
            - worldedit
            - mining
    #See above for what these all mean. Set up exactly the same as ranks
            buy:
                amount: 250.0
                broadcast: true
                msg: '&B<player.name> &Ehas bought superpick'
                cost: Money
                minTime: -1
            rent:
                time: 5
                amount: 25.0
                broadcast: true
                msg: '&B<player.name> &Ehas bought superpick'
                cost: Money
                minTime: -1
                gainedMsg: '&B<player.name> &Ehas rented &B<ability.name>'
                lostMsg: '&B<player.name> &Ehas lost the &B<ability.name> ability'
            time: -1
        Jump:
            world: world
            permission: timerank.ab.Jump
            nodes:
            - worldedit.navigation.jumpto
            description: Enable Jump
            categories:
            - navigation
            - worldedit
            - movment
            buy:
                amount: 250.0
                broadcast: true
                msg: '&B<player.name> &Ehas bought <ability.name>'
                cost: Money
                minTime: -1
            rent:
                time: 5
                amount: 25.0
                broadcast: true
                msg: '&B<player.name> &Ehas bought <ability.name>'
                cost: Money
                minTime: -1
                gainedMsg: '&B<player.name> &Ehas rented &B<ability.name>'
                lostMsg: '&B<player.name> &Ehas lost the &B<ability.name> ability'
            time: -1
    


    Messages
    Messages (open)

    Messages must be enclosed in ' ' or you will get errors. They support both colors and variables. Colors are done by using &<color>, such as &3 or &a. If you want to use a & in your message, place two of them. Example. 'He is a gentlemen && a scholar' would print out 'He is a gentlemen & a scholar'

    Here is a list of variables. All variables should be enclosed in < > and lower case
    Player
    player.name = Players name who has been promoted
    player.world = Current world the player is in

    Rank
    Follows pretty much the config names.
    rank.name = Name of the rank
    rank.group = New group person is getting promoted to
    rank.oldgroup = Old group the person was in
    rank.world = The world that group and oldgroup are a part of.
    rank.time = Amount of time in minutes it took to get this promotion
    rank.cost = The cost, money, or block id they used for this promotion
    rank.amount = The amount of money, or blocks, they paid
    rank.remove = If they were removed from the old group

    Ones you'll likely never use but are there...
    rank.broadcast = If this was broadcast to the whole server
    rank.msg = The raw msg before it is processed.

    Abilities
    Same as rank with the following changes
    There is no group or oldgroup.




    Commands
    Commands (open)

    Code:
    /playtime <player>
    will show how long a player has been playing for. This keeps track of time logged in to the server and playing.
    Permission node: timerank.playtime
    
    Code:
    /listranks [filter/page] [page]
    List all the ranks loaded and there costs and other information. Filter and page is optional. Filter can be time, buy, or rent. Adding a filter will only list the ranks with the selected information. Page can be used to limit the output to 5 at a time.
    Permission node: timerank.listranks
    
    Code:
    /buyrank <name>
    Will allow you to buy the rank with that name if you have enough to pay for it.
    Permission node: timerank.buyrank
    
    Code:
    /rentrank <name>
    Will allow you to rent the rank with that name if you have enough to pay for it.
    Permission node: timerank.rentrank
    
    Code:
    /timerank
    Show version number and other information
    
    /timerank reload
    Reloads config file
    
    /timerank groups
    List a lot of information on the loaded groups
    
    Permission node: timerank.timerank
    


    Current Bugs
    • None
    Planned features
    • Add in support for Permissions 2.7.x - May not happen. Doesn't have an API for managing groups. May have to edit the config files directly which is a very ugly way of doing it.
    • Reformat the listrank output to make it look better.
    • Make oldGroups a list instead of a single value. Make this list an OR list so they have to be in anyone of these groups, remove any that they are in.
    • Add in a use: section to limit the abilities to a number of uses instead of just buy/rent.
    Features I'm thinking about
    • Add an option so you have to visit a set place to get your rank advancement such as an alter or temple.
    • Come up with a better name to describe this since it now does more then just time. Maybe call it Ranker.I'm open to suggestions.
    • PermissionsEx support
    Change Log
    Version 0.1.0b
    • Fixed serialize bug so we could save rented abilities across reboots.
    Version 0.1.0a
    • Fixed bug where only the first permission node was added.
    Version 0.1.0
    • Fixed null pointer error when rent was present but empty.
    • Added ability to earn/buy/rent abilities and permission nodes.
    Version 0.0.9
    • Fixed bug when loading play times and it coming back null.
    • Added in description field.
    • Added message to reload command to let you know it worked.
    • Added better error messages, trapped a few more errors.
    • Preserved ordering for rank list so that /listranks is printed in a logical order.
    • Fixed but where rented abilities would not turn off if the server was rebooted.
    • Config file changed. Should auto-update to the new format. You may want to back up your config file first before upgrading.
    Old change log (open)

    Version 0.0.8
    • Fixed reload option to reload config instead of needing a reboot.
    • Fixed not being able to buy ranks when using blocks.
    • Added minTime node to require a minimum time before being able to buy a rank
    • Added rentMinTime node to require a minimum time before being able to rent a rank.
    Version 0.0.7b
    • Fixed bug where people were removed from the group right after adding them to it.
    Version 0.0.7a
    • Fixed bad bug where it made a folder for each player in the permissions folder.
    Version 0.0.7
    • A lot of small bug fixes.
    • Added timer to handle rank up checks, checks every 10 seconds, instead of using player animation
    • Added ability to rent ranks and all the goodies that go with that
    • Made it easier to work with single permission nodes for when buying single nods gets added in
    • Added filters to /ranklist. Now it is /ranklist <time|buy|rent> to only show that group.
    • Added /timerank groups to list more (Admin) information about groups. Works with the same filters as /ranklist
    Version 0.0.6
    • Made OldGroup optional. Now if it is not specified it will always promote them if available.
    • Added BroadCast to ranks, allows turning server broadcasts off when a person is promoted. If off, will only msg the person who was promoted.
    • Added msg to ranks, configurable message for when a play gains a rank.
    Version 0.0.5d
    • Fixed a bug added in 0.0.5 that would only allow people to be promoted to first group listed in config.
    • Fixed /timerank reload causing errors.
    • Added in some more error handling.
    Version 0.0.5c
    • Really fixed this time. Made a typo that stopped permissions from loading.
    Version 0.0.5b
    • Fixed for latest permissions
    Version 0.0.5a
    • Fixed detecting Group Manager
    Version 0.0.5
    • Added auto detection of permissions plugin. Now ignores the permissions setting.
    • Added in support for globalUsers and globalGroups if no world is given.
    • Reformated /timerank to show settings.
    • Added /timerank reload
    Version 0.0.4
    • Added /timerank to show version and as a placeholder for other commands.
    • Added support for group manager.
    Version 0.0.3
    • Added /listranks to display all the ranks you can buy
    • Added support for iConomy 4, iConomy 5, EssentialsEco, and BOSEconomy
    Version 0.0.2
    • Added ability to buy ranks.
    • Made it save play times on world save in case server crashed or was stopped.
    • Added check a single players rank when they run animations. This way they get promoted sooner after they reach the right time
    • Added Settings node and settings.debug to the config file instead of setting debug in the source.
    • Changed name of plugin from Time Rank to TimeRank. Folder must be renamed.
    • Made it handle reloads with out losing player times.
    Version 0.0.1
    • First public release.
     
    ume88, Pim1234, Nurgo and 4 others like this.
  2. Offline

    Michael Murphy

    I did some searching through the topic to find that /buyab and /rentab are the commands for renting/buying abilities, but how do you see the list of available abilities for rent, or is that working? and also the permission nodes for those, I assume, are timerank.buyability/rentability or .buyab/rentab. I've tried /listabilities and /listab but can not find the correct command.
     
  3. Offline

    xlilcasper

    The commands are listed under the spoiler listed commands. Clicking it will show all commands and there permission nodes.

    /listranks or /listabs will list the rank and ability information.
    Permission nodes are for the most part timerank.<command> so listranks would be tiemrank.listranks

    Here is an example where they can only buy 1 rank and can not change after that
    Show Spoiler

    Code:
    settings:     debug: false     hideUnavaible: false     configVersion: 2 ranks:     Trusted:         group: Trusted         world: world         oldgroup: NoClass         time: -1
            buy:             amount: 300.0             broadcast: true             msg: '&B<player.name> &Ehas been promoted to &B<rank.group>'             cost: Money             minTime: -1         description: Can build, use basic commands, has access to water.         remove: true     Vet:         group: Vet         world: world         oldgroup: NoClass         time: -1         buy:             amount: 300.0             broadcast: true             msg: '&B<player.name> &Ehas been promoted to &B<rank.group>'             cost: Money             minTime: -1         description: Has access to tnt and lava.         remove: true     Elite:         group: Elite         world: world         oldgroup: NoClass         time: 5040         buy:             amount: 350.0             broadcast: true             msg: '&B<player.name> &Ehas been promoted to &B<rank.group>'             cost: money             minTime: -1         description: Has the ability to fly and to tp to other players.         remove: true #These grant just permission nodes with out changing a persons group. abilities: 


    To allow them to change for free you would add one more rank to the list
    Show Spoiler

    Code:
    NoClass:         group: NoClass         world: world         time: 5040         buy:             amount: 0.0             broadcast: true             msg: '&B<player.name> &Ehas been promoted to &B<rank.group>'             cost: money             minTime: -1         description: Has the ability to fly and to tp to other players.         remove: true
    

    This may have the issue of not removing there old class when they switch to NoClass. When I finish adding in the oldGroups as a list feature I will add another node to fix this. Basically a "not required but remove if they have it" node.

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

    Michael Murphy

    Thanks, I see now that /listabs is in the configuration spoiler within a comment near the abilities section. You may want to consider adding that and the respective permission to the command spoiler to prevent this in the future, however that's your choice, and I also understand if it's that way to make people read things.
     
  5. Offline

    cyborax

    i get sometimes this error :(
    Code:
    00:36:02 [SEVERE] ===================================================
    00:36:02 [SEVERE] =              ERROR REPORT START                 =
    00:36:02 [SEVERE] ===================================================
    00:36:02 [SEVERE] =               TIME RANK ERROR                   =
    00:36:02 [SEVERE] =         INCLUDE WHEN ASKING FOR HELP            =
    00:36:02 [SEVERE] ===================================================
    00:36:02 [SEVERE] Version: 0.1.0b
    00:36:02 [SEVERE] Permissions: Permissions3
    00:36:02 [SEVERE] Ranks Loaded: 19
    00:36:02 [SEVERE] ===================ERROR INFO===================
    00:36:02 [SEVERE] Trace: java.io.StreamCorruptedException: invalid type code: 33
    
            at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(Unknow
    n Source)
            at java.io.ObjectInputStream$BlockDataInputStream.refill(Unknown Source)
    
            at java.io.ObjectInputStream$BlockDataInputStream.read(Unknown Source)
            at java.io.ObjectInputStream.read(Unknown Source)
            at java.io.InputStream.read(Unknown Source)
            at java.util.Properties$LineReader.readLine(Unknown Source)
            at java.util.Properties.load0(Unknown Source)
            at java.util.Properties.load(Unknown Source)
            at com.oberonserver.timerank.timerank.loadPlaytime(timerank.java:1036)
            at com.oberonserver.timerank.timerank.GetPlaytime(timerank.java:920)
            at com.oberonserver.timerank.timerank.CheckRanks(timerank.java:1554)
            at com.oberonserver.timerank.timerank.CheckRanks(timerank.java:1546)
            at com.oberonserver.timerank.timerank.update(timerank.java:1695)
            at com.oberonserver.timerank.timerank$TimeRankChecker.run(timerank.java:
    1912)
            at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(C
    raftScheduler.java:137)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:438)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    00:36:02 [SEVERE] ===================================================
    00:36:02 [SEVERE] =              ERROR REPORT ENDED                 =
    00:36:02 [SEVERE] ===================================================
     
  6. Offline

    xlilcasper

    Is this on start up or after it has been running for a while. It looks like it is having troubles reading a file when it is loading the play times.
     
  7. Offline

    Phealoon

    @ xlilcasper

    Its not working quite the way I was wanting,. let me explain what I mean.

    Code:
    Player A Starting Rank: Nomad Starting Money: 100
    
    Player B Starting Rank: Blacksmith Starting Money: 100
    
    Player A
    
    /buyrank Assassin
    
    Player B
    
    /buyrank Alchemist
    
    Player A Current Rank: Assassin Current Money: 75
    
    Player B Current Rank: Alchemist Current Money: 75
    
    Player A
    
    /buyrank Priest
    
    Player B
    
    /buyrank Warlord
    
    Player A Current Rank: Priest Current Money: 50
    
    Player B Current Rank: Warlord Current Money: 50
    Now, what it does currently is

    Code:
    ranks:
        Nomad:
            group: Nomad
            world: Wraithaven
            time: -1
            buy:
                amount: 0.0
                broadcast: true
                msg: '&B<player.name> &Ehas chosen the &B<rank.group> &Eclass'
                cost: Money
                minTime: -1
            description: The initial non-classed wanderer.
            remove: true
        Alchemist:
            group: Alchemist
            world: Wraithaven
            time: -1
            buy:
                amount: 300.0
                broadcast: true
                msg: '&B<player.name> &Ehas chosen the &B<rank.group> &Eclass'
                cost: Money
                minTime: -1
            description: Can use the Alchemist classed abilities.
            remove: true
        Assassin:
            group: Assassin
            world: Wraithaven
            time: -1
            buy:
                amount: 300.0
                broadcast: true
                msg: '&B<player.name> &Ehas chosen the &B<rank.group> &Eclass'
                cost: Money
                minTime: -1
            description: Can use the Assassin classed abilities.
            remove: true
        Blacksmith:
            group: Blacksmith
            world: Wraithaven
            time: -1
            buy:
                amount: 300.0
                broadcast: true
                msg: '&B<player.name> &Ehas chosen the &B<rank.group> &Eclass'
                cost: Money
                minTime: -1
            description: Can use the Blacksmith classed abilities.
            remove: true
    
    Right now when players login it says (PlayerA) has been promoted to (SomeRank) this is before we even have chosen a rank, making people think that their current rank was changed. Then, when somone buys a rank it takes their money, but when they talk, their rank does not change. Finally, when they buy a new rank, it tells them that they are already in a group that has that rank, ore something like that. I want it so that when they buy a rank it is no higher or lower then the next. Alchemist, is the same as Blacksmith, or Assassin etc. All part of the same group, but they can still change the rank. Buying their rank, simply changes their permissions to another class.
     
  8. Offline

    xlilcasper

    You will have to wait until the update. Not sure why it is moving them into a rank when they first join as all your times are set to -1, which is disabled. It may be a bug. I will check into that.

    As of right now there is no way to say "If this group is there, remove it, but don't require them to be in this group." that feature will be added when the group list is added in. Which is done, but has not been tested yet.
     
  9. Offline

    opoq

    Your plugin sounds fantastic. I'm on PEX though: I'd like to beg you to please add PEX support, as neither Permiconomy nor Buyabilities has - you'd be the first, and it would be greatly appreciated!
    Thank you
     
  10. Offline

    The24man

    This is just what I needed, promotion after a certain amount of playtime, now you just have to add (hopefully) PEX support so I could use it. Sure I could write my own plugin that does that but I'm too lazy.
     
  11. Offline

    xlilcasper

    Look for PEX support in version 1.1 or 1.2. It all depends on how long it takes me to add the use node for which version it gets added in.
     
  12. Offline

    The24man

    @xlilcasper
    Thanks I'm looking forward to it, already got the config set up! :)
     
  13. Offline

    blaize9

    Hmm i keep on getting spammed *name* has been promoted to Stone like every 5-10 sec, also there is no errors or nothing in theconsole.


    Code:
    settings:
        debug: false
        hideUnavaible: false
        configVersion: 2
    ranks:
        Wood:
            group: Wood
            world: world
            oldgroup: Default
            time: 60
            buy:
            description: Can build, use basic commands, has access to water, ice and redstone.
            remove: true
        Stone:
            group: Stone
            world: world
            oldgroup: Wood
            time: 1520
            buy:
                amount: 15000.0
                cost: Money
                minTime: -1
            description: Has the ability to use /home & /sethomealso can use boats, minecarts, eggs and snowball.
            remove: true
        Iron:
            group: Iron
            world: world
            oldgroup: Stone
            time: 2520
            buy:
                amount: 25000.0
                cost: Money
                minTime: -1
            description: Has access to tnt and lava.
            remove: true
        Diamond:
            group: Diamond
            world: world
            oldgroup: Iron
            time: 5040
            buy:
                amount: 50000.0
                cost: Money
                minTime: -1
            description: Has the ability to use /spawn and to tp to other players.
            remove: true
    
    
     
  14. Offline

    Monstertke

    I was using 2.7.4 up until yesterday, I spent about 3 weeks screwing around with permissions 3 on my test server.
    Confusing as hell, complicated, I had to go to some ambiguous web page to convert my yaml file. Just a big headache.

    I played around with pex for 20 minutes, loaded it onto my test server with a copy of my current permissions .yaml, 5 minutes and 3 commands later I was rocking in game commands and promotion ladders. Works perfectly.

    I hope that you add support soon, I think the PEX devs would be more than willing to work on an API.
     
  15. Agreed, pushing for PEX support. Your the owner of the plugin preventing me from migrating Casper, how do you sleep at night?!
    Haha, take as long as you need - we'll live ;)
     
    Monstertke likes this.
  16. Offline

    Nielscorn

    Hello,

    it seems my people don't get auto upgraded to the next rank after x amount of time played...
    I'm not using abilities or the rent system, i just use this plugin so they automaticly upgrade to the next rank.
    After 3 hours of playing a Default person should change to Traveller, as of now, it doesnt do this...

    Using: permissions, server 1.7.2, bukkit 953

    Timerank config

    Code:
    settings:
        debug: false
        hideUnavaible: false
        configVersion: 2
    ranks:
        Traveller:
            group: Traveller
            world: world
            oldgroup: Default
            time: 180
            description: Can build, use basic commands.
            remove: false
        Trusted:
            group: Trusted
            world: world
            oldgroup: Traveller
            time: 720
            buy:
                amount: 75000.0
                broadcast: true
                msg: '&B<player.name> &Ehas been promoted to &B<rank.group>'
                cost: Money
                minTime: -1
            description: Being able to set up shops!
            remove: false
        Elite:
            group: Elite
            world: world
            oldgroup: Trusted
            time: 1200
            buy:
                amount: 150000.0
                broadcast: true
                msg: '&B<player.name> &Ehas been promoted to &B<rank.group>'
                cost: Money
                minTime: -1
            description: More to come, haven't decided.
            remove: false
        VIP:
            group: VIP
            world: world
            oldgroup: Elite
            time: -1
            buy:
                amount: 750000.0
                broadcast: true
                msg: '&B<player.name> &Ehas been promoted to &B<rank.group>'
                cost: Money
                minTime: 1200
            description: usage of warps, bankowner(loandshark), more to come.
            remove: false
    abilities:
        Superpick:
            world: world
            permission: timerank.ab.Superpick
            nodes:
            - worldedit.superpickaxe
            - worldedit.superpickaxe.area
            description: Enable Superpick
            categories:
            - pick
            - worldedit
            - mining
            buy:
                amount: 250.0
                broadcast: true
                msg: '&B<player.name> &Ehas bought superpick'
                cost: Money
                minTime: -1
            rent:
                time: 5
                amount: 25.0
                broadcast: true
                msg: '&B<player.name> &Ehas bought superpick'
                cost: Money
                minTime: -1
                gainedMsg: '&B<player.name> &Ehas rented &B<ability.name>'
                lostMsg: '&B<player.name> &Ehas lost the &B<ability.name> ability'
            time: -1
        Jump:
            world: world
            permission: timerank.ab.Jump
            nodes:
            - worldedit.navigation.jumpto
            description: Enable Jump
            categories:
            - navigation
            - worldedit
            - movment
            buy:
                amount: 250.0
                broadcast: true
                msg: '&B<player.name> &Ehas bought <ability.name>'
                cost: Money
                minTime: -1
            rent:
                time: 5
                amount: 25.0
                broadcast: true
                msg: '&B<player.name> &Ehas bought <ability.name>'
                cost: Money
                minTime: -1
                gainedMsg: '&B<player.name> &Ehas rented &B<ability.name>'
                lostMsg: '&B<player.name> &Ehas lost the &B<ability.name> ability'
            time: -1
    
    Permissions

    Code:
    groups:
        Default:
            default: true
            info:
                prefix: '&f'
                suffix: '&f'
                build: true
            permissions:
                - commandbook.who
                - commandbook.motd
                - commandbook.intro
                - commandbook.rules
                - commandbook.kit.list
                - commandbook.kit.kits.starter
                - commandbook.spawn
                - commandbook.call
                - commandbook.say
                - commandbook.say.me
                - commandbook.msg
                - commandbook.whereami
                - commandbook.whereami.compass
                - commandbook.whois
                - myhome.home.basic.set
                - myhome.home.basic.home
                - myhome.home.basic.delete
                - myhome.home.soc.list
                - iConomy.access
                - iConomy.rank
                - iConomy.list
                - iConomy.payment
                - jobs.join.*
                - jobs.world.*
                - lockette.user.create.*
                - wurkit.player.*
                - worldborder.help
                - timerank.playtime
                - timerank.listranks
                - showcase.buy.finite
                - showcase.buy.infinite
                - timerank.buyrank
                - timerank.rentrank
        Traveller:
            default: false
            info:
                prefix: '&7'
                suffix: '&f'
                build: true
            inheritance:
                - Default
            permissions:
                - residence.create
                - backtobody.btb
                - buttonwarp.use
                - buttonwarp.getreward
                - buttonwarp.admin.list
        Trusted:
            default: false
            info:
                prefix: '&2'
                suffix: '&f'
                build: true
            inheritance:
                - Traveller
            permissions:
                - showcase.basic
                - showcase.finite
                - showcase.exchange
                - buttonwarp.make
                - buttonwarp.amount
                - buttonwarp.source
                - buttonwarp.msg
                - buttonwarp.time
                - buttonwarp.type
        Elite:
            default: false
            info:
                prefix: '&9'
                suffix: '&f'
                build: true
            inheritance:
                - Trusted
            permissions:
        VIP:
            default: false
            info:
                prefix: '&6'
                suffix: '&f'
                build: true
            inheritance:
                - Elite
            permissions:
                - iConomy.bank.acces
                - iConomy.bank.main
                - iConomy.bank.main.view
                - iConomy.bank.join
                - iConomy.bank.join.multiple
        Moderator:
            default: false
            info:
                prefix: '&5'
                suffix: '&f'
                build: true
            inheritance:
                - VIP
            permissions:
                - commandbook.teleport
                - commandbook.bans.ban
                - commandbook.bans.unban
                - worldedit.extinguish
                - worldedit.reload
                - worldguard.reload
                - nocheat.notify
                - changedat.load
                - changedat.save
                - changedat.scan
                - commandbook.kick
                - commandbook.bans.isbanned
                - commandbook.bans.load
                - commandbook.bans.save
        Admin:
            default: false
            info:
                prefix: '&b'
                suffix: '&f'
                build: true
            inheritance:
                - Moderator
            permissions:
                - myhome.home.soc.*
                - commandbook.teleport.other
                - commandbook.mute
                - commandbook.clear
                - commandbook.clear.other
                - commandbook.slap
                - commandbook.slap.other
                - commandbook.whois.other
                - commandbook.reload
                - assignpermissions.add.*
                - assignpermissions.del.*
                - assignpermissions.list.*
                - myhome.*
                - commandbook.*
                - iConomy.admin.stats
                - CreeperHeal.admin
                - noafk.admin
                - noafk.admin.config
                - buttonwarp.admin.move
                - buttonwarp.admin.locate
        GOD:
            default: false
            info:
                prefix: '&4'
                suffix: '&f'
                build: true
            permissions:
                - '*'
                - iConomy.admin.grant
                - iConomy.admin.set
                - iConomy.admin.reset
                - iConomy.admin.hide
                - iConomy.admin.account.create
                - iConomy.admin.account.remove
                - jobs.admin.*
                - lockette.admin.*
                - residence.admin
                - lockbuy.admin.toggle
                - lockbuy.admin.toggle
                - livingforest.fastgrow.use
                - livingforest.*
                - worldedit.*
                - worldguard.*
                - nocheat.*
                - wurkit.admin.*
                - worldborder.set
                - worldborder.radius
                - worldborder.clear
                - worldborder.list
                - worldborder.shape
                - worldborder.knockback
                - worldborder.wshape
                - worldborder.getmsg
                - worldborder.setmsg
                - worldborder.delay
                - worldborder.reload
                - worldborder.debug
                - timerank.timerank
                - showcase.infinite
                - showcase.admin
                - buttonwarp.admin.freewarp
     
  17. Offline

    xlilcasper

    Try changing remove to true, you will also need to go back and make sure everyone is in the correct group and only the correct group. This should fix the problem.
     
  18. Offline

    Nielscorn

    Well i tried that but didn't work... can't i somehow just let the people in Default (that are the beginning people) automaticly go to Traveller after 3 hours? and so on?

    I have Moderators and Admins in my server but i don't want them on the list ofc, is this what is blocking it?
    Neither do i want to lose the default when someone gets upgraded to traveller or more, is that what the remove to true is?

    And i just got random people in Traveller and Default, i got some people who have played +3 hours and don't get auto upgraded to Traveller...

    Do i have to include Default in the timerank one? then what do i have to put as previous group?

    I hope you understand my problem.

    Short: Don't want to lose ANY groups, want people to just get promoted to next group if they played x amount of hours.


    EDIT: the advice to delete old groups worked! i had checked the user pad and it had
    -Default
    -Traveller

    as groups

    THX MAN! Aweosme plugin!
     
  19. Offline

    Soldier187

    It doesnt seem to work for me. I think I am having a similar problem to Neilscorn.
    Whenever users buy promotions it sort of works but it does not remove them from the previous group even though I set it to do so.
    I've tried removing the old groups (several times) and still the problem returns.
    Also the default group does not automatically rankup to trusted after 1 hour
    I'm testing on a clean server with only permission 3.1.5, Commandbook and iConomy 5.
    I dont get any errors in console
    Help would be very much appreciated.

    Here is my config

    Code:
    settings:
        debug: false
        hideUnavaible: false
        configVersion: 2
    ranks:
        Trusted:
            group: Trusted
            world: world
            oldgroup: Guest
            time: 3
            description: Can build, use basic commands, has access to water.
            remove: true
        NewMember:
            group: NewMember
            world: world
            oldgroup: Trusted
            time: -1
            buy:
                amount: 1000.0
                broadcast: true
                msg: '&B<player.name> &Ehas been promoted to &B<rank.group>'
                cost: Money
                minTime: -1
            description: Has access to tnt and lava.
            remove: true
        Member:
            group: Member
            world: world
            oldgroup: NewMember
            time: -1
            buy:
                amount: 2500.0
                broadcast: true
                msg: '&B<player.name> &Ehas been promoted to &B<rank.group>'
                cost: Money
                minTime: -1
            description: Has the ability to fly and to tp to other players.
            remove: true
        TrueMember:
            group: TrueMember
            world: world
            oldgroup: Member
            time: -1
            buy:
                amount: 5000.0
                broadcast: true
                msg: '&B<player.name> &Ehas been promoted to &B<rank.group>'
                cost: Money
                minTime: -1
            description: Has the ability to fly and to tp to other players.
            remove: true
        SuperMember:
            group: SuperMember
            world: world
            oldgroup: TrueMember
            time: -1
            buy:
                amount: 100000.0
                broadcast: true
                msg: '&B<player.name> &Ehas been promoted to &B<rank.group>'
                cost: Money
                minTime: -1
            description: Promotion to highest ranking member!
            remove: true
    abilities:
        Superpick:
            world: world
            permission: timerank.ab.Superpick
            nodes:
            - worldedit.superpickaxe
            - worldedit.superpickaxe.area
            description: Enable Superpick
            categories:
            - pick
            - worldedit
            - mining
            buy:
                amount: 250.0
                broadcast: true
                msg: '&B<player.name> &Ehas bought superpick'
                cost: Money
                minTime: -1
            rent:
                time: 5
                amount: 25.0
                broadcast: true
                msg: '&B<player.name> &Ehas bought superpick'
                cost: Money
                minTime: -1
                gainedMsg: '&B<player.name> &Ehas rented &B<ability.name>'
                lostMsg: '&B<player.name> &Ehas lost the &B<ability.name> ability'
            time: -1
        Jump:
            world: world
            permission: timerank.ab.Jump
            nodes:
            - worldedit.navigation.jumpto
            description: Enable Jump
            categories:
            - navigation
            - worldedit
            - movment
            buy:
                amount: 250.0
                broadcast: true
                msg: '&B<player.name> &Ehas bought <ability.name>'
                cost: Money
                minTime: -1
            rent:
                time: 5
                amount: 25.0
                broadcast: true
                msg: '&B<player.name> &Ehas bought <ability.name>'
                cost: Money
                minTime: -1
                gainedMsg: '&B<player.name> &Ehas rented &B<ability.name>'
                lostMsg: '&B<player.name> &Ehas lost the &B<ability.name> ability'
            time: -1
    
     
  20. Offline

    xlilcasper

    Please post your groups.yml file as well to trouble shoot why the default group isn't working. However the reason the auto rank is not working is you have time: -1. that should be time: X where X is the number of minutes before they auto gain the rank.
     
  21. Offline

    Soldier187

    That config was from the clean server I was running to help troubleshoot, and since my last post I have been able to
    to fix the described issues thanks to you however a new one pops up.

    -When trying to purchase a rank higher then Member nothing at all happens.
    Code:
    groups:
        Guest:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
                rank: 1
            inheritance:
            permissions:
            - timerank.playtime
            - timerank.listranks
            - timerank.buyrank
            - myhome.home.basic.home
            - myhome.home.basic.set
            - myhome.home.basic.delete
            - commandbook.who
            - commandbook.motd
            - commandbook.rules
            - commandbook.whereami
            - commandbook.whereami.compass
            - commandbook.whois
            - commandbook.whois.other
            - stargate.use
            - commandbook.spawn
            - commandbook.kit.list
            - commandbook.kit.kits.starter
            - commandbook.time.check
            - commandbook.call
            - commmandbook.return
            - commandbook.say
            - commandbook.say.me
            - commandbook.msg
            - jobs.join.*
            - lwc.protect
            - triggercmds
            - triggercmds.*
            - jobs.world.Survival
            - globalshop.trade.buy
            - mobarena.arenas.*
            - mobarena.use.join
            - mobarena.use.leave
            - mobarena.use.spectate
            - mobarena.classes.*
            - monsterhunt.usercmd.hunt
            - monsterhunt.usercmd.huntscore
            - monsterhunt.usercmd.huntstatus
            - monsterhunt.usercmd.hunttele
            - giftpost.chest.everywhere
            - preciousstones.benefit.*
            - preciousstones.whitelist.*
            - globalshop.trade.buy
            - BCM.*
            - BCM.Global.test1
        Trusted:
            default: false
            info:
                prefix: '&7'
                suffix: ''
                build: true
                rank: 2
            inheritance:
            - Guest
            permissions:
            - bcvote.*
            - timerank.rentrank
            - timerank.buyrank
        NewMember:
            default: false
            info:
                prefix: '&a'
                suffix: ''
                build: true
                rank: 3
            inheritance:
            - Trusted
            permissions:
            - simplechestlock.lock
            - scavenger.scavenge
            - giftpost.chest.open
            - giftpost.chest.empty
            - giftpost.chest.send
            - giftpost.chest.upgrade
            - blockhead.hat.items
        Member:
            default: false
            info:
                prefix: '&a'
                suffix: ''
                build: true
                rank: 4
            inheritance:
            - NewMember
            permissions:
            - globalshop.trade.sell
            - commandbook.clear
        TrueMember:
            default: false
            info:
                prefix: '&2'
                suffix: ''
                build: true
                rank: 5
            inheritance:
            - Member
            permissions:
            - foo.bar
        SuperMember:
            default: false
            info:
                prefix: '&2'
                suffix: '&a'
                build: true
                rank: 6
            inheritance:
            - TrueMember
            permissions:
            - godPowers.demigod
            - godPowers.jesus
        VIP:
            default: false
            info:
                prefix: '&6'
                suffix: '&6'
                build: true
                rank: 7
            inheritance:
            - SuperMember
            permissions:
            - godPowers.gaia
            - godPowers.inferno
            - monsterhunt.rewardeverytime
        MiniModerator:
            default: false
            info:
                prefix: '&b'
                suffix: ''
                build: true
                rank: 7
            inheritance:
            - VIP
            permissions:
            - bar.foo
            - commandbook.teleport
            - commandbook.teleport.other
            - kiwiadmin.ban
            - kiwiadmin.kick
            - kiwiadmin.unban
            - kiwiadmin.tempban
            - kiwiadmin.ipban
            - lwc.mod
            - spyer.spy
            - spyer.stopmobs.admin
        Moderator:
            default: false
            info:
                prefix: '&9'
                suffix: ''
                build: true
                rank: 8
            inheritance:
            - MiniModerator
            permissions:
            - bar.foo
            - commandbook.clear.other
            - godPowers.maim
        Admin:
            default: false
            info:
                prefix: '&4'
                suffix: ''
                build: true
                rank: 9
            inheritance:
            - Moderator
            permissions:
            - jobs.admin.fire
            - jobs.admin.employ
            - jobs.admin.promote
            - jobs.admin.demote
            - jobs.admin.grantxp
            - jobs.admin.transfer
            - worldguard.*
            - worldedit.*
            - bb.admin.rollback
            - bb.admin.info
        SuperAdmin:
            default: false
            info:
                prefix: '&4'
                suffix: '&4'
                build: true
                rank: 10
            inheritance:
            - Admin
            permissions:
            - globalshop.admin.*
            - simplechestlock.reload
            - simplechestlock.save
            - simplechestlock.ignoreowner
            - CustomDifficulty.change
            - CustomDifficulty.reload
            - CustomDifficulty.region.define
            - CustomDifficulty.region.redefine
            - CustomDifficulty.region.set
            - CustomDifficulty.region.list
            - commandbook.give
            - commandbook.give.other
            - commandbook.give.infinite
            - commandbook.give.stacks
            - commandbook.give.stacks.unlimited
            - commandbook.more
            - commandbook.more.infinite
            - commandbook.intro
            - commandbook.midi
            - commandbook.setspawn
            - commandbook.time
            - commandbook.time.lock
            - commandbook.spawnmob
            - commmandbook.spawnmob.many
            - commandbook.weather
            - commandbook.weather.thunder
            - commandbook.broadcast
            - commandbook.slap
            - commandbook.slap.other
            - commandbook.rocket
            - commandbook.rocketother
            - commandbook.barrage
            - commandbook.barrage.other
            - commandbook.shock
            - commandbook.shock.other
            - commandbook.thor
            - commandbook.thor.other
            - commandbook.debug.info
            - commandbook.debug.clock
            - commandbook.reload
            - kiwiadmin.reload
            - stargate.create
            - stargate.create.personal
            - stargate.destroy.all
            - stargate.destroy.owner
            - stargate.hidden
            - stargate.private
            - stargate.free.use
            - stargete.free.create
            - stargate.options.hidden
            - stargate.options.alwayson
            - stargate.options.private
            - stargate.options.free
            - stargate.network.Admins
            - lwc.admin
            - worldedit.*
            - worldguard.*
            - spyer.seeAll
        Operator:
            default: false
            info:
                prefix: '&5'
                suffix: '&d'
                build: true
                rank: 11
            inheritance:
            permissions:
            - '*'
            - -godPowers.godmodeOnLogin
            - -xauth.exclude
    
    Currently Used Config
    Code:
    settings:
        debug: false
        hideUnavaible: false
        configVersion: 2
    ranks:
        Trusted:
            group: Trusted
            world: Survival
            oldgroup: Guest
            time: 60
            description: Can build, use basic commands, has access to water.
            remove: true
        NewMember:
            group: NewMember
            world: Survival
            oldgroup: Trusted
            time: -1
            buy:
                amount: 1000.0
                broadcast: true
                msg: '&B<player.name> &Ehas been promoted to &B<rank.group>'
                cost: Money
                minTime: -1
            description: Promotion to NewMember
            remove: true
        Member:
            group: Member
            world: Survival
            oldgroup: NewMember
            time: -1
            buy:
                amount: 2500.0
                broadcast: true
                msg: '&B<player.name> &Ehas been promoted to &B<rank.group>'
                cost: Money
                minTime: 180
            description: Promotion to Member
            remove: true
        TrueMember:
            group: TrueMember
            world: Survival
            oldgroup: Member
            time: -1
            buy:
                amount: 5000.0
                broadcast: true
                msg: '&B<player.name> &Ehas been promoted to &B<rank.group>'
                cost: Money
                minTime: 300
            description: Has the ability to fly and to tp to other players.
            remove: true
        SuperMember:
            group: SuperMember
            world: Survival
            oldgroup: TrueMember
            time: -1
            buy:
                amount: 100000.0
                broadcast: true
                msg: '&B<player.name> &Ehas been promoted to &B<rank.group>'
                cost: Money
                minTime: 300
            description: Promotion to highest ranking member!
            remove: true
    abilities:
        Superpick:
            world: Survival
            permission: timerank.ab.Superpick
            nodes:
            - worldedit.superpickaxe
            - worldedit.superpickaxe.area
            description: Enable Superpick
            categories:
            - pick
            - worldedit
            - mining
            buy:
                amount: 250.0
                broadcast: true
                msg: '&B<player.name> &Ehas bought superpick'
                cost: Money
                minTime: -1
            rent:
                time: 5
                amount: 25.0
                broadcast: true
                msg: '&B<player.name> &Ehas bought superpick'
                cost: Money
                minTime: -1
                gainedMsg: '&B<player.name> &Ehas rented &B<ability.name>'
                lostMsg: '&B<player.name> &Ehas lost the &B<ability.name> ability'
            time: -1
        Jump:
            world: Survival
            permission: timerank.ab.Jump
            nodes:
            - worldedit.navigation.jumpto
            description: Enable Jump
            categories:
            - navigation
            - worldedit
            - movment
            buy:
                amount: 250.0
                broadcast: true
                msg: '&B<player.name> &Ehas bought <ability.name>'
                cost: Money
                minTime: -1
            rent:
                time: 5
                amount: 25.0
                broadcast: true
                msg: '&B<player.name> &Ehas bought <ability.name>'
                cost: Money
                minTime: -1
                gainedMsg: '&B<player.name> &Ehas rented &B<ability.name>'
                lostMsg: '&B<player.name> &Ehas lost the &B<ability.name> ability'
            time: -1
    
     
  22. Offline

    Crete21

    Wow, this looks like exactly what i need =)

    However, is the Download down?

    Also, when they buy "abilities" with just the permission nodes, is it the same command as buying a rank?
     
  23. Offline

    xlilcasper

    Config looks correct, make sure they have been playing for at least 5 hours as that is why you have min time set too.

    Links are fixed.

    Buy abilities commands are /listabs and /buyab <ability>
     
  24. Offline

    Soldier187

    Well I just restarted the server again randomly and everything worked perfectly if it wasn't already and I would just like to thank you for this amazing plugin!

    Also Would it be possible to charge the players a certain amount for using commands as an alternative to renting the permission nodes?
     
  25. Offline

    Crete21

    Thanks! Where can i find this info on abilities? like list abilities command/permissions, buy/rent abilities command/permissions? If its already up somewhere i apologize, i just dont see it =(.

    Nice clean looking plugin too, the Rank List is very well done! +1
     
  26. Offline

    Devboi

    Can you have the ranks being rented for more than one world or do they HAVE to buy 2 seperate ranks?
     
  27. Offline

    tassox33

    Question: When you remove this plugin, do the changes stay in the permissions file? (I'd like it if they did)
    Is there any way that I could get it to just write the files to globalusers.yml instead of per world?
    I need this in permissions
    Code:
    bobman666:
            groups:
            - ?,VIP
            permissions: []
    
     
  28. Offline

    xlilcasper

    This is what i'm currently working on for the next version
    Only one world per rank unless you are mirroring your worlds. There is no easy way to do multi-world permissions with out changing the group name to something like <world>.<groupname> so like world1.Trusted maybe. If there is enough interest I might do that.
    When you remove it the permissions will still be there. This includes currently rented permissions.
     
  29. Offline

    tassox33

    What about the globalusers.yml though?
     
  30. Offline

    xlilcasper

    That is not possible last I looked. The author suggested not using globalusers.yml and gloabalgroups.yml. it *should* be possible just by setting the world to *
     
  31. Offline

    tassox33

    Ok what bout using the new default BukkitPermissions?
     

Share This Page