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

    Sh00ck

    DOnt works ..
    No Command works.. Nothing..
     
  3. Offline

    TigerMax

    IT WOOOOORKS! THANK YOU!
     
  4. Offline

    xlilcasper

    Error message? Server log on start up?
     
  5. Offline

    TigerMax

    Found bug.<s> Writing...</s>
    When time is enough to buyrank, rank is giving automatically, without payment.
     
  6. Offline

    xlilcasper

    This is not a bug it is a planned feature. Time is how long before it auto ranks, or before that time you can buy it. If you want to be able to only buy it just remove time. If people want it I can put in a required time before being able to buy the rank.
     
  7. Offline

    TigerMax

    Okay! thanks

    Now it wont buy ranks! No errors!
    try for youself.
    Show Spoiler

    Code:
    settings:
        debug: true
        hideUnavaible: false
    ranks:
        Peasant:
            group: RankPeasant
            world: world
            oldgroup: Default
            remove: true
            cost: 265
            amount: 4
            msg: '&B<player.name> &Ehas been granted all the rights and privilages of the rank &B<rank.group>.'
        Worker:
            group: RankWorker
            world: world
            oldgroup: RankPeasant
            remove: true
            cost: 265
            amount: 16
            msg: '&B<player.name> &Ehas been promoted from &B<rank.oldgroup> &Eto &B<rank.group>.'
        Trader 2d class:
            group: Ranktrader2
            world: world
            oldgroup: RankWorker
            remove: true
            cost: 265
            amount: 32
            msg: '&B<player.name> &Ehas been promoted from &B<rank.oldgroup> &Eto &B<rank.group>.'
        Trader:
            group: Ranktrader
            world: world
            oldgroup: Ranktrader2
            remove: true
            cost: 266
            amount: 32
            msg: '&B<player.name> &Ehas been promoted from &B<rank.oldgroup> &Eto &B<rank.group>.'
    
    Code:
    groups:
        Default:
            default: true
            permissions:
                - 'timerank.buyrank'
            inheritance:
            info:
                prefix: '&f[&7Guest]&f '
                build: true
                suffix: '&f'
        RankPeasant:
            default: false
            permissions:
                - timerank.buyrank
            inheritance:
            - Default
            info:
                prefix: '&f[&2Peasant&f]&f '
                build: true
                suffix: '&2'
        RankWorker:
            default: false
            permissions:
                - timerank.buyrank
                - 'craftbook.mech.ammeter.use'
                - 'craftbook.mech.bridge'
                - 'craftbook.mech.bookshelf.use'
                - 'craftbook.mech.cauldron'
                - 'craftbook.mech.elevator'
                - 'craftbook.mech.elevator.use'
                - 'craftbook.mech.gate'
                - 'craftbook.mech.light-switch'
                - 'craftbook.ic.safe'
                - 'craftbook.ic.restricted'
                - 'craftbook.ic.safe.mcxxxx'
                - 'craftbook.ic.restricted.mcxxxx'
            inheritance:
            - RankPeasant
            info:
                prefix: '&f[&bWorker&f]&f'
                build: true
                suffix: '&f'
        Ranktrader2:
            default: false
            permissions:
                - timerank.buyrank
                - 'craftbook.mech.ammeter.use'
                - 'craftbook.mech.bridge'
                - 'craftbook.mech.bookshelf.use'
                - 'craftbook.mech.cauldron'
                - 'craftbook.mech.elevator'
                - 'craftbook.mech.elevator.use'
                - 'craftbook.mech.gate'
                - 'craftbook.mech.light-switch'
                - 'craftbook.ic.safe'
                - 'craftbook.ic.restricted'
                - 'craftbook.ic.safe.mcxxxx'
                - 'craftbook.ic.restricted.mcxxxx'
            inheritance:
            - RankWorker
            info:
                prefix: '&f[&bTrader 2d class&f]&f'
                build: true
                suffix: '&f'
        Ranktrader:
            default: false
            permissions:
                - timerank.buyrank
                - 'craftbook.mech.ammeter.use'
                - 'craftbook.mech.bridge'
                - 'craftbook.mech.bookshelf.use'
                - 'craftbook.mech.cauldron'
                - 'craftbook.mech.elevator'
                - 'craftbook.mech.elevator.use'
                - 'craftbook.mech.gate'
                - 'craftbook.mech.light-switch'
                - 'craftbook.ic.safe'
                - 'craftbook.ic.restricted'
                - 'craftbook.ic.safe.mcxxxx'
                - 'craftbook.ic.restricted.mcxxxx'
                - 'iConomy.access'
                - 'iConomy.rank'
                - 'iConomy.list'
                - 'iConomy.payment'
            inheritance:
            - Ranktrader2
            info:
                prefix: '&f[&bTrader&f]&f'
                build: true
                suffix: '&f'


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

    xlilcasper

    New Version
    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.
     
  9. Hi just installed you plugin great idea love it

    But on start up i get

    Code:
    2011-06-21 00:29:28 [SEVERE] java.lang.NullPointerException
    2011-06-21 00:29:28 [SEVERE] at com.oberonserver.timerank.timerank.loadConfig(timerank.java:108)
    2011-06-21 00:29:28 [SEVERE] at com.oberonserver.timerank.timerank.onEnable(timerank.java:73)
    2011-06-21 00:29:28 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
    2011-06-21 00:29:28 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:799)
    2011-06-21 00:29:28 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
    2011-06-21 00:29:28 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:140)
    2011-06-21 00:29:28 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:118)
    2011-06-21 00:29:28 [SEVERE] at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
    2011-06-21 00:29:28 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
    2011-06-21 00:29:28 [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
    2011-06-21 00:29:28 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    2011-06-21 00:29:28 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    and i have noticed no config file was created just a data folder
     
  10. Offline

    xlilcasper

    Config file is not auto created yet. See the config file example in the first post. It should be config.yml. You can also grab the Time Rank.zip file instead of the jar.
     
  11. Offline

    TigerMax

    Look here! Example: player has 64 iron ingots, he need to pay 16 to buy rank.
    Rank wont be bought until in one slot iron ingot count will equal 16! Not bigger, not less.
    But mod amazinG! Making RP :D
     
  12. Offline

    xlilcasper

    That is a known bug and is being worked on. Hopefully fixed in the next release.
     
  13. Many thanks will try it out tonight
    thought I had downloaded the zip last night oh well :( (silly me as usual)
     
  14. Offline

    coolz3

    everytime i do something like a command it says "An internal error occurred while performing this command" any help?
     
  15. Offline

    xlilcasper

    Server log please, it's hard to tell what is going on with out a server log.
     
  16. Offline

    morizuki

    still having a bug that it will remove in a permission.. but if i restart the server, it will go back again to normal..
     
  17. Offline

    xlilcasper

    remove what permission? can you explain a little more?
     
  18. Offline

    wassilij

    I get this error sometimes:

    Code:
    2011-06-22 21:26:48 [INFO] [Time Rank] CheckRanks: Checking wassilij against 1 ranks
    2011-06-22 21:26:48 [INFO] [Time Rank] CheckRanks: Checking wassilij for Stammspieler
    2011-06-22 21:26:49 [INFO] [Time Rank] CheckRanks: Checking OliLay against 1 ranks
    2011-06-22 21:26:49 [INFO] [Time Rank] CheckRanks: Checking OliLay for Stammspieler
    2011-06-22 21:26:49 [SEVERE] java.lang.NumberFormatException: null
    2011-06-22 21:26:49 [SEVERE]     at java.lang.Long.parseLong(Unknown Source)
    2011-06-22 21:26:49 [SEVERE]     at java.lang.Long.parseLong(Unknown Source)
    2011-06-22 21:26:49 [SEVERE]     at com.oberonserver.timerank.timerank.loadPlaytime(timerank.java:528)
    2011-06-22 21:26:49 [SEVERE]     at com.oberonserver.timerank.timerank.GetPlaytime(timerank.java:470)
    2011-06-22 21:26:49 [SEVERE]     at com.oberonserver.timerank.timerank.CheckRanks(timerank.java:750)
    2011-06-22 21:26:49 [SEVERE]     at com.oberonserver.timerank.timerank.CheckRanks(timerank.java:742)
    2011-06-22 21:26:49 [SEVERE]     at com.oberonserver.timerank.timerank.update(timerank.java:823)
    2011-06-22 21:26:49 [SEVERE]     at com.oberonserver.timerank.timerank$TimeRankChecker.run(timerank.java:967)
    2011-06-22 21:26:49 [SEVERE]     at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    2011-06-22 21:26:49 [SEVERE]     at java.lang.Thread.run(Unknown Source)
    2011-06-22 21:26:49 [INFO] [Time Rank] CheckRanks: Checking xxeros against 1 ranks
    2011-06-22 21:26:49 [INFO] [Time Rank] CheckRanks: Checking xxeros for Stammspieler
    2011-06-22 21:26:49 [INFO] [Time Rank] CheckRanks: Checking phlippden against 1 ranks
    2011-06-22 21:26:49 [INFO] [Time Rank] CheckRanks: Checking phlippden for Stammspieler
    2011-06-22 21:26:49 [INFO] [Time Rank] CheckRanks: Checking pfefferschotten against 1 ranks
    2011-06-22 21:26:49 [INFO] [Time Rank] CheckRanks: Checking pfefferschotten for Stammspieler
    2011-06-22 21:26:49 [INFO] [Time Rank] CheckRanks: Checking o0oMatto0o against 1 ranks
     
  19. Offline

    xlilcasper

    I'll see what I can do about that. Looks like it is having trouble loading a persons play time. If someone is joining right then could you check to see if there play time has reset.
     
  20. Offline

    wassilij

    Its spamming my console :(

    I cant even see the chat.

    Code:
    2011-06-22 21:36:39 [INFO] [Time Rank] CheckRanks: Checking BaumStumpf_98 for Stammspieler
    2011-06-22 21:36:39 [INFO] [Time Rank] CheckRanks: Checking xuNEful against 1 ranks
    2011-06-22 21:36:39 [INFO] [Time Rank] CheckRanks: Checking xuNEful for Stammspieler
    2011-06-22 21:36:39 [INFO] [Time Rank] CheckRanks: Checking DonPizza against 1 ranks
    2011-06-22 21:36:39 [INFO] [Time Rank] CheckRanks: Checking DonPizza for Stammspieler
    2011-06-22 21:36:39 [INFO] [Time Rank] CheckRanks: Checking Siegand against 1 ranks
    2011-06-22 21:36:39 [INFO] [Time Rank] CheckRanks: Checking Siegand for Stammspieler
    2011-06-22 21:36:39 [INFO] [Time Rank] CheckRanks: Checking euboty against 1 ranks
    2011-06-22 21:36:39 [INFO] [Time Rank] CheckRanks: Checking euboty for Stammspieler
    2011-06-22 21:36:39 [INFO] [Time Rank] CheckRanks: Checking manuBoskop against 1 ranks
    2011-06-22 21:36:39 [INFO] [Time Rank] CheckRanks: Checking manuBoskop for Stammspieler
    2011-06-22 21:36:39 [INFO] [Time Rank] CheckRanks: Checking niccza against 1 ranks
    And no player time reset.

    (Sorry for bad english :()
    Edit://
    Oh sorry, i didn't see debug=true ^^

    now its false :)

    Edit://²
    After setting debug to false now is this spamming my console:
    Code:
    2011-06-22 21:38:52 [SEVERE] java.lang.NumberFormatException: null
    2011-06-22 21:38:52 [SEVERE]     at java.lang.Long.parseLong(Unknown Source)
    2011-06-22 21:38:52 [SEVERE]     at java.lang.Long.parseLong(Unknown Source)
    2011-06-22 21:38:52 [SEVERE]     at com.oberonserver.timerank.timerank.loadPlaytime(timerank.java:528)
    2011-06-22 21:38:52 [SEVERE]     at com.oberonserver.timerank.timerank.GetPlaytime(timerank.java:470)
    2011-06-22 21:38:52 [SEVERE]     at com.oberonserver.timerank.timerank.CheckRanks(timerank.java:750)
    2011-06-22 21:38:52 [SEVERE]     at com.oberonserver.timerank.timerank.CheckRanks(timerank.java:742)
    2011-06-22 21:38:52 [SEVERE]     at com.oberonserver.timerank.timerank.update(timerank.java:823)
    2011-06-22 21:38:52 [SEVERE]     at com.oberonserver.timerank.timerank$TimeRankChecker.run(timerank.java:967)
    2011-06-22 21:38:52 [SEVERE]     at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    2011-06-22 21:38:52 [SEVERE]     at java.lang.Thread.run(Unknown Source)
    2011-06-22 21:38:53 [INFO] §f xuNEful: Warum? x__X
    2011-06-22 21:39:01 [INFO] §f xuNEful: tolle Landschaft oder wie? :o
    2011-06-22 21:39:02 [SEVERE] java.lang.NumberFormatException: null
    2011-06-22 21:39:02 [SEVERE]     at java.lang.Long.parseLong(Unknown Source)
    2011-06-22 21:39:02 [SEVERE]     at java.lang.Long.parseLong(Unknown Source)
    2011-06-22 21:39:02 [SEVERE]     at com.oberonserver.timerank.timerank.loadPlaytime(timerank.java:528)
    2011-06-22 21:39:02 [SEVERE]     at com.oberonserver.timerank.timerank.GetPlaytime(timerank.java:470)
    2011-06-22 21:39:02 [SEVERE]     at com.oberonserver.timerank.timerank.CheckRanks(timerank.java:750)
    2011-06-22 21:39:02 [SEVERE]     at com.oberonserver.timerank.timerank.CheckRanks(timerank.java:742)
    2011-06-22 21:39:02 [SEVERE]     at com.oberonserver.timerank.timerank.update(timerank.java:823)
    2011-06-22 21:39:02 [SEVERE]     at com.oberonserver.timerank.timerank$TimeRankChecker.run(timerank.java:967)
    2011-06-22 21:39:02 [SEVERE]     at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    2011-06-22 21:39:02 [SEVERE]     at java.lang.Thread.run(Unknown Source)
    2011-06-22 21:39:04 [INFO] §f niccza: ich hasse stadt :D
    2011-06-22 21:39:12 [SEVERE] java.lang.NumberFormatException: null
    2011-06-22 21:39:12 [SEVERE]     at java.lang.Long.parseLong(Unknown Source)
    2011-06-22 21:39:12 [SEVERE]     at java.lang.Long.parseLong(Unknown Source)
    2011-06-22 21:39:12 [SEVERE]     at com.oberonserver.timerank.timerank.loadPlaytime(timerank.java:528)
    2011-06-22 21:39:12 [SEVERE]     at com.oberonserver.timerank.timerank.GetPlaytime(timerank.java:470)
    2011-06-22 21:39:12 [SEVERE]     at com.oberonserver.timerank.timerank.CheckRanks(timerank.java:750)
    2011-06-22 21:39:12 [SEVERE]     at com.oberonserver.timerank.timerank.CheckRanks(timerank.java:742)
    2011-06-22 21:39:12 [SEVERE]     at com.oberonserver.timerank.timerank.update(timerank.java:823)
    2011-06-22 21:39:12 [SEVERE]     at com.oberonserver.timerank.timerank$TimeRankChecker.run(timerank.java:967)
    2011-06-22 21:39:12 [SEVERE]     at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    2011-06-22 21:39:12 [SEVERE]     at java.lang.Thread.run(Unknown Source)
     
  21. Offline

    z0z1ch

    error, help!
    Code:
    10:26:37 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-823-
    gb9d0b04-b860jnks (MC: 1.6.6)
    10:26:37 [INFO] Preparing level "world"
    10:26:37 [INFO] Preparing start region for level 0
    10:26:38 [INFO] [PermissionsEx] sql backend registered!
    10:26:38 [INFO] [PermissionsEx] file backend registered!
    10:26:38 [INFO] [PermissionsEx] PermissionEx plugin initialized.
    10:26:38 [INFO] [PermissionsEx] p2compat backend registered!
    10:26:38 [INFO] [PermissionsCompat] Compatibility Layer Initalized!
    10:26:38 [INFO] [PermissionsEx] Initializing file backend
    10:26:38 [INFO] [PermissionsEx] Modifyworld is enabled.
    10:26:38 [INFO] [PermissionsEx] v1.12 enabled
    10:26:38 [INFO] [Time Rank] Keys size 1
    10:26:38 [INFO] [Time Rank] Loaded admins with group admins in world world
    10:26:38 [INFO] [Time Rank] Version 0.0.7Enabled.
    10:26:38 [INFO] [TimeRank] Permissions 3.x found.
    10:26:38 [SEVERE] Could not pass event PLUGIN_ENABLE to TimeRank
    java.lang.NoClassDefFoundError: com/nijiko/permissions/Entry
            at com.oberonserver.timerank.timerank.setupPermissions(timerank.java:171
    )
            at com.oberonserver.timerank.TimeRankServerListener.onPluginEnable(TimeR
    ankServerListener.java:54)
            at org.bukkit.plugin.java.JavaPluginLoader$38.execute(JavaPluginLoader.j
    ava:504)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:310)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:806)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:253)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:140)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:118)
            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:283)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ClassNotFoundException: com.nijiko.permissions.Entry
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:36)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:24)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            ... 14 more
    10:26:38 [INFO] [PermissionsCompat] Compatibility layer enabled.
    10:26:38 [INFO] Done (0,095s)! For help, type "help" or "?"
    >
     
  22. Offline

    morizuki

    can you remove the [INFO] [Time Rank] CheckRanks: Checking XXXXX for [GROUP]

    x=name
    group=permission group

    it keep spamming my console, also i suggest a disable time so it won't spam my console :)
     
  23. Offline

    z0z1ch

    morizuk , in the file "config.yml" set the value "debug: true" to "debug: false"
     
  24. Offline

    xlilcasper

    This does not support PermissionsEx at this time. I will see if I can add support in for it.

    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.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  25. I'm getting this on player login:

    Code:
    2011-06-25 00:05:06 [SEVERE] Could not pass event PLAYER_JOIN to TimeRank
    java.lang.NullPointerException
        at com.oberonserver.timerank.timerank.ProcessMsgVars(timerank.java:1240)
        at com.oberonserver.timerank.timerank.CheckRanks(timerank.java:1064)
        at com.oberonserver.timerank.TimeRankPlayerListener.onPlayerJoin(TimeRankPlayerListener.java:30)
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:243)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
        at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:126)
        at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:96)
        at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:33)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:399)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
     
  26. Offline

    phrstbrn

    When trying to buy ranks, we were getting a NullPointerException thrown...

    Code:
    2011-06-25 00:36:25 [SEVERE] ===================================================
    2011-06-25 00:36:25 [SEVERE] =              ERROR REPORT START                 =
    2011-06-25 00:36:25 [SEVERE] ===================================================
    2011-06-25 00:36:25 [SEVERE] =               TIME RANK ERROR                   =
    2011-06-25 00:36:25 [SEVERE] =         INCLUDE WHEN ASKING FOR HELP            =
    2011-06-25 00:36:25 [SEVERE] ===================================================
    2011-06-25 00:36:25 [SEVERE] Version: 0.0.9
    2011-06-25 00:36:25 [SEVERE] Permissions: Permissions3
    2011-06-25 00:36:25 [SEVERE] Ranks Loaded: 5
    2011-06-25 00:36:25 [SEVERE] ===================ERROR INFO===================
    2011-06-25 00:36:25 [SEVERE] Msg: Error running command.
    2011-06-25 00:36:25 [SEVERE] CMD: org.bukkit.command.PluginCommand@5e8542
    2011-06-25 00:36:25 [SEVERE] Label: buyrank
    2011-06-25 00:36:25 [SEVERE] Arguments: 1
    2011-06-25 00:36:25 [SEVERE] Args: Knight
    2011-06-25 00:36:25 [SEVERE] Trace: java.lang.NullPointerException
        at com.oberonserver.timerank.timerank.ProcessMsgVars(timerank.java:1240)
        at com.oberonserver.timerank.timerank.BuyRank(timerank.java:864)
        at com.oberonserver.timerank.timerank.onCommand(timerank.java:429)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:287)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:712)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:678)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:671)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        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:399)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    2011-06-25 00:36:25 [SEVERE] ===================================================
    2011-06-25 00:36:25 [SEVERE] =              ERROR REPORT ENDED                 =
    2011-06-25 00:36:25 [SEVERE] ===================================================
    We found leaving "rent" empty ( {} ) in the config was causing these errors. As a workaround, we added dummy config values for rent, which seemed to silence the NullPointerException.
     
  27. Offline

    xlilcasper

    Ah, problem with the new config format. Removing rent should work as well. Not sure why the auto converter is adding it in empty.

    This bug is fixed in the next version, just trying to get one more thing in before I release 0.1.0

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

    Loko2701

    Code:
    2011-06-19 23:23:19 [INFO] TigerMax [/94.180.194.152:53365] logged in with entity id 134 at ([ world] 106.48232651156076, 70.0, 40.461512019256354)
    2011-06-19 23:23:19 [INFO] [Time Rank] CheckRanks: Checking TigerMax against 2 ranks
    2011-06-19 23:23:19 [INFO] [Time Rank] CheckRanks: Checking TigerMax for Vet
    2011-06-19 23:23:19 [INFO] [Time Rank] CheckRanks: Checking TigerMax for Trusted
    2011-06-19 23:23:24 [INFO] [Time Rank] TigerMax is trying to buy trusted
    2011-06-19 23:23:24 [INFO] [Time Rank] Looking for trusted
    2011-06-19 23:23:24 [INFO] [Time Rank] Checking trusted=Vet
    2011-06-19 23:23:24 [INFO] [Time Rank] Checking trusted=Trusted
    2011-06-19 23:23:24 [INFO] [Time Rank] trusted found. Checking cost: -1
    I get this error, I already set up to 266 the cost and the amount but I get the same error, and I can't rent, and even with cost -1 when I buy I don't get to the group

     
  29. Offline

    xlilcasper


    Are you getting any error? I don't see an error listed. A little bit farther down should say if it added the group or not. Do you have the Trusted group defined in your permissions? Is this using Group Manager or Permissions 3.x? Could you post your time rank's config.yml?
     
  30. Offline

    cpalms

    Does the permission node
    -timerank.buyrank

    Work with specific ranks? Like say I had a group called Constructor that I only wanted Builders to be able to buy.
    Could I use:

    -timerank.buyrank.Constructor

    In the Builder's permission nodes? Would this work?
     
  31. Offline

    xlilcasper

    No, I could add that but an easier way would be to set
    oldGroup: Builders
    If they are not in oldGroup they can not buy that rank.
     

Share This Page