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




    Jobs - The Job plugin for Minecraft:
    Version: 2.0.1

    • iConomy 4/5 / BOSEconomy

    • 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.



    Thanks Samkio for the plugin tutorial video.

    Previous Versions (open)

    • 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.

    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

    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.

    /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.
    /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:
    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).<worldname> - allows players to get paid on selected world. - 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.

    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.


    See sourceforge for requested features and bugs.
  2. Offline


    zip the file up and then click the upload a file button next to post reply, upload it and then post
  3. Offline


    zip? wont that delete it from the folder and will mess it up
  4. Offline


    ... or you could just copy and paste it into here, that's the simplest way.
  5. Offline


    nvm here ya go

    Attached Files:

  6. Offline


    what is wrong?
  7. Offline


    Not, sure , I assumed you didn't have the<worldname> permission set up properly, it happens quite often. If you don't have multiple worlds, try* and see if that fixes things?
  8. Offline


    thank you so much it works and now my server people can level up!! ill like jobs for you
  9. Offline


    public void reloadHonorific(){
            String newHonorific = getDisplayHonorific();
            if(honorific.equals(" ") || honorific.equals("")){
                player.setDisplayName(newHonorific + player.getDisplayName());
                if(newHonorific.equals(" ")){
                    player.setDisplayName(player.getDisplayName().replace(honorific, ""));
                    player.setDisplayName(player.getDisplayName().replace(honorific, newHonorific));
            honorific = newHonorific;
    player.setDisplayName(player.getDisplayName().replace(honorific, newHonorific));

    If the current honorific="" then this could get ugly and explain the repeated titles.

    Since this bug occurs when you don't have a job and you join a new job then I'd say this is the cause.
  10. Offline


    I fixed it. Just download and use version 2.0.1

    Worked for me. Good luck mate.
  11. Offline


    I fixed the bug with honorific code, and removed the quirk. See attached diff.

    The code Matterz167 posted fixes the bug, but doesn't remove the quirk. This is a cleaner way to fix the problem.

    I tested this patch with Alpha52 + Matters167.

    Attached Files:

  12. Thank god I got my "people" working on it :D
  13. Offline


    Happening with W.E.P
  14. Offline


    Mo's creature. :)
  15. Offline



    Every time a user sign up for a job this prefix (each letter of the users name in front of tje jobs prefix) is displayed untill relog. It only happens if the user don't have a job and sign up for a new one. If you sign up for your second job (max is set to 2) it works like a charm.

    I get no error messages but my console looks like this

    09:09:55 [INFO] <§fNovice§f §5Woodcutter§f Lykkepillen> Test
    09:10:13 [INFO] <§fNovice§f §5Woodcutter§f L§fNovice§f §5Woodcutter§f y§fNovice§f §5Woodcutter§f k§fNovice§f §5Woodcutter§f k§fNovice§f §5Woodcutter§f e§fNovice§f §5Woodcutter§f p§fNovice§f §5Woodcutter§f i§fNovice§f §5Woodcutter§f l§fNovice§f §5Woodcutter§f l§fNovice§f §5Woodcutter§f e§fNovice§f §5Woodcutter§f n§fNovice§f §5Woodcutter§f > Test
    Any idea?
  16. Offline


    I already gave a solution to this earlier. So did @phrstbrn. It is a problem with the reloadHonorific() method

    You can either manually edit the class file and re-build the .jar or wait for @flametornado to get back online.
  17. Offline


    When ingame how do I take off titles when using /list command?
  18. Offline


    not sure, i thought /list would use the actual name, not the display names, i use /who from CommandBook and that only gives out the names and only titles.

    @Matterz167 & @Lykkepillen & @olimoli123 & @Alpha52 & @cpalms & @phrsbrn I've made some changes to the reload honorific code in wip 4, can you please try it and tell me if you're still getting a mess or if it's fine now. Also sorry for taking so long to fix this.

    I'll look into adding support for Mo creature soon.

    To everyone else that's reading this, it seems like in bukit 901 events for furnace smelting got added, so if it's still there in the next RB, you should expect smelting jobs to follow soon after it.
  19. Offline


    My log (open)
    2011-06-20 20:24:12 [INFO] [Jobs] - enable-stats property does not exist. Defaulting to false
    2011-06-20 20:24:12 [INFO] [Jobs] - enable-pay-near-spawner property does not exist. Defaulting to false
    2011-06-20 20:24:12 [INFO] [Jobs] - max-jobs property not found. Defaulting to unlimited!
    2011-06-20 20:24:12 [INFO] [Jobs v2.0.2 WIP 3] has been enabled succesfully.
    2011-06-20 20:24:12 [INFO] [Jobs] Successfully linked with iConomy 5+.
    2011-06-20 20:24:12 [INFO] [Jobs] Successfully linked with Permissions.[/spolier]

    "max-jobs property not found. Defaulting to unlimited", This the folder of the number of job the player can Join ? If yes, can you had this folder because i want the player have 2 jobs, not 3,4,5,6, just 2 jobs.

    Sorry for my bad English...
  20. Offline


    in generalConfig.yml, remove the # in front of max-jobs and change the 3 to a 2
  21. Offline


    Yes --' i don't have see, Thanks
  22. Offline


    at net.minecraft.server.MinecraftServer.h(
    at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
    at net.minecraft.server.NetLoginHandler.a(
    at net.minecraft.server.NetworkManager.b(
    at net.minecraft.server.Packet1Login.a(SourceFile:43)
    at net.minecraft.server.NetLoginHandler.a(
    at net.minecraft.server.NetLoginHandler.b(
    at net.minecraft.server.ServerConfigurationManager.c(
    at org.bukkit.plugin.SimplePluginManager.callEvent(
    at org.bukkit.plugin.RegisteredListener.callEvent(
    at com.Nicogeta.Nicogeban.NicogebanPlayerListener.onPlayerJoin(
    at org.bukkit.craftbukkit.entity.CraftPlayer.kickPlayer(
    at net.minecraft.server.NetServerHandler.disconnect(
    at net.minecraft.server.ServerConfigurationManager.disconnect(
    at org.bukkit.plugin.SimplePluginManager.callEvent(
    at org.bukkit.plugin.RegisteredListener.callEvent(
    > 17:57:28 [SEVERE] Could not pass event PLAYER_QUIT to Jobs
    I just installed it. After a time I'm getting this error.. realy don't know why.
  23. Offline


    can you upload the whole log please?
  24. Offline


  25. Offline


  26. Offline


    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!
  27. Offline


    The jobs Farmer will not pay out for harvesting Wheat nor placing seeds.
    Any idea what I can do to fix this?
  28. Offline


    /who and /list do the something , And I dont want titles when I use these commands. How do I remove them?
  29. Offline


    Can I completely get disable prefixes? I already have "Member, Guest, and Admin groups. I want the prefix to be the same no matter what job they are in.
  30. Offline


    Your WIP4 introduces a new bug that creates a conflict when working with other plugins that muck with the username. See attached....

    Attached Files:

  31. Offline


    Maybe could you find a way for players to see other players' jobs ... like change the skin or something.

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

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Jul 17, 2016
Thread Status:
Not open for further replies.

Share This Page