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

    ledhead900

    I got that as well

    using permission node "jobs.job.*"

    but using the same Node and using Jobs 2.0.0. Beta worked fine.

    But if you use PwnCraft for a Class system it will screw up Pwncraft with errors
     
  3. Offline

    Makan747

    Add Hunter * Sorry for my Bad English =(
     
  4. Offline

    Racha

    What i need to do, to there could be a max-lvl ?
     
  5. Offline

    ledhead900

    Already added in the Beta 2.0.0 version. You can just add hunter yourself tho I did in the release version. If thats what u want I can send that to you.

    There is it caps at level 100 for both versions - you can limit this as well if you like in the config.
     
  6. Offline

    xyxgreendayxyx

    I tried to add a job, but it doesn't wanna show up on the /jobs browse menu! Please help

    Code:
    Jobs:
        Woodcutter:
            ChatColour: GREEN
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                LOG: 5.0
            Place:
                SAPLING: 1.0
                WOOD: 2.0
        Miner:
            ChatColour: DARK_GRAY
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                STONE: 2.0
                COAL_ORE: 3.0
                REDSTONE_ORE: 3.0
                IRON_ORE: 4.0
                GOLD_ORE: 5.0
                LAPIS_ORE: 5.0
                DIAMOND_ORE: 6.0
                OBSIDIAN: 7.5
            Place:
                RAILS: 2.0
                IRON_ORE: -5.0
                GOLD_ORE: -6.0
        Builder:
            ChatColour: WHITE
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Place:
                WOOD: 1.5
                FENCE: 1.5
                WOOL: 1.5
                STONE: 2.25
                GLOWSTONE: 3.0
                GLASS: 2.0
                BRICK: 4.0
                LAPIS_BLOCK: 5.0
                DOUBLE_STEP: 2.0
                STEP: 2.0
                BOOKSHELF: 3.0
                WOOD_STAIRS: 2.0
                COBBLESTONE_STAIRS: 2.0
        Digger:
            ChatColour: YELLOW
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                DIRT: 2.0
                GRASS: 2.0
                GRAVEL: 2.0
                SAND: 2.0
        Hunter:
            ChatColour: RED
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Kill:
                Chicken: 2.0
                Cow: 3.0
                Pig: 2.0
                Sheep: 2.5
                Wolf: 5.0
                Squid: 5.0
     
  7. Offline

    ledhead900

    I know what you mean the stable version even with permissions and ADMIN/OP does not show any jobs for me after I modify it at all with any new jobs never tested it with out any new jobs.

    But the Development build 2.0.0 works MUCH better and shows everything I change. Besides the Beta version's default jobs has a hunter built into the default config as well as a slew of included blocks missing from others in the stable release.
     
  8. Offline

    Racha

    Why people can work in ALL jobs?
    And how to limit the lvl?
     
  9. Offline

    ledhead900

    Look in the config there is a commented out parts check them, also if u want to only give some groups only some jobs do it like this.

    jobs.job.jobnamehere

    give the command out for each job you have and if do want to give to alll give your default group

    jobs.job.*
     
  10. Offline

    flametornado

    In the default section. For the woodcutter job. There's a commented parameter which is called max-level. Uncomment it and you'll make a level cap. Make a similar parameter for all the other jobs and you will give them a level cap too.

    You're missing titles in the config. Only 2.0 has the ability to not worry about titles missing (at least I think it does )

    The permission nodes for 1.3.x are jobs.job.jobname. You can do jobs.job.* to test if any jobs show.
    Also do you get any console errors?

    That's strange. 2.0 has different nodes.

    There is no cap unless you set it.

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

    Ethan

    What do you mean by titles?
     
  12. Offline

    flametornado

    look at the example config on the original post. See how down the bottom it has a titles section?

    You're missing that whole section.
     
  13. Offline

    ledhead900

    I See how screwed up as well in the 1.3.3 release it has missing titles in my config I copied the example in but I forgot/missed the titles boo.

    2.0.0 worked fine and I never even set any titles I just used what it generated first up and tweaked the jobs a but and turned off the preffix and left the other configs alone. I think I will add a max level tho. If I can find it.
     
  14. Offline

    flametornado

    2.0.0 will get released soon and then i'll stop supporting pre-2.0 versions.

    2.0 is far superior on all fronts.

    Woodcutter should have a commented example of max-level. Just do the same for the jobs and you'll set their max-level property.
     
  15. Offline

    ledhead900

    Awesome I just need you to look into something for me a possbile bug maybe? for your new version.

    I Understand you dont support this Im not asking for support this a Debug/Bug Report Until otherwise proven its my mistake.
    It appears my users can join joba and browse jobs and get money BUT! just about any other command only shows the /jobs command list again and it just says there is an error in your command then brings up /jobs

    It does this when joining as well but like I said above it works tho.

    I have included my groups permissions and the Configs for the Jobs in this post if u get time take a look if u spot the obviouse let me know thx.

    PHP:
    Using Craftbukkit 766 not one of the later two Reco builds at least not just yet might test them later not sure if thats the reason why tho.

    Here is My plugins list!
    2011-05-23 16:38:55 [INFOPluginsAppleTreeBorderGuardBukkitPistonButtonWarpChairCraftChestLockCommand iConomydynmapEasyRulesEssentialsGroupManagerEssentialsProtectEssentialsSpawnFactionsFalseBookBlockFalseBookCoreFalseBookICiChatiConomyIOBookcaseJobsLogBlockmcbansMinecartManiaCoreMinecartManiaSignCommandsMinecartManiaStationMobRiderMonsterTamerMy BoatNextStationNoCheatPerformanceTweaksPhatLootsReporterSeasonsShowcaseSignColoursWarWorldEditPermissionsMinecartManiaAdminControlsMinecartManiaAutomationsMinecartManiaChestControl
     

    Attached Files:

  16. Offline

    flametornado

    The commands are still very case sensitive.

    Also, update to the latest wip version. I update it regularly with small changes.
     
  17. Offline

    ledhead900

    I see .. I downloaded the WIP last night so if it was updated since then I guess we will see if that fixes anything.

    as for the command we used it was /jobs info Miner

    the job matches exactly how it was Spelled and showed in the browse list so I dunno if its a case issue.
     
  18. Hey i have a problem...
    I add a new rank for the Nerds from my Server and now the addon is broken again.
    All job levels are deleted! :eek: They will kill me...

    Console say this:
    CONSOLE: Jobs 1.3.3b not started, there's an error with the configuration

    Code:
    # storage method, can be MySQL, sqlite, flatfile
    storage-method: flatfile
    
    # Requires Mysql.
    mysql-username: root
    mysql-password:
    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: 10
    
    # 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
    #
    Jobs:
        Woodcutter:
            ChatColour: GREEN
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.0001
            Break:
                LOG: 5.0
            Place:
                SAPLING: 3.0
                WOOD: 2.0
        Miner:
            ChatColour: DARK_GRAY
            levelingProgressionRate: 0.05
            incomeProgressionRate: 0.0001
            Break:
                STONE: 2.0
                COAL_ORE: 3.0
                REDSTONE_ORE: 3.0
                IRON_ORE: 4.0
                GOLD_ORE: 5.0
                LAPIS_ORE: 5.0
                DIAMOND_ORE: 6.0
                OBSIDIAN: 7.5
            Place:
                RAILS: 2.0
                POWERED_RAIL: 6.0
                DETECTOR_RAIL: 5.0
                LADDER: 2.0
                STONE: -3.0
                COBBLESTONE: -4.0
                IRON_ORE: -8.0
                GOLD_ORE: -10.0
        Builder:
            ChatColour: BLUE
            levelingProgressionRate: 0.05
            incomeProgressionRate: 0.0001
            Break:
                STONE: -4.0
                COBBLESTONE: -3.0
                SANDSTONE: -6.0
                IRON_BLOCK: -10.0
                GOLD_BLOCK: -40.0
                DIAMOND_BLOCK: -100.0
            Place:
                COBBLESTONE: 1.0
                STONE: 2.0
                IRON_BLOCK: 5.0
                GOLD_BLOCK: 20.0
                DIAMOND_BLOCK: 50.0
                OBSIDIAN: 8.0
                WOOL: 1.0
                GLASS: 3.0
                BRICK: 5.0
                DIRT: 0.25
                SAND: 0.5
                SANDSTONE: 3.0
                WOOD: 2.0
                MOSSY_COBBLESTONE: 10.0
                STEP: 1.0
                DOUBLE_STEP: 2.0
                FENCE: 2.0
                WOOD: 2.0
        Digger:
            ChatColour: YELLOW
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.0001
            Break:
                DIRT: 2.0
                GRASS: 2.0
                GRAVEL: 2.0
                SAND: 2.0
        Hunter:
            ChatColour: RED
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.0003
            Break:
                LOG: 1.0
            Place:
                SAPLING: 1.0
            Kill:
                Cow: 10.0
                Chicken: 10.0
                Pig: 10.0
                Sheep: 10.0
                Wolf: 40.0
                Creeper: 80.0
                Giant: 400.0
                Skeleton: 50.0
                Spider: 50.0
                Zombie: 50.0
                PigZombie: 80.0
                Squid: 10.0
                Ghast: 80.0
                Player: 50.0
                Slime: 30.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.
    Titles:
        Anfaenger:
            ChatColour: WHITE
            levelReq: 0
        Novize:
            ChatColour: YELLOW
            levelReq: 30
        Geselle:
            ChatColour: GOLD
            levelReq: 60
        Meister:
            ChatColour: GRAY
            levelReq: 90
        GiantFag:
            Chatcolur: PURPLE
            levelReq: 150
    thanks for help
    i'll build a box and wait
    [bedrock][bedrock][bedrock]
    [bedrock][sheep][bedrock]
    [bedrock][bedrock][bedrock]
     
  19. Offline

    ledhead900

    You forgot to setup the

    Code:
    # Create titles
    # to create a title, they must follow this patter.
    # Titles:
    #     [Title Name]:
    #         ChatColour: [ChatColor]
    #         levelReq : [Integer]
    In your config, Now setting this up makes all jobs dissapear in game!
     
  20. Offline

    flametornado

    First of all, don't worry, all the stats should still be saved.

    The problem is under GiantFag. You misspelt ChatColour and wrote Chatcolur.
    Secondly, Purple is not a colour recognized by minecraft.
     
  21. ok.. is any color like PINK available?
     
  22. Offline

    flametornado

    nop. Very few are available. Due to the limitations posed by minecraft client-server interactions.
     
  23. Offline

    ledhead900

    Total did not notice that he did that :( I only noticed his missing titles.
     
  24. Offline

    flametornado

    the titles are there. You must of looked at a different config.
     
  25. Offline

    ledhead900

    Jesus Im blind I see my mistake I did not notice the # and instead read the empty titles comments.

    I feel dumb don't know whats with me today time,stress no idea anyway I will try and help others still and pay closer anttention.
     
  26. Offline

    flametornado

    Thanks for trying anyway. It's awesome to have more people helping with problems :D.
    Don't feel dumb, happens to everyone :p
     
  27. Offline

    PeterFour

    Is it possible to remove the prefix like Aprentice Miner, or otherwise keep the color of group, like keep red for admin?
     
  28. Offline

    fugue2005

    i tried adding a job
    Code:
        Hunter:
            ChatColour: Red
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Kill:
                Creeper: 57.0
                ElectrifiedCreeper: 69.0
                Ghast: 69.0
                Giant: 400.0
                PigZombie: 28.5
                Skeleton: 33.0
                Slime: 50.0
                Spider: 28.5
                Squid: 0.0
                Wolf: 28.5
                Zombie: 21.0
    but it doesn't show up in game.
     
  29. Offline

    nickrev

    Please update jobs for bukkit 803. it seams to be broken when i updated it....
     
  30. Offline

    braanan

    You need a download for mac please!
     
  31. Offline

    Casier

    Thank you, verry cool concept !

    I'm french so sorry for my bad English x)

    Now, we have when i place a block, when a break a block and when i kill a MoB (or player).
    Can you make when i craft a item ?

    Thank you for reading
     
Thread Status:
Not open for further replies.

Share This Page