Inactive Jobs v2.0.1 - Jobs plugin for Minecraft (iConomy 4/5 & BOSEconomy, Permissions) [860]

Discussion in 'Inactive/Unsupported Plugins' started by flametornado, Apr 17, 2011.

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

    flametornado

    NOTE: THIS PLUGIN IS NO LONGER BEING DEVELOPED \ SUPPORTED BY ME.

    phrstbrn HAS TAKEN UP THE DEVELOPMENT \ SUPPORT AND ALL QUERIES SHOULD GO TO HIM ON HIS POST. (http://forums.bukkit.org/threads/ec...t-935-iconomy-5-boseconomy-permissions.23429/)


    Jobs - The Job plugin for Minecraft:
    Version: 2.0.1

    Requires:
    • iConomy 4/5 / BOSEconomy
    Optional

    • Stats and Achievements
    • Permissions
    • MySQL
    A fully configurable plugin that allows you to get paid for breaking, placing and killing. Class based (experience increases as you perform your job).


    NOTE: Please read the comments in the configuration file thoroughly and check the console errors before posting here for help.

    [fire]IMPORTANT [fire]: If you want to upload your config for help, please do so using the forum's upload functionality.

    If you like this plugin, please donate.

    [​IMG]

    Video



    Thanks Samkio for the plugin tutorial video.

    Downloads
    Previous Versions (open)



    Features:
    • Create your own custom jobs and choose what they get paid for and how much.
    • Leveling mechanic where higher level jobs will give higher incomes. Income earnt = experience gained.
    • Equation determining maximum experience, experience gained and income gained is customizable.
    • Customizable skill levels in the game to mark leveling milestones (fully customizable in the configuration file).
    • Your profession and skill level is part of your display name and whenever you talk everyone will know what you do and how good you are. (optional)
    • Stats of your maximum level in a job is saved if you have the stats and achievements plugin. ( for bragging rights) (optional)
    • Does periodic saving and save on player exiting the server.
    • Leaving a job resets your job level and experience to 0.
    • Permissions support.
    • Admin commands work even when the players are offline.
    Source:


    I made a sourceforge account for this. It will allow you to report bugs and feature requests. It'll help me a lot to make sense of this.

    The link is https://sourceforge.net/projects/flametornadjobs/.

    Some rules before you go there:
    1. Please look through the bugs that have already been reported to see if someone else has already reported that bug. If you have any extra information, post it on the bug's comments. The more information I have, the easier it is for me to fix it and test it.
    2. Same as above for feature requests.


    Commands:
    Code:
    Player:
    /jobs browse -  View a list of the available jobs.
    /jobs join [job name] - Join the job.
    /jobs leave [job name] - Leave the job.
    /jobs info [job name] [break, place, kill] - view information about that job.
    /jobs stats - view your job level and experience needed to level up.
    
    Admins:
    /jobs fire [playername] [job] - fire the player from the specified job.
    /jobs employ [playername] [job] - employ the player into the specified job.
    /jobs promote [playername] [job] [levels] - promote the player in their job X levels.
    /jobs demote [playername] [job] [levels] - demote the player in their job X levels.
    /jobs grantxp [playername] [job] [experience] - grant the player X experience in the selected job.
    /jobs removexp [playername] [job] [experience] - remove X experience from the player in the selected job.
    /jobs transfer [playername] [oldjob] [newjob] - transfer the player's job (keeps levels and experience)
    
    NOTE: All job names are case sensitive.
    
    Permissions Nodes:
    Code:
    jobs.join.<jobname> - allows the group to join the job. Where <jobname> is replaced with the job name (e.g. jobs.join.Woodcutter or jobs.join.* to join all jobs).
    jobs.world.<worldname> - allows players to get paid on selected world.
    
    jobs.admin.fire - enables the fire admin command.
    jobs.admin.employ - enables the employ admin command.
    jobs.admin.promote - enables the promote admin command.
    jobs.admin.demote - enables the demote admin command.
    jobs.admin.grantxp - enables the grant experience admin command.
    jobs.admin.removexp - enables the remove experience admin command.
    jobs.admin.transfer - enables the transfer admin command.
    Changelog:

    Version 2.0.2 WIP
    • Added more parameters to job level up (jobname, jobcolour, titlename, titlecolour, playername, playerdisplayname, joblevel)
    • Fixed promote and demote to correctly change the max exp.
    • job names are no longer case sensitive.
    • Changed the saving mechanism to be synchronous instead of asynchronous (may help with people losing jobs)
    • added config option of enable-pay-near-spawner in general config.
    • Fixed some NPE
    • Wolves killing things gives the player money and experience.
    • Fixed empty tags not resulting in errors.
    • fixed mysql password is all numbers.
    • fixed honorific error
    NOTE: This version is stable, but not fully tested. I will not release this version fully until i track down the jobs vanishing bug and destroy it for all the hassle it has cause me :p


    Version 2.0.1
    • Small bugfixes
    • Moved where the update stats command is called so it won't break anything if there's an error in it. Should also improve performance slightly
    • made the enabling of the stats and achievements plugin optional (configuration parameter in general settings
    • ChatColour can now be in any case and it'll still work.
    Version 2.o.0

    • Multiple jobs
    • Exposed equations
    • More customization
    • Can specify sub-class
    • Can specify job class kills.
    • Messages are customizable.
    • Kills with arrows works
    • Admin commands (work offline too)
    • Can disable payout on certain worlds (mainly for creative servers).
    • Can limit the number of jobs a player can have
    • Can limit the number of people that can have a certain job per server.
    • Better console error messages.
    • Plugin disables itself properly.
    Changelog (open)



    Version 1.3.3b and 1.3.2b
    • Killing works properly now. Drops seem to have gone back to normal levels and you can kill stuff and get paid for it all the time.
    • 1.3.3b is for iConomy 5 AND ONLY iConomy 5
    • 1.3.2b is for before iConomy 5 AND ONLY before iConomy 5
    Version 1.3.3

    • iConomy 5 support.
    Version 1.3.2

    • Removed annoying spam message which was for debugging and i forgot in for 1.3.1
    • Changed experience to be a double so people get experience for things less than 1. Saving mechanism still saves using integers, it would create waaaay too much fuss to change this since the database schema would need to be changed for everyone that used this plugin and it would render all previous saves incompatible. This seems like a decent compromise. People will lose a maximum of .99 exp when they log out.
    • Better method for checking when an animal's dead, should fix the weird animation problem and the lack of drops some people have been experiencing.
    Version 1.3.1

    • Killing near mob spawners will not give you money anymore.
    • Displays payment amount when you do /jobs info for killing now too.
    • Changed way that you create kill tags incode. Results in the system crashing and the plugin not being enabled if you got the wrong name (e.g. capitals or misspelt name)
    Version 1.3.0

    • Killing stuff should work now. This section is not as thoroughly tested, but should work fine.
    • No jobs have been made with killing stuff, you're on your own with the configuration for a while but the template section has been updated, it follows the same pattern as break and place.
    Version 1.2.3 - Bugfix update

    • changed priority to make sure it gets run last (to make the following points work properly)
    • checks if you can place a block or if the event is canceled by another plugin. Done to avoid people getting rick very easily by placing blocks in areas they are not allowed.
    • Fix for players not getting removed properly in the onDisable function which results in weird names when people reload their plugins.
    Version 1.2.2

    • The titles will now take into account any previous modifications to your display name by another plugin and simply tack on the title at the front (and when you change jobs, strip it from your title and tack a new title at the front).
    Version 1.2.1

    • Base experience is now configurable
    • experience multiplier is not configurable (for those who want lower economies). If you want to give 0.2 of your currency to per item, then set the multiplier to 10.
    Version 1.2.0

    • A little code cleanup.
    • Permissions support
    • customizable flat rate pay
    • customizable skill titles.
    Version 1.1.2

    • Cleaned up sql commands more to make them more specific and avoid errors as much as possible. Hard to test this since neither my testing server and my proper server have any problems seen by other people.
    • Fixed the system to work with /reloadall command. The experience was still being saved, you just needed to log out. I didn't even know that this command existed, so i never thought i'd have the plugin enable with people in the server. It now takes that into account and online users will not need to log out to see their stats and work on their jobs.
    Version 1.1.1 [fire] RECOMMENDED [fire]

    • Cleaned up SQL commands to be more exact, should result in less errors.
    • New configuration for what kind of prefix to add to the username (job, skill level, both or none).
    • New configuration to toggle the option of broadcasting messages when users reach the next skill level.
    • [Stats & Achievements] - further integration, this plugin now also adds the iConomy money amount to the stats table. (will always be 1 block behind)
    • URGENT FIX - tables were not getting cleared and players ended up having multiple jobs with multiple levels instead of one job and one set of levels. Code written to auto correct this.
    Version 1.1.0

    • Added BOSEconomy integration. This should be automatically detected.
    • Added flatfile functionality for server admins who don't want to use mysql.
    • EXPERIMENTAL : Added sqlite functionality, I sadly couldn't get sqlite to work properly on my testing machine so i haven't tested it. It should work though.
    Version 1.0.1

    • Small fix on /jobs stats command. It now rounds off the two decimal places and is less annoying to look at when it gives you the price for placing/destroying a block
    Version 1.0

    • Initial build, spent the weekend on it, pretty satisfied with it, added all mentioned functionality.
    [\SPOILER]

    TODO:



    See sourceforge for requested features and bugs.
     
  2. Offline

    p000ison

    is it compitable with bukkit build 860?
    with 818 it works perfekt.


    EDIT: it works but not with essentials?
     
  3. Offline

    mcjason123

    when u level to the max level can u like get another job and quit the old job?
     
  4. Offline

    Arimaniac

    I've got Essentials + 860 and it works REALLY fine ;)

    No, what you can do is to change the title of the job, but it won't change the job anyway ...

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

    Lykkepillen

    My players are reporting that they randomely lose their jobs after a while and have to start all over. Using bukkit 860. Can you look into this please? :)
     
  6. Offline

    phrstbrn

    There is a bug with the flatfile code. After we switched to MySQL this bug disappeared. I don't know if this workaround is an option for you...
     
  7. Offline

    Draycos

    I said:

    I installed this plug in just as described, and I have changed nothing in any of the config files. but i get these errors:
    enable-stats property does not exist. Defaulting to false
    08:57:59 [INFO] [Jobs] - enable-pay-near-spawner property does not exist. Defaulting to false
    08:57:59 [INFO] [Jobs] - max-jobs property not found. Defaulting to unlimited!
    08:57:59 [INFO] [Jobs] - Job Woodcutter is missing the max-level property. defaulting to no limits !
    08:57:59 [INFO] [Jobs] - Job Woodcutter is missing the slots property. defaulting to no limits !
    08:57:59 [INFO] [Jobs] - Job Miner is missing the max-level property. defaulting to no limits !
    08:57:59 [INFO] [Jobs] - Job Miner is missing the slots property. defaulting to no limits !
    08:57:59 [INFO] [Jobs] - Job Builder is missing the max-level property. defaulting to no limits !
    08:57:59 [INFO] [Jobs] - Job Builder is missing the slots property. defaulting to no limits !
    08:57:59 [INFO] [Jobs] - Job Digger is missing the max-level property. defaulting to no limits !
    08:57:59 [INFO] [Jobs] - Job Digger is missing the slots property. defaulting to no limits !
    08:57:59 [INFO] [Jobs] - Job Farmer is missing the max-level property. defaulting to no limits !
    08:57:59 [INFO] [Jobs] - Job Farmer is missing the slots property. defaulting to no limits !
    08:57:59 [INFO] [Jobs] - Job Hunter is missing the max-level property. defaulting to no limits !
    08:57:59 [INFO] [Jobs] - Job Hunter is missing the slots property. defaulting to no limits !
    08:57:59 [INFO] [Jobs v2.0.2 WIP 4] has been enabled succesfully.
    Please help, I really want to use this plug in!

    (how do u add quotes to a post?)

    Arimaniac said-
    "This is not a bug xD ! It's just telling you that not-defined properties were defined to default values ..."


    I say: I know this is not a bug... I am just wondering how to fix or add the files I need. I don't think these "errors" would appear on an untampered with plugin.​
    Please help.​
     
  8. Offline

    flametornado

    seeds and wheat are item names not block names, crops is the block that corresponds to what you want.

    it's down to the plugin that does that. /who doesn't show the titles for me.

    you can quit a job at any time and get a new one.

    I am looking into it, but i can't reproduce it :(. Makes it very hard to fix the bug. Is that still happening on 2.0.2 WIP 4?

    They're not errors, They're just information, hence the INFO tag not SEVERE. Also, quote by clicking reply on the post.

    I fixed that. Thanks for that.

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

    Draycos

    They're not errors, They're just information, hence the INFO tag not SEVERE. Also, quote by clicking reply on the post.[/quote]

    Regardless of what they are called the default set up (and whatever I change it to) still allow players on my server to reach infinite lvl's and have infinite jobs, nor can I limit the amount of people allowed in any single job. How do I get those settings working?
     
  10. Offline

    flametornado

    oh, go into the configuration files and look for the properties with a # before them. Remove those to get the property working.
     
  11. Offline

    Draycos

    Thank you very much. All is now working as I hoped. Sorry if my original request for help or my goal in getting that help was unclear.
     
  12. Offline

    poytnt

    That I figured out, but using what is in the file I downloaded and it says Wheat and Seeds, when I change to CROPS, I get an internal error when i do /jobs, and when I change it to CROP the plugin does not load at all.[/quote]
     
  13. Offline

    flametornado

    [/quote]

    what error do you get in the server log?
     
  14. Offline

    poytnt

    what error do you get in the server log?[/quote]
    [INFO] [Jobs] - Job Hunter is missing the max-level property. defaulting to no limits !
    2011-06-21 21:45:34 [INFO] [Jobs] - Job Hunter is missing the slots property. defaulting to no limits !
    2011-06-21 21:45:34 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'jobs' in plugin Jobs v2.0.1
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:281)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:718)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:684)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:677)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:217)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:401)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
    at me.alex.jobs.config.JobsConfiguration.loadTitleSettings(JobsConfiguration.java:856)
    at me.alex.jobs.config.JobsConfiguration.<init>(JobsConfiguration.java:80)
    at me.alex.jobs.config.JobsConfiguration.getInstance(JobsConfiguration.java:1007)
    at me.alex.jobs.Jobs.onCommand(Jobs.java:1066)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more
    The max limit I know of since I didnt set a limit on that one, but the rest is from when I changed WHEAT and SEEDS to CROPS in the config.
     
  15. Offline

    flametornado

    [INFO] [Jobs] - Job Hunter is missing the max-level property. defaulting to no limits !
    2011-06-21 21:45:34 [INFO] [Jobs] - Job Hunter is missing the slots property. defaulting to no limits !
    2011-06-21 21:45:34 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'jobs' in plugin Jobs v2.0.1
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:281)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:718)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:684)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:677)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:217)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:401)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
    at me.alex.jobs.config.JobsConfiguration.loadTitleSettings(JobsConfiguration.java:856)
    at me.alex.jobs.config.JobsConfiguration.<init>(JobsConfiguration.java:80)
    at me.alex.jobs.config.JobsConfiguration.getInstance(JobsConfiguration.java:1007)
    at me.alex.jobs.Jobs.onCommand(Jobs.java:1066)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more
    The max limit I know of since I didnt set a limit on that one, but the rest is from when I changed WHEAT and SEEDS to CROPS in the config.[/quote]

    There's actually a problem with your titles.
     
  16. Offline

    poytnt

    What should the titles be, all I did was d/l the plug and start the server, with it wgeat and seeds I can do all the commands just not get paid for it, and when I change to crops I get the errors
     
  17. Offline

    flametornado

    can you zip up your configuration and upload it here?
     
  18. Offline

    poytnt

    Wont let upload a zip file, but here is the txt of it
     

    Attached Files:

  19. Offline

    flametornado

    that configuration works fine for me.
     
  20. Offline

    poytnt

    Yeah works here too, that's with Wheat and Seeds in the config, but the issue is no XP or Money is given out on placing and harvesting, then when I switched to Crops like the previous post, I get the errors in the log that I posted
     
  21. Offline

    flametornado

    can you update the config that gives you errors?
     
  22. Offline

    poytnt

    Here it is with Crops in place of wheat in break for Farmers and Crops in place of seeds in place for farmers
     

    Attached Files:

  23. Offline

    flametornado

    it works for me fine
     
  24. Offline

    Lykkepillen

    This is an option if it's possible to port the existing job ranks to MySQL.

    @flametornado It started happening after i updated to 2.0.2 WIP 4, but i will try to go with the MySQL option and see how that works =)
     
  25. Offline

    nggmc

    Have you fixed my bug yet?
    I will list my plugins if it helps... (Im using iChat so its not much of a problem but it is when admins use /list)
    (also to add it doesnt happen to new players.)
    iConomy
    Anticreeper
    iChat
    MyHome
    Permissions
    Wings
     
  26. Offline

    olimoli123

    Actually.. dw .. stupid mozilla firefox ;/
     
  27. Offline

    nggmc

    flame tornado
    I fixed the bug by deleteing permissions and then re adding it..
    You could add that to your feedback.
     
  28. Offline

    Darcion

    on server restart with last testversion i get this error

    Code:
    2011-06-22 11:55:55 [SEVERE] Error occurred while disabling Jobs v2.0.2 WIP 4 (Is it up to date?): null
    java.lang.NullPointerException
        at java.lang.String.replace(Unknown Source)
        at me.alex.jobs.Jobs.onDisable(Jobs.java:68)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
        at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:820)
        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:129)
        at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:260)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:339)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
    Pim1234 likes this.
  29. Offline

    Arimaniac

    Read the comments on jobConfig.yml file to learn how to customize your jobs. Add a value to the properties written on the console.
     
  30. Offline

    dark1256

    is it possible to disable the titels?
     
  31. Offline

    flametornado

    yup. in jobs config set the chat display to none to not display the job or the title, set them to job to only display job (or delete the titlesConfig.yml file)
     
Thread Status:
Not open for further replies.

Share This Page