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

    cpalms

    :D really? awesome that will work :)

    However, the config file did not auto-create for me. What is the name of it?
    I am running bukkit 860, though...
     
  3. Offline

    xlilcasper

    Just a quick update on v0.1.0. I have it up and going. It is being tested now. I have one more feature to add and then it should be ready to release. I've added the ability to earn/buy/rent permission nodes. I want to add the feature so that you can buy limited number of uses for a command. Once this feature is in 0.1.0 should be complete and ready for release. If there are any features you want to see let me know and i'll add them in.
     
  4. Offline

    cpalms

    is the name of the config file config.yml ??

    getting this now:
    Code:
    [SEVERE] ===================================================
    2011-06-27 10:36:23 [SEVERE] =              ERROR REPORT START                 =
    2011-06-27 10:36:23 [SEVERE] ===================================================
    2011-06-27 10:36:23 [SEVERE] =               TIME RANK ERROR                   =
    2011-06-27 10:36:23 [SEVERE] =         INCLUDE WHEN ASKING FOR HELP            =
    2011-06-27 10:36:23 [SEVERE] ===================================================
    2011-06-27 10:36:23 [SEVERE] Version: 0.0.9
    2011-06-27 10:36:23 [SEVERE] Permissions: Permissions3
    2011-06-27 10:36:23 [SEVERE] Ranks Loaded: 16
    2011-06-27 10:36:23 [SEVERE] ===================ERROR INFO===================
    2011-06-27 10:36:23 [SEVERE] Msg: Error running command.
    2011-06-27 10:36:23 [SEVERE] CMD: org.bukkit.command.PluginCommand@1315391f
    2011-06-27 10:36:23 [SEVERE] Label: playtime
    2011-06-27 10:36:23 [SEVERE] Arguments: 1
    2011-06-27 10:36:23 [SEVERE] Args: cpcheebs
    2011-06-27 10:36:23 [SEVERE] Trace: java.lang.NullPointerException
    
     
  5. Offline

    xlilcasper

    There is still more to the error log. Please copy all the way down to where it says End Error. The Trace is one of the most important pieces.
     
  6. Offline

    cpalms

    OK here we go:
    Code:
    
    2011-06-27 11:21:08 [SEVERE] ===================================================
    2011-06-27 11:21:08 [SEVERE] =              ERROR REPORT ENDED                 =
    2011-06-27 11:21:08 [SEVERE] ===================================================
    2011-06-27 11:21:17 [INFO] BOSEconomy: Paid user wages.
    2011-06-27 11:21:41 [SEVERE] ===================================================
    2011-06-27 11:21:41 [SEVERE] =              ERROR REPORT START                 =
    2011-06-27 11:21:41 [SEVERE] ===================================================
    2011-06-27 11:21:41 [SEVERE] =               TIME RANK ERROR                   =
    2011-06-27 11:21:41 [SEVERE] =         INCLUDE WHEN ASKING FOR HELP            =
    2011-06-27 11:21:41 [SEVERE] ===================================================
    2011-06-27 11:21:41 [SEVERE] Version: 0.0.9
    2011-06-27 11:21:41 [SEVERE] Permissions: Permissions3
    2011-06-27 11:21:41 [SEVERE] Ranks Loaded: 16
    2011-06-27 11:21:41 [SEVERE] ===================ERROR INFO===================
    2011-06-27 11:21:41 [SEVERE] Msg: Error running command.
    2011-06-27 11:21:41 [SEVERE] CMD: org.bukkit.command.PluginCommand@182073e6
    2011-06-27 11:21:41 [SEVERE] Label: listranks
    2011-06-27 11:21:41 [SEVERE] Arguments: 0
    2011-06-27 11:21:41 [SEVERE] Args:
    2011-06-27 11:21:41 [SEVERE] Trace: java.lang.NullPointerException
    	at com.oberonserver.timerank.timerank.onCommand(timerank.java:364)
    	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:281)
    	at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:718)
    	at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:684)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:677)
    	at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    	at net.minecraft.server.NetworkManager.b(NetworkManager.java:217)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    	at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:401)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    2011-06-27 11:21:41 [SEVERE] ===================================================
    2011-06-27 11:21:41 [SEVERE] =              ERROR REPORT ENDED                 =
    2011-06-27 11:21:41 [SEVERE] ===================================================[/doe]
    Using bukkit 860
    permissions 2.7.x
    I'm not even sure I have the setup installed correctly. The jar never auto-created any config files to edit.

    I have it saved as config.yml and thats the only file I have besides the /data/ playerfiles.

    Is this right?
     
  7. Offline

    xlilcasper

    This should be fixed in the current version. I will hold off on adding the Use section for 0.1.0 and release it now to fix this error and added that feature in the next version. Give me a few moments to prepare it.
     
  8. Offline

    cpalms


    I just realized this plugin requires permissions 3.x
    Any older versions for 2.7.x? That's what I'm using.
     
  9. Offline

    xlilcasper

    Unfortunately no, 2.7.x doesn't have the api to change groups from another plugin. I would upgrade to 3.x though, it is almost 100% compatible and adds some nice features. Almost all plugins that support 2.7.x should support 3.x as well.
     
  10. Offline

    cpalms

    I would but converting the 2.7.x world.yml file for permissions to the 3.x version would be a ridiculous amount of recoding. I have 300+ players on my server and over 16 group ranks with tons of plugins. I hate how they changed the format...
     
  11. Offline

    xlilcasper

    I thought there was an auto converter? If not if I remember correctly it was just a simple find and replace for the world group to groups and a few other small changes.

    I can look at adding support for 2.7.x but the only way to do it would be editing the config files for it directly which would get very messy very fast and a single bug could wipe the whole thing. Not something I would like to attempt.

    New version is out. Should fix a lot of bugs. Change log looks small but that is because I didn't list all the bug fixes.
    Version 0.1.0
    • Fixed null pointer error when rent was present but empty.
    • Added ability to earn/buy/rent abilities and permission nodes.

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

    darth2499

    can you make it work for older permissions?
     
  13. Offline

    xlilcasper

    It will not work for permissions 2.7.x see the post above. You can use Group Manager or Permissions 3.x at this time. I *may* add support for 2.7.x but it is unlikely due to how it would have to be added.
     
  14. Offline

    Survivorman

    Hi, when buying/renting abilities the plugin will only add the first permission node on the list. Like in the default config the package Superpick has two permission nodes:
    Code:
    abilities:
        Superpick:
            world: world
            permission: timerank.ab.Superpick
            nodes:
            - worldedit.superpickaxe
            - worldedit.superpickaxe.area
            description: Enable Superpick
    But when I go ingame and use /buyab Superpick or /rentab Superpick it will only give me the first node:
    Code:
    users:
        Dasfaust:
            groups:
            - Trusted
            permissions:
            - worldedit.superpickaxe
    Using Permissions 3.1.5b, iConomy 5.0.1, and Craftbukkit b935.
     
  15. Offline

    xlilcasper

    Version 0.1.0a
    • Fixed bug where only the first permission node was added.

    Fixed, download latest version.

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

    Survivorman

    0.1.0a works great, thanks!

    EDIT: Actually I encountered another error, after renting an ability and shutting the server down the ability does not expire (does not remove the nodes from the player). I get this when shutting the server down:
    Code:
    2011-06-28 17:34:23 [SEVERE] ===================================================
    2011-06-28 17:34:23 [SEVERE] =              ERROR REPORT START                 =
    2011-06-28 17:34:23 [SEVERE] ===================================================
    2011-06-28 17:34:23 [SEVERE] =               TIME RANK ERROR                   =
    2011-06-28 17:34:24 [SEVERE] =         INCLUDE WHEN ASKING FOR HELP            =
    2011-06-28 17:34:24 [SEVERE] ===================================================
    2011-06-28 17:34:24 [SEVERE] Version: 0.1.0a
    2011-06-28 17:34:24 [SEVERE] Permissions: Permissions3
    2011-06-28 17:34:24 [SEVERE] Ranks Loaded: 2
    2011-06-28 17:34:24 [SEVERE] ===================ERROR INFO===================
    2011-06-28 17:34:24 [SEVERE] Trace: java.io.NotSerializableException: com.oberonserver.timerank.PurchasedAbility
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
        at java.util.LinkedList.writeObject(LinkedList.java:943)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
        at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)
        at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
        at com.oberonserver.timerank.timerank.saveRent(timerank.java:928)
        at com.oberonserver.timerank.timerank.onDisable(timerank.java:115)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:128)
        at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:878)
        at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:269)
        at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:262)
        at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:146)
        at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:312)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:391)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    2011-06-28 17:34:24 [SEVERE] ===================================================
    2011-06-28 17:34:24 [SEVERE] =              ERROR REPORT ENDED                 =
    2011-06-28 17:34:24 [SEVERE] ===================================================
     
  17. Offline

    Clucky

    I'm sorry, I probably sound like a complete idiot... but what is the time measured in? Minutes?:confused: Seconds?:confused: Hours?:confused: Thanks, can't wait to use the plugin :D
     
  18. Offline

    xlilcasper

    Version 0.1.0b
    • Fixed serialize bug so we could save rented abilities across reboots

    Minutes

    Fixed in latest version

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

    wassilij

    Code:
    2011-06-29 17:44:54 [WARNING] Task of 'TimeRank' generated an exception
    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.timerank.CheckRanks(timerank.java:1040)
        at com.oberonserver.timerank.timerank.update(timerank.java:1121)
        at com.oberonserver.timerank.timerank$TimeRankChecker.run(timerank.java:1262)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.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)
     
  20. Offline

    xlilcasper

    config file please? It looks like it might be an error there.
     
  21. Offline

    wassilij

    Here is the config file sir ;)

    Code:
    settings:
        debug: false
        hideUnavaible: false
        configVersion: 2
    ranks:
        Stammspieler:
            group: Stammspieler
            world: world5
            oldgroup: Default
            time: 3000
            description: ''
    
     
  22. Offline

    ledhead900

    Not Fixed I just Updated and this happened http://pastebin.com/jSZDdG9T

    It Appears it does not update to new config as it claims it does!, Now my Config is missing entirely.

    Will post old config on request only
     
  23. Offline

    xlilcasper

    Which version of Time Rank is this? My line 1240 is different then what that error suggests.

    Old config would be helpful. I'm pretty sure i'm missing a null check somewhere in the update routine.

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

    ledhead900

    PHP:
    settings:
        
    debugfalse
    ranks
    :
        
    Member:
            
    groupmember
            world
    world
            time
    7200
            oldgroup
    : Default
            
    removetrue
        trust
    :
            
    grouptrust
            world
    world
            time
    30240
            oldgroup
    member
            remove
    true
    I ended up re doing it with the new config to be basicly the same as currently I have no need for renting anything YET!
     
  25. Offline

    xlilcasper

    your missing an option under settings hideUnavaible. Defaults to false. This shouldn't be erroring out though. Testing it locally now.

    Locally it worked for me. Here is it's output.
    Code:
    settings:
        debug: false
        hideUnavaible: false
        configVersion: 2
    ranks:
        Member:
            group: member
            world: world
            oldgroup: Default
            time: 7200
            description: ''
        trust:
            group: trust
            world: world
            oldgroup: member
            time: 30240
            description: ''
    
    This is version 0.1.0b

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

    ledhead900

    Strange I ended up re writing it manually tho this is what I came up with.
    PHP:
    settings:
        
    debugfalse
        hideUnavaible
    false
        configVersion
    2
    ranks
    :
        
    member:
            
    groupmember
            world
    world
            oldgroup
    : Default
            
    time7200
            description
    Can Lock Chests,Doors,Furnaces,Can Accept Teleport Requests!.
            
    removetrue
        trust
    :
            
    grouptrust
            world
    world
            oldgroup
    member
            time
    30240
            description
    Has Access To TnT.
            
    removetrue
     
  27. Offline

    colddemon

    Am I blind or are there realy no permission nodes in the description?
    Sry to ask but I can't find any and would like to give players the ability to use /playtime fo themself.
     
  28. Offline

    xlilcasper

    It is listed right below each command. Labeled Permission Nodes.
    Basically though it is timerank.<commandname> so playtime would be timerank.playtime
     
  29. Offline

    yaitsbilly

    Is there a way i can output the total time played per person on a webserver?
     
  30. Offline

    xlilcasper

    Hum.. no easy way as of right now, if you want I can make a command and/or an option to generate a simple html page every X minutes in the next version.
     
  31. Offline

    Jaminb2030

    Got this Error on server start:
    Code:
    
    2011-07-02 23:17:20 [INFO] [TimeRank] Old config version 1 detected. Updating to new config format.
    2011-07-02 23:17:20 [SEVERE] ===================================================
    2011-07-02 23:17:20 [SEVERE] =              ERROR REPORT START                 =
    2011-07-02 23:17:20 [SEVERE] ===================================================
    2011-07-02 23:17:20 [SEVERE] =               TIME RANK ERROR                   =
    2011-07-02 23:17:20 [SEVERE] =         INCLUDE WHEN ASKING FOR HELP            =
    2011-07-02 23:17:20 [SEVERE] ===================================================
    2011-07-02 23:17:20 [SEVERE] Version: 0.1.0b
    2011-07-02 23:17:20 [SEVERE] Permissions: Permissions3
    2011-07-02 23:17:20 [SEVERE] Ranks Loaded: 0
    2011-07-02 23:17:20 [SEVERE] ===================ERROR INFO===================
    2011-07-02 23:17:20 [SEVERE] Trace: java.lang.NullPointerException
        at com.oberonserver.timerank.timerank.updateConfig(timerank.java:285)
        at com.oberonserver.timerank.timerank.loadConfig(timerank.java:138)
        at com.oberonserver.timerank.timerank.onEnable(timerank.java:88)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    2011-07-02 23:17:20 [SEVERE] ===================================================
    2011-07-02 23:17:20 [SEVERE] =              ERROR REPORT ENDED                 =
    2011-07-02 23:17:20 [SEVERE] ===================================================
    2011-07-02 23:17:20 [INFO] [Time Rank] Version 0.1.0b Enabled.
    2011-07-02 23:17:20 [INFO] [TimeRank] Payment method found (iConomy version: 5)
    2011-07-02 23:17:20 [INFO] [TimeRank] Group Manager found.
    2011-07-02 23:17:20 [INFO] [Time Rank] Using permissions GroupManger
    
    If you want to know about the plugins we have there listed on out main page:
    http://www.realmcraft.us/

    Also in the plugins folder is eptie there is nothing at all in it and i can find anywhere about how to configure it.
    It seems to be working i just cannot seem to configure anything.


    Also here is the entire server startup if it helps:

    Code:
    2011-07-02 23:56:42 [INFO] Starting minecraft server version Beta 1.7.2
    2011-07-02 23:56:42 [INFO] Loading properties
    2011-07-02 23:56:42 [INFO] Starting Minecraft server on *:25585
    2011-07-02 23:56:43 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-904-g9277096-b953jnks (MC: 1.7.2)
    2011-07-02 23:56:43 [INFO] Preparing level "world"
    2011-07-02 23:56:43 [INFO] Preparing start region for level 0 (Seed: -2049217218020457400)
    2011-07-02 23:56:44 [INFO] Preparing start region for level 1 (Seed: -2049217218020457400)
    2011-07-02 23:56:44 [INFO] Preparing spawn area: 28%
    2011-07-02 23:56:45 [INFO] [BBROTHER] ------------------------------------
    2011-07-02 23:56:45 [INFO] [BBROTHER] Hello, and thank you for using the TESTING version of BigBrother!
    2011-07-02 23:56:45 [INFO] [BBROTHER] Please note that, since this is far from complete, there will be many bugs.
    2011-07-02 23:56:45 [INFO] [BBROTHER] IF YOU FIND ANY BUGS, PLEASE REPORT THEM ON http://bugs.nexisonline.net/bb
    2011-07-02 23:56:45 [INFO] [BBROTHER] Please stay tuned in irc.esper.net #bigbrother for updates and build notifications.
    2011-07-02 23:56:45 [INFO] [BBROTHER] ------------------------------------
    2011-07-02 23:56:47 [INFO] [BBROTHER] Building `bbdata` table...
    2011-07-02 23:56:47 [INFO] [BBROTHER] BBData H2 Driver r1 loaded!
    2011-07-02 23:56:47 [INFO] [BBROTHER] Building `bbworlds` table...
    2011-07-02 23:56:47 [INFO] [BBROTHER] Building `bbusers` table...
    2011-07-02 23:56:47 [INFO] [BBROTHER] Permissions plugin found but disabled. Enabling 'Permissions' (v2.7.2).
    2011-07-02 23:56:47 [SEVERE] Another plugin is trying to enable Permissions manually. Don't do this! It's probably me.taylorkelly.bigbrother.BBPermissions
    2011-07-02 23:56:47 [INFO] Fake Permissions version 2.7.2 is enabled!
    2011-07-02 23:56:47 [INFO] [BBROTHER] Permissions enabled using: Permissions v2.7.2
    2011-07-02 23:56:47 [WARNING] [BBROTHER] 'Help' isn't detected. No /help support
    2011-07-02 23:56:47 [INFO] [BBROTHER] BigBrother 1.9-SNAPSHOT (build #569) enabled!
    2011-07-02 23:56:50 [INFO] Loaded Essentials build 2.4.1 by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans and Xeology
    2011-07-02 23:56:50 [INFO] [Essentials] Payment method found (iConomy version: 5)
    2011-07-02 23:56:50 [INFO] Loaded EssentialsChat build 2.4.1 by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans and Xeology
    2011-07-02 23:56:50 [INFO] Loaded EssentialsGeoIP build 2.4.1 by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans and Xeology
    2011-07-02 23:56:50 [INFO] This product includes GeoLite data created by MaxMind, available from http://www.maxmind.com/.
    2011-07-02 23:56:50 [INFO] GroupManager - INFO - Scheduled Data Saving is set for every 1 minutes!
    2011-07-02 23:56:50 [INFO] GroupManager version 1.0(alpha-5) [Zombie-Version, please switch to Permissions 3] is enabled!
    2011-07-02 23:56:50 [INFO] Loaded EssentialsProtect build 2.4.1 by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans and Xeology
    2011-07-02 23:56:50 [INFO] Loaded EssentialsSpawn build 2.4.1 by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans and Xeology
    2011-07-02 23:56:52 [INFO] [iConomy] Logging is currently disabled.
    2011-07-02 23:56:52 [INFO]  - Updating H2SQL Database for latest iConomy
    2011-07-02 23:56:52 [INFO] [iConomy] Error updating database: org.h2.jdbc.JdbcSQLException: Duplicate column name "HIDDEN"; SQL statement:
    ALTER TABLE iConomy ADD HIDDEN BOOLEAN DEFAULT '0'; [42121-153]
    2011-07-02 23:56:52 [INFO] [iConomy] v5.01 (Eruanna) loaded.
    2011-07-02 23:56:52 [INFO] [iConomy] Developed by: [Nijikokun]
    2011-07-02 23:56:52 [INFO] [iConomy] hooked into Permissions.
    2011-07-02 23:56:52 [INFO] [mcMMO] Permissions enabled.
    2011-07-02 23:56:52 [INFO] mcMMO version 1.0.10 is enabled!
    2011-07-02 23:56:52 [INFO] SimpleBuy v0.6.1 by codename_B enabled
    2011-07-02 23:56:52 [INFO] Buy:Sell ratio 10:8
    2011-07-02 23:56:52 [INFO] [TimeRank] Old config version 1 detected. Updating to new config format.
    2011-07-02 23:56:52 [SEVERE] ===================================================
    2011-07-02 23:56:52 [SEVERE] =              ERROR REPORT START                 =
    2011-07-02 23:56:52 [SEVERE] ===================================================
    2011-07-02 23:56:52 [SEVERE] =               TIME RANK ERROR                   =
    2011-07-02 23:56:52 [SEVERE] =         INCLUDE WHEN ASKING FOR HELP            =
    2011-07-02 23:56:52 [SEVERE] ===================================================
    2011-07-02 23:56:52 [SEVERE] Version: 0.1.0b
    2011-07-02 23:56:52 [SEVERE] Permissions: Permissions3
    2011-07-02 23:56:52 [SEVERE] Ranks Loaded: 0
    2011-07-02 23:56:52 [SEVERE] ===================ERROR INFO===================
    2011-07-02 23:56:52 [SEVERE] Trace: java.lang.NullPointerException
        at com.oberonserver.timerank.timerank.updateConfig(timerank.java:285)
        at com.oberonserver.timerank.timerank.loadConfig(timerank.java:138)
        at com.oberonserver.timerank.timerank.onEnable(timerank.java:88)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    2011-07-02 23:56:52 [SEVERE] ===================================================
    2011-07-02 23:56:52 [SEVERE] =              ERROR REPORT ENDED                 =
    2011-07-02 23:56:52 [SEVERE] ===================================================
    2011-07-02 23:56:52 [INFO] [Time Rank] Version 0.1.0b Enabled.
    2011-07-02 23:56:52 [INFO] [TimeRank] Payment method found (iConomy version: 5)
    2011-07-02 23:56:52 [INFO] [TimeRank] Group Manager found.
    2011-07-02 23:56:52 [INFO] [Time Rank] Using permissions GroupManger
    2011-07-02 23:56:52 [INFO] [VanishNoPickup] 1.9.8 enabled.
    2011-07-02 23:56:52 [INFO] WorldEdit 4.6 enabled.
    2011-07-02 23:56:52 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-07-02 23:56:52 [INFO] WorldGuard: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-07-02 23:56:52 [INFO] WorldGuard: (world) Single session is enforced.
    2011-07-02 23:56:52 [INFO] WorldGuard: (world) TNT ignition is blocked.
    2011-07-02 23:56:52 [INFO] WorldGuard: (world) Lighters are blocked.
    2011-07-02 23:56:52 [INFO] WorldGuard: (world) Lava fire is blocked.
    2011-07-02 23:56:52 [INFO] WorldGuard: (world) All fire spread is disabled.
    2011-07-02 23:56:52 [INFO] WorldGuard: Loaded configuration for world 'world"
    2011-07-02 23:56:52 [INFO] WorldGuard: (world_nether) Single session is enforced.
    2011-07-02 23:56:52 [INFO] WorldGuard: (world_nether) TNT ignition is PERMITTED.
    2011-07-02 23:56:52 [INFO] WorldGuard: (world_nether) Lighters are PERMITTED.
    2011-07-02 23:56:52 [INFO] WorldGuard: (world_nether) Lava fire is blocked.
    2011-07-02 23:56:52 [INFO] WorldGuard: (world_nether) Fire spread is UNRESTRICTED.
    2011-07-02 23:56:52 [INFO] WorldGuard: Loaded configuration for world 'world_nether"
    2011-07-02 23:56:52 [INFO] WorldGuard: 9 regions loaded for 'world'
    2011-07-02 23:56:52 [INFO] WorldGuard 5.0-alpha10 enabled.
    2011-07-02 23:56:52 [WARNING] [EssentialsProtect] WorldGuard was detected, in the near future the following features of Protect will be disabled in favor of WorldGuard's versions
    2011-07-02 23:56:52 [WARNING] disable water flow
    2011-07-02 23:56:52 [WARNING] disable lava flow
    2011-07-02 23:56:52 [WARNING] disable water bucket flow
    2011-07-02 23:56:52 [WARNING] disable all fire spread
    2011-07-02 23:56:52 [WARNING] disable tnt explosion
    2011-07-02 23:56:52 [WARNING] disable creeper explosion
    2011-07-02 23:56:52 [WARNING] disable all damage types
    2011-07-02 23:56:52 [INFO] [XcraftGate v0.6.1] hooked into Permissions 2.7.2
    2011-07-02 23:56:52 [INFO] [XcraftGate v0.6.1] by Engelier loaded.
    2011-07-02 23:56:52 [INFO] [XcraftGate v0.6.1] loading world vipmine(NORMAL)
    2011-07-02 23:56:52 [INFO] Preparing start region for level 2 (Seed: -5338484930423951350)
    2011-07-02 23:56:53 [INFO] [XcraftGate v0.6.1] loading world world_nether(NETHER)
    2011-07-02 23:56:53 [INFO] [XcraftGate v0.6.1] loading world world(NORMAL)
    2011-07-02 23:56:53 [INFO] [XcraftGate v0.6.1] loaded 0 gates
    2011-07-02 23:56:53 [INFO] Done (0.977s)! For help, type "help" or "?"
    2011-07-02 23:56:56 [INFO] [BBROTHER] Removed 0 old records because of age in 0h00m00s.
    
     

Share This Page