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


    that's really weird. Can you try downloading it and putting it on again? (just the jar file)
  3. Offline


    sure :)
  4. Offline


    I'm having a problem where i cannot join a job on the server, the only commands that dont bring up the jobs help menu are /jobs browse and stats. Servers running 1.3.3 because clanforge havent updated it yet. Im running it with permissions and using .jobs.job.*
    Any ideas?
  5. Offline


    jobs are case sensitive. Could that be the problem?
  6. Offline


    That might be the problem. Do you mean case sensitive ingame with the slash commands? I'll check when i get home from work, thanks for the support!
  7. Offline


    slash commands shouldn't be case sensitive, but the job names definitely are.
  8. Offline

    Nathan Roe

    I'm not sure if this is an error or not but i'm running CB#818 and just got the new version of jobs. When I get XP my xp goes past 100 and I dont hit level 2, right now I'm 700/100 xp for builder... is this a bug?
  9. Offline


    I tried that just now in 2.0.0 and it didn't happen for me. I went up a level and everything was fine
  10. Offline


    Do you know why when anyone in the server picks a job their job is lost when they leave the server?
  11. Offline


    no. which version of the plugin are you using and are you getting any console errors?
  12. Offline


    1.3.3b and
    2011-06-01 04:42:47 [INFO] Jobs 1.3.3b not started, there's an error with the configuration

    # storage method, can be MySQL, sqlite, flatfile
    storage-method: flatfile

    # Requires Mysql.
    mysql-username: root
    mysql-database: minecraft
    mysql-url: jdbc:mysql://localhost:3306/
    sqlite-url: jdbc:sqlite:test.db

    # base experience needed to level up from level 1 to 2
    # experience to level up is base-exp*(1+levelingProgressionRate)^level
    base-exp: 100

    # mutiplier for xp. xp-multiplyer*jobPay = experience
    xp-multiplyer: 1.0

    # choose the prefix in chat- full = job and skill level, skill = skill level only,
    # job = job level only, none = no prefix
    chat-display: full

    # choose to broadcast when the user goes up a skill rank to everyone
    broadcast-skill-up: true

    # How often in minutes you want it to save, 0 disables periodic saving and
    # the system will only save on logout
    save-period: 0

    # money you get paid for any block placed or destroyed not in the list for your job
    flat-rate-payout: 0.0

    # Create Jobs
    # All jobs must follow this framework, <...> means optional
    # Jobs:
    # [NAME]
    # ChatColour: [COLOUR]
    # levelingProgressionRate: [double]
    # incomeProgressionRate: [double]
    # Break:
    # <object_name: [price]>
    # ...
    # <object_name: [price]>
    # Place:
    # <object_name: [price]>
    # ...
    # <object_name: [price]>
    # Kill:
    # <creature_name: [price]>
    # ...
    # <creature_name: [price]>
    # * In the break section they users will be given or subtracted money on breaking the object.
    # * In the place section they users will be given or subtracted money on placing the object.
    # * In the kill section they users will be given or subtracted money on killing a creature.
    # * levelingProgressionRate is the rate at which the experience required to get to the next
    # level increases between levels.
    # * incomeProgressionRate is the rate at which the money gained per item.
    # * ChatColour is the colour of the title.
    # NOTE: the object name must be exactly what the material is in the code. e.g:
    # cobblestone -> COBBLESTONE
    # diamond ore -> DIAMOND_ORE
    # tree trunks(any) -> LOG
    # wooden boards -> WOOD
    ChatColour: GREEN
    levelingProgressionRate: 0.15
    incomeProgressionRate: 0.05
    LOG: 0.5
    WOOD: 2.0
    SIGN_POST: -1.0
    FENCE: -1.0
    WORKBENCH: -1.0
    LADDER: -1.0
    CHEST: -1.0
    WOOD: 2.0
    SIGN_POST: 1.0
    FENCE: 1.0
    WORKBENCH: 1.0
    LADDER: 0.5
    CHEST: 1.0
    ChatColour: DARK_GRAY
    levelingProgressionRate: 0.15
    incomeProgressionRate: 0.05
    STONE: 0.5
    COAL_ORE: 2.0
    IRON_ORE: 4.0
    GOLD_ORE: 5.0
    LAPIS_ORE: 5.0
    DIAMOND_ORE: 6.0
    OBSIDIAN: 7.5
    RAILS: 2.0
    IRON_ORE: -5.0
    GOLD_ORE: -6.0
    ChatColour: DARK_GRAY
    levelingProgressionRate: 0.15
    incomeProgressionRate: 0.05
    STONE: 3.0
    GLASS: 3.5
    BRICK: 5.0
    SANDSTONE: 1.5
    SAND: 0.5
    BOOKSHELF: 2.0
    STONE: -3.0
    GLASS: -3.5
    BRICK: -5.0
    SANDSTONE: -1.5
    SAND: -0.5
    BOOKSHELF: -2.0
    ChatColour: YELLOW
    levelingProgressionRate: 0.15
    incomeProgressionRate: 0.05
    DIRT: 0.5
    GRASS: 0.5
    GRAVEL: 0.5
    SAND: 0.5
    ChatColour: GREEN

    levelingProgressionRate: 0.13

    incomeProgressionRate: 0.05




    CACTUS: 0.1


    PUMPKIN: 5.0



    RED_MUSHROOM: -1.0

    CACTUS: -0.1


    PUMPKIN: -2.5
    ChatColour: RED

    levelingProgressionRate: 0.15

    incomeProgressionRate: 0.05

    Giant: 20.0

    Skeleton: 3.5

    Spider: 2.0

    Zombie: 3.0

    PigZombie: 5.0

    Ghast: 8.0

    Slime: 2.0

    Creeper: 5.0
    # Create titles
    # to create a title, they must follow this patter.
    # Titles:
    # [Title Name]:
    # ChatColour: [ChatColor]
    # levelReq : [Integer]
    # NOTE: levelReq must be the lowest level you can be to gain this title. It is recommended
    # but not neccessary to have a title at 0.
    ChatColour: WHITE
    levelReq: 0
    ChatColour: GRAY
    levelReq: 10
    ChatColour: DARK GRAY
    levelReq: 25
    ChatColour: DARK TEAL
    levelReq: 35
    ChatColour: BLUE
    levelReq: 45
    ChatColour: DARK BLUE
    levelReq: 55
    ChatColour: RED
    levelReq: 55
    ChatColour: DARK RED
    levelReq: 75
    Skilled Expert:
    ChatColour: GOLD
    levelReq: 85
    ChatColour: BLACK
    levelReq: 90

    Was wondering was it a color?
  13. Offline


    Probably a colour issue. I'd recommend updating to 2.0.0, much better version and the error commands make more sense :p
  14. Offline


    Eh I am sorry I thought 1.3.3b was the latest @[email protected] I feel stupid lol, I will try this then.
  15. Offline


    lol. no problem. I've been working on 2.0 for quite a while and it's far better than 1.3.3 :D
  16. Offline


    @flametornado: have you taken out the Flatrate Payout? I can't find it in my files. I was a nice thing to use it with negative values.
  17. Offline


    yea, i took it out. Didn't think there was much need for it now that you can get more jobs.
  18. Offline


    Okay so I got it working, it seemed to be a colour issue. Btw is there anyway to add a negative income for doing a task like there was in the older version? Or did you change that with 2.0.0?
  19. Offline


    negative income works fine, same as before. you can set it to 0 experience though, so players don't lose experience.
  20. Offline


    What will happen if i rename a job will all invalid jobs be removed from the DB or what? because i want to change some of the names and stuff around on my server and i don't want players to lose levels. I still need to upgrade to version 2.
  21. Offline


    i'm pretty sure nothing will get lost. They just won't get loaded into the player's profile. You can then go and modify the names in the databases. Alternatively, you can create the new job (even if it's in name only), use the transfer command to transfer them to the new job and then just delete the old one.
  22. Offline


    Umm safe to use iChat with this? Also I'm getting a message cannot find max-jobs properties defaulting to unlimited. Cannot find "jobs" max-level properties defaulting to unlimited. Um what can I do about that? Also anywhere that explains me what the jobs do and what you have to do to level them up? This is on the newest version of jobs and craftbukkit.
  23. Offline


    I am using CB818 and I've made sure all the configs are correct.
    I'm coming up with this message:

    2011-06-01 13:38:50 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'jobs' in plugin Jobs v2.0.0
    at org.bukkit.command.PluginCommand.execute(
    at org.bukkit.command.SimpleCommandMap.dispatch(
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(
    at net.minecraft.server.NetServerHandler.handleCommand(
    at net.minecraft.server.NetServerHandler.a(
    at net.minecraft.server.Packet3Chat.a(
    at net.minecraft.server.NetworkManager.b(
    at net.minecraft.server.NetServerHandler.a(
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(
    Caused by: java.lang.NullPointerException
    at org.bukkit.command.PluginCommand.execute(
    ... 12 more

    If you could help please as Jobs is a large part of our server and now we have updated nobody can earn money :(
  24. Offline


    CB818 Jobs 2.0
    [SEVERE] Could not pass event ENTITY_DAMAGE to Jobs
    at org.bukkit.plugin.RegisteredListener.callEvent(
    at org.bukkit.plugin.SimplePluginManager.callEvent(
    at net.minecraft.server.EntityHuman.damageEntity(
    at net.minecraft.server.EntityPlayer.damageEntity(
    at net.minecraft.server.EntityHuman.d(
    at net.minecraft.server.NetServerHandler.a(
    at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
    at net.minecraft.server.NetworkManager.b(
    at net.minecraft.server.NetServerHandler.a(
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(
  25. Offline


    Can you upload your jobs config file?

    whoops, missed a check :(.
    It shouldn't affect the plugin working (i think), just spam up your console. I'm working on a fix and i'll upload it when i have some time.

    iChat should work fine with this plugin.

    The messages are just there to let the users know when values default. Unless you want to set the maximum number of jobs a player can join and/or the maximum level a job can reach, just ignore those messages.

    You can check the configuration file for what jobs need (everything under the break tag means you have to break it , etc ...)

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


    Thank you and yes I would like to set max amount of jobs and level but I can't find out how :D I mean I read the config it said max level and max amount of jobs in it,in green text soo.. :D
  27. Offline


    # is used as a comment. remove that and it's no longer a comment :p

    so #max-jobs... becomes max-jobs...
  28. Offline


    Thanks :D

    One more thing players on my server say /jobs join Miner for instance doesn't work and in my permissions would I have to do - 'jobs.join.Miner' and for every job? because right now it's - 'jobs.join.<jobname>'.

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

    Dr Danco

    I absolutely love this plugin! Just updated. While I'm here I can make a suggestion though:

    in this config option:
    it would be cool to have to option for the characters name to be able to display the lvl like adding Lv24 Danco or Lv24 Builder Danco as options. i don't know how hard that would or wouldnt be but id love to see that in there! it would bring more of the mmorpg element to the game!
  30. Offline


    and this too?

    [SEVERE] Could not pass event BLOCK_BREAK to Jobs
    at org.bukkit.plugin.RegisteredListener.callEvent(
    at org.bukkit.plugin.SimplePluginManager.callEvent(
    at net.minecraft.server.ItemInWorldManager.c(
    at net.minecraft.server.ItemInWorldManager.a(
    at net.minecraft.server.EntityPlayer.o_(
    at net.minecraft.server.World.entityJoinedWorld(
    at net.minecraft.server.WorldServer.entityJoinedWorld(
    at net.minecraft.server.World.playerJoinedWorld(
    at net.minecraft.server.World.cleanUp(
    at net.minecraft.server.MinecraftServer.h(


    [SEVERE] Could not pass event BLOCK_PLACE to Jobs
    at org.bukkit.plugin.RegisteredListener.callEvent(
    at org.bukkit.plugin.SimplePluginManager.callEvent(
    at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(
    at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(
    at net.minecraft.server.ItemBlock.a(
    at net.minecraft.server.ItemStack.placeItem(
    at net.minecraft.server.ItemInWorldManager.interact(
    at net.minecraft.server.NetServerHandler.a(
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.b(
    at net.minecraft.server.NetServerHandler.a(
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(
  31. Offline


    I'm having this same issue. Using Permissions 2.7.4, on 803 (now updated to 818, haven't had anyone try yet)

    As Admin I can 'employ' people, but no one can browse jobs (shows none available) or join one.
Thread Status:
Not open for further replies.

Share This Page