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

    riuthamus

    Is there any way we could get the option to remove the .... titles all together. Its just so much having Apprentice Miner Yourname: message.

    Something you could do for formating is have the name like:

    Display:
    [Miner] Riuthamus:

    Apprentice:
    [Miner] Riuthamus:

    Stuff like that? so the config would be like:

    Miner:
    blah
    blah

    Title Color:
    Apprentice:
    YELLOW

    Make sense? I guess what i am asking for is more options to format the way it looks cause... right now its overbearing in the chat. Or an option to turn it all off together.
     
  3. Offline

    flametornado

    There is an option to turn it off altogether. there's a chat-display option that you can customize to show you both title and job, job only, title only or none of them.

    I don't really want to change the job's colour by titles because jobs already have titles and there aren't enough variations of colours available so that each job and title combination can have unique colours.
     
  4. Offline

    riuthamus

    Hm.. guess i missed that
     
  5. Offline

    lobsterbee

    On my Server it kind of works, but i get
    "[WARNING] Can't keep up! Did the system time change, or is the server overloaded?"
    in the Serverconsole and every second Block "pops up" after harvesting it.
    Plugins running on my Server:
    [General-3.3.3] [Dvorak]
    AutoRepair version 1.92
    [iConomy] v4.65 (Kenzi)
    BorderGuard version 3.0
    LocalShops: version 2.2.1
    BlastControl version 1.0.3
    [MultiHome] (by oliverw92)
    [Permissions] version [2.7] (Phoenix)
    CraftBukkit[733]
     
  6. Offline

    Ryuukossei

    Love the new Kill feature! If Player does what I think it does I added a Villain job haha.
     
  7. Offline

    macbuk

    Hi.
    This plugin is awesome, but i have some problems with it. All guys on my server are getting money and experience, but they dont get experience. I only changed names in settings using notepad++, so tabs are ok. If something is worth less than 1, ie. 0.5 it wont give experience? I dont get anything in console, just
    0. nick
    5. nick
    when someon gets job.

    What is the problem?

    @EDIT: It seems it only wont give exp for materials worth less than 1, or stone.
     
  8. Offline

    Syrena

    id like too know when you have a really big list in jobs like Miner for example how come it doesnt show and i get a internal error could you some how make it so you can go too page 2 or 3 for that? and for the hunter class i get coins for killing things when im not even a hunter while im a miner
     
  9. Offline

    Azhkanizkael

    Every time I kill something as a jobs that I have setup to kill the thing It just says "You killed CraftPigZombie and earnt 0.1"
    Where CraftPigZombie is the creatures name, kinda like CraftGhast or CraftZombie.
     
  10. Offline

    Ross Gosling

    did that for me too, dunno why

    My jobs i made wont work
    It says Jobs not in use, configuration error
    So can someone help fix it
     

    Attached Files:

    Last edited by a moderator: May 14, 2016
  11. Offline

    Shooty

    hey, i have question, How to turn off the money on mobs ? Because I use another plugin that takes care of it.

    Thanks.
     
  12. Offline

    pedrohh

    With this plugin the animals/monsters don't drop items anymore? Is this normal?
     
  13. Offline

    flametornado

    That means that your computer isn't up to handling the minecraft server and the plugins you have. I don't really think it's part of my plugin since it's really really lightweight and barely keeps any information or does much calculation.

    Yup, Player means any player. good for PvP classes but can get be used as griefing, so be careful with that.

    That is an ongiong "feature", I will probably change the experience counter to a double since this is happening a lot. I was reluctant to do this, because to do it properly means changing the database schema, which would invalidate all current saves. I will most likely change the value to a double in the code so this problem doesn't occur but i will still store it as an integer in the database. This will lead to people losing a maximum of .99 exp. I'm assuming people won't start hating me too much for that.

    .... i am sooo confused by what you're saying :(.

    Whoops, I left some debugging code in there. Sorry, i will remove that in the next update.

    Mobs will not give you money with this plugin unless they're in your job.

    all drops should be fine. When i tested it, the drops were normal. It does mess with the animation. That's because of the way you have to check when a creature has been killed by a player. I'm working on making this better.

    You spelt GRAY wrong in the titles. It's GRAY not GREY. I do the same thing all the time XD.
     
  14. Offline

    Ross Gosling

    Thanks is that cause the programs american??
     
  15. Offline

    flametornado

    Yea, bukkit is probably written by americans :p
     
  16. Offline

    Ross Gosling

    ok

    btw is there a way you could create a 'Creation' option like Build, Place and Kill so when you create something it levels you up

    final thing, is there anyway you could stop it saying "you killed a craftpig you earnt 0.0" becuase the people in my server who kill animals or enemies complain because their spammed with messages
     
  17. Offline

    flametornado

    I don't know what you mean by a creation option?

    I have removed that in the next version, which is 5 min away.
     
  18. Offline

    pedrohh

    Every time I kill some animals (that aren't on my actual job), appears me something like this: You killed CraftPig and earnt 0.0. And suddenly the mob/monster disappear and doesn't drop anything . I tried spawn 100 pigs, and I didn't get even one porckchops. I really love your plugin, but the players on the server already complained about this bug, and I don't know if I will have to change it, can you please help?

    Best regards.
     
  19. Offline

    flametornado

    try 1.3.2, which is coming really really soon.
     
  20. Offline

    Shooty

    yes, no give me the money but it's override my other plugins, and the mobs disappear so abnormal and no give money of my other plugins... and sorry i'm french and i have this message "You killed CraftPig and earnt 0.0" please add an option for totally shutdown this feature thanks :) !
     
  21. Offline

    Ross Gosling

    1. i mean that you could make a section in notepad that is called create and you gain xp if they create that item

    Woodcutter
    ChatColour
    Etc

    Break:
    wood
    Place:
    woodenplanks
    Create:
    Stick



    2. good good
     
  22. Offline

    flametornado

    fixed in 1.3.2

    Ohhh, yea i want to do that, but I don't really know how yet. The bukkit people havn't released hooks for crafting yet.

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

    Ross Gosling

    oh ok thanks

    if i want to update the plugin but keep my config can i just copy the jar over and leave out the config

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

    flametornado

    yup.
     
  25. Offline

    Ross Gosling

    gd gd, oh and is this the only plugin you've made?
     
  26. Offline

    flametornado

    So far, yes. I'm making a banking plugin to be released later. It's still really basic now but i don't have time to work much on it. I have soooo much uni work to do and sooo little time :(.
     
  27. Offline

    kahlilnc

    I want to add a Police job but is there a way to add automatic paying just overtime. Or is this not what the plugin does?
     
  28. Offline

    pedrohh

    Flame, I really don't wanna just to complain. Just installed the 1.3.2: the debug frase was in fact removed thanks, but the drops is the same. In sheeps it drops fine because it's before she dies, but with pigs/cows/etc they don't drop completely nothing, they even don't show any drop in the floor or in the inventory..

    Regards
     
  29. Offline

    Ross Gosling

    oh so this is like what you do in your spare time for some money while ur at uni
     
  30. Offline

    Shooty

    thanks it's work !
     
  31. Offline

    flametornado

    Not really. I'm doing this for fun (yes, i'm one of those people). I've got a small private minecraft server running and I made this plugin more for them since killing monsters was the only way to get paid and the existing plugins didn't do what i wanted them to do. I just decided to post it and see how it went. A lot of the new features were brought about by the community wanting them.

    Works for me, I still get drops, they do seem for some reason to be rarer, I have no idea why. My plugin does nothing but montior the damage events and when a player damages a creature it then checks if it's dealt lethal damage, if yes, checks how much to pay the player. It doesn't modify the event in the slightest and therefore should not change any drops or any behaviour. It does the same things with placing and breaking blocks, just monitoring the events.
     
Thread Status:
Not open for further replies.

Share This Page