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. Hmm yes we do get lag, when I break a blok it takes like 3 -4 seconds for it to drop... So its a massive server lag that makes it unplayable unfortunately... I don't know what I can do to make it work.. I would love this plugin.. But for now im waiting for the craftbuckit 1.6.5 release and I will test it again.. :)
     
  3. Offline

    nexusrightsi

    Hi man i have the latest 2.0.0 RC build and while i was creating custom jobs i ren into this error this post include my job config
    @ the chatcolour i get the error beneath this job is the error

    Jobs config:
    Code:
        Guard:
            fullname: Guard
            shortname: G
            ChatColour: WHITE
            chat-display: full
            max-level: 100
            slots: 30
            leveling-progression-equation: 100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))
            income-progression-equation: baseincome*((1.05)^(joblevel-1))
            experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
            Kill:
                Chicken:
                    income: -1.0
                    experience: 0.0
                Cow:
                    income: -1.0
                    experience: 0.0
                Pig:
                    income: -1.0
                    experience: 0.0
                Sheep:
                    income: -1.0
                    experience: 0.0
                Wolf:
                    income: 2.0
                    experience: 2.0
                Creeper:
                    income: 3.0
                    experience: 2.0
                Giant:
                    income: 12.0
                    experience: 2.0
                Skeleton:
                    income: 5.0
                    experience: 2.0
                Spider:
                    income: 5.0
                    experience: 2.0
                Zombie:
                    income: 5.0
                    experience: 2.0
                PigZombie:
                    income: 12.0
                    experience: 2.0
                Squid:
                    income: -1.0
                    experience: 0.0
                Ghast:
                    income: 20.0
                    experience: 2.0
                Slime:
                    income: 2.0
                    experience: 2.0
            custom-kill:
                Mercenary:
                    income: 25.0
                    experience: 10.0     
    Error:
    Code:
    While scanning for the next token
    found character            '/t' that cannot start any token
     in "<reader>", line 42, collum 26:
                        ChatColour: WHITE
                                                           ^
     
  4. Offline

    Serialkiller520

    Shouldn't it be Chatcolor
     
  5. Offline

    flametornado

    levelcraft does that well.

    you need iConomy or boseconomy.

    I don't know why you're getting that. I get absolutely no problems and no lag.

    you can't use tabs in YML, it has to be four spaces. It's annoying I know, not my fault i swear :p

    nope, outside america we spell colour with a u in it.

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

    Taien

    Hey Tornado, I downloaded the new version and am very impressed by the changes, and very glad you added my suggestion about custom-kill :)

    I just have a quick question - does the plugin now detect if a block has been placed by a player or is part of the world? In 1.3.3 someone can simply place/break/place/break repeatedly if I don't have a negative Break value set for every Place value they get, so can I do away with that now and only have to worry about the Placing? :)
     
  7. Offline

    flametornado

    sadly that's still there. I'll look into using logblock at some point.
     
  8. Offline

    Taien

    Ok, cool. I think there's a way to hook into the bukkit stuff to detect that too, so you might wanna look into that. But that's fine, I'll make sure I keep it in mind. The only problem I'm consistently having is that people (since you can never trust people to play legit) will find loopholes, like placing saplings near running water so the water breaks them and they can just re-place. :( Redstone stuff gets abused the same way. Other than that, I'm super excited about the new version. :p Just converting my jobs now...

    Also, is your full list of items in the first post out of date? I don't see WHEAT.

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

    nexusrightsi

    nope i copied the same code as the originals that where already in teh job config and before i added my customs i had no error

    wheat is crops i think

    srry what you meen by four spaces ? and i know lack of english @ my side :D

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

    flametornado

    You can always use item ids.


    press the space key 4 times.
     
  11. Offline

    Taien

    Discovered a major bug in your new version (although I'm sure it'll be an easy fix).

    What the bug does: Lets you level a job infinitely without work

    How to do it: Join two jobs, then leave the second one. The first job will gain a level. Rejoin a second job, leave that job, the first job will gain another level. Repeat.

    Just letting you know :) I think you threw a +1 in there somewhere where you didn't need it lol

    No CROPS is the partially grown crop I think. Then when it's fully grown it's WHEAT, according to the new jobsConfig.yml in 2.0.

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

    flametornado

    CROPS-7 is fully grown crops.
     
  13. Offline

    RustyDagger

    So I can set data Values in the config ? using -value that's handy to know :D still debating on wether or not to upgrade to the new multi job version with the bug that was mentioned above i think not its just the kind of thing my players would abuse.

    Just wish bukkit would hurry it up a bit i know that notch made crap and they are tyring to clean it up i get that but its taking ages atleast i know it will be well tested and stable when it comes :)
     
  14. Offline

    flametornado

    I'm not getting that. not at all.

    I can't find that bug at all, nor does it make any sense knowing the code.
    I don't think I've ever seen it happen.

    When you quit a job it recalculates your max experience and then checks if you need to level up. Doesn't do anything
    with modifying your current experience.

    I really wish notch would fix his bugs before adding more features.

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

    ducja

    so is there a way when not using permissions to let other people besides ops have jobs?
     
  16. Offline

    flametornado

    If you don't have permissions, all normal users can join all jobs. Ops get admin commands
     
  17. Offline

    ledhead900

    @flametornado

    2011-05-31 15:22:48 [SEVERE] [Jobs] - mysql-table-prefix property invalid or missing. Defaulting to no prefix.

    With the Rc2 was I ment to change something, Update the configs maybe ?
     
  18. Offline

    flametornado

    Just for people who want to have a database prefix because of conflicts, it's normally disabled so the database is just 'jobs'
     
  19. Offline

    ledhead900

    Righto I will just ignore that then.
     
  20. Offline

    Taien

    Another suggestion I would have would be to make it so if a person who has at least one job just does '/jobs stats Kill/Place/Break' the plugin displays the collected lists of both classes' bonuses/detriments for that category...it would be much faster than typing /jobs info UndeadHunter Kill. :) And '/jobs stats' alone could retain its current effect.

    Also...I've been having a problem with the job and class names...they're not always showing up. It seems pretty random and scarce. I don't have any errors in console...I've never really been able to get them to work. I have FalseBookChat on my server but I'm fairly sure I have it disabled...would that screw it up? Other than that only Essentials would really affect it.
     
  21. Offline

    flametornado

    But that's likely to cause overflow on the chat window (esp if you have many jobs) and i'll have to implement pages which are annoying anyway.
    I wish notch would make some form of a GUI framework that could be set up from the server :( would make my life much easier :p
     
  22. Offline

    thernztrom

    Oh, lol haha xD
    So the permission nodes are for 2.0RC!
    Since its 1.3.3 in topic etc I thought it was for 1.3.3.
    That explains it all! :) Maybee you should have a red text saying these permission nodes are for 2.0Rc only.
    And have a section of nodes for the old 1.3.3 under, untill 2.0 is the latest stable.
    Thanks!
     
  23. Offline

    flametornado

    2.0 has been stable for some time :p. I'm not actually doing any coding for it. I'm just waiting for 1.6 to become stable so i can test it and release it :p
     
  24. Offline

    thernztrom

    Ok, but how about the other files in the folder. Do these need to be transferred manually to the /jobs/ folder?
    Then we may have a small problem, I have to contact my host company to get them do it..
    Or does it now generate the files on restart/reload if there are none already as most others? :D :p
     
  25. Offline

    flametornado

    you have to transfer them manually :(. I didn't get around to/ didn't know how to generate them automatically. Also the server admins will usually modify the config files to suit their economy.
     
  26. Offline

    thernztrom

    Yeah, I cant transfer configs to specified folders atm. My host will change their interfiernce anytime very soon so I can tho. :) But I can edit those who are on my server online via their online editor, so if they get generated I can still edit them to suit me. ;)
    But nvm, ill just post a ticket to our host. Thx!
     
  27. Offline

    Taien

    Hmmm...I got it over and over and over. It's easily repeatable on our server. Could be because we're running 816, but would that really make that huge of a difference? I can show screens if you want. Or you can come check it out on our server...PM me if you want the IP. I can also list all our plugins for you...maybe there is a conflict somewhere. I'm also still having issues with the Kill classes, although its not like before. The kill classes used to only occasionally get exp/money when killing monsters instead of every time...now it seems that every time I HIT a monster of that type I gain the value. Same goes for other classes targeted in custom-kill. :)

    I'm not trying to talk smack about your plugin, because honestly I think it's the best jobs plugin out there. Just trying to help you make it even better :) I may even be the biggest user of it - our server has a 50 player cap and we have like 12 classes, some of which are usable only by higher ranks. :)

    Or maybe I'm your betatester for 1.6 ;) lol

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

    flametornado

    i updated to b817 and i can't get that bug coming up at all. Did you update to the latest version?
     
  29. Offline

    Taien

    Yes we're on 817 now. Also, just now I had an instance where I was looking through /jobs info on other jobs, and then I did /jobs stats and my first job had vanished. :( Here's my plugin list:

    HeroicDeath
    RepairChest
    PhatLoots
    LogBlock
    WorldEdit
    LocalShops
    Lockette
    KiwiAdmin
    Honeypot
    FalseBook (IC, Cart, Core, Extra, Block)
    Permissions (wait...where did this come from? it is part of GroupManager?)
    EssentialsSpawn
    BorderGuard
    SimpleReserve
    EssentialsChat
    GroupManager
    ecoCreature
    Essentials
    WorldGuard
    iConomy
    Jobs (WOOT)
    VanishNoPickup
    MotherNature
    ScrapBukkit
    NoCheat
     
  30. Offline

    flametornado

    but do you have the latest version of jobs?
     
  31. Offline

    Taien

    2.0.0 RC2? yes
     
Thread Status:
Not open for further replies.

Share This Page