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

    Menjulol

    @flametornado
    i read your plugin and found that this is a great idea. But the Server can't show the Job's i don't know why.
    I copied ur config from the top and it's still not showing any Job's.
    I hope you can help me. Because without Jobs, iConomy is useless...
     
  3. Offline

    jlu

    Nobody can help me on my previous answer please? I really like this plug-in but it doesn't work.. :/
     
  4. Offline

    Renfroe

    Ok, got to say first off, great plug-in, my members are loving the jobs, but....I am having some issues getting my experience to work for my Hunter job. I have provided my config file with this post. My other created job, Farmer, is gaining experience, just not my Hunter. Could anyone lend an ear and fingers, and possibly throw some suggestions at me? Thanks in advance for everyone's time. =)
    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: none
    
    # 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.01
            Break:
                LOG: 0.15
            Place:
                SAPLING: 0.10
                WOOD: 0.05
        Miner:
            ChatColour: DARK_GRAY
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.01
            Break:
                STONE: 0.05
                COAL_ORE: 0.05
                REDSTONE_ORE: 0.07
                IRON_ORE: 0.10
                GOLD_ORE: 0.15
                LAPIS_ORE: 0.25
                DIAMOND_ORE: 0.25
                OBSIDIAN: 0.50
            Place:
                RAILS: 0.05
                IRON_ORE: -1.0
                GOLD_ORE: -1.0
        Builder:
            ChatColour: WHITE
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.01
            Place:
                COBBLESTONE: 0.05
                STONE: 0.10
                GLASS: 0.15
                BRICK: 0.15
                WOOD: 0.05
                SANDSTONE: 0.10
                STEP: 0.05
                OBSIDIAN: 0.05
                WOOD_STAIRS: 0.05
                DIAMOND_BLOCK: 0.10
                COBBLESTONE_STAIRS: 0.05
                GOLD_BLOCK: 0.10
                IRON_BLOCK: 0.10
        Digger:
            ChatColour: YELLOW
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.01
            Break:
                DIRT: 0.05
                GRASS: 0.05
                GRAVEL: 0.07
                SAND: 0.07
        Farmer:
            ChatColour: GREEN
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.01
            Break:
                CROPS: 0.05
                SOIL: 0.05
                FENCE: 0.05
                CACTUS: 0.05
                SUGAR_CANE_BLOCK: 0.05
                PUMPKIN: 0.05
            Place:
                CROPS: 0.05
                SOIL: 0.05
                FENCE: 0.05
                CACTUS: 0.05
                SUGAR_CANE_BLOCK: 0.05
                PUMPKIN: 0.05
        Hunter:
            ChatColour: RED
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.01
            Kill:
                Chicken: 0.10
                Cow: 0.10
                Pig: 0.10
                Sheep: 0.10
                Wolf: 0.10
                Creeper: 0.15
                Skeleton: 0.10
                Spider: 0.10
                Zombie: 0.10
                Squid: 0.15
                Slime: 0.15
    # 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:
        Apprentice:
            ChatColour: WHITE
            levelReq: 0
        Novice:
            ChatColour: GRAY
            levelReq: 30
        Journeyman:
            ChatColour: GOLD
            levelReq: 60
        Master:
            ChatColour: BLACK
            levelReq: 90
     
  5. Offline

    Pencil

    Hey I was wondering, I want my members be able to get cash for digging slowsand, but I can't seem to find it in your post, nor does SOULSAND, SLOWSAND, SOUL SAND work :( Any ideas?
     
  6. Offline

    flametornado

    upload your config file. formatting is important.

    did you get any errors from the console?

    I think i left a bug that turns kill experience into an integer :(. It will be fixed in the next update. For now i suggest making killing creeps higher or upping the xp multiplier ( i would suggest you make it higher anyway).

    SOUL_SAND
     
    Pencil likes this.
  7. Offline

    Pencil

    Awesome, gonna try it now. I feel kinda stupid tho for not trying that :confused:
     
  8. Offline

    CronicGamer

    so i download the file and its a .rar file? My server wont open it, then i change it to a .jar file and the server still cant open it. Whats going on here?
     
  9. Offline

    flametornado

    extract the rar file.
     
  10. Offline

    CronicGamer

    thats impossible, i cant open it myself either, asks what program i wanna use to open it. I should be able to download and put the jar or rar or whatever file into my server plugins folder and then run the server creating the config file right?
     
  11. Offline

    flametornado

    http://tinyurl.com/22qyyr5
     
  12. Offline

    CronicGamer

    So to use this plugin i have to download extra files to open it?
     
    PigSaddle likes this.
  13. Offline

    flametornado

    rar is the most common and popular compression method around. If you haven't come across it yet, you will soon.

    but the short answer is yes.
     
  14. Offline

    CronicGamer

    FML, what happened to the good old fashioned zip folders that took a click to open
     
  15. Offline

    flametornado

    the compression algorithm is far inferior to rar file.
     
  16. Offline

    CronicGamer

    Ok, got it, thanks for the help!
     
  17. Offline

    mostextremer

    i have a problem or this plugins has a bug ok wen some one lvls up its says there job name twice so if i was a miner wen i level up it would say apprentice miner mostextremer apprentice miner mostextremer in the chat line wen i speak so can u help me out:)
     
  18. Offline

    flametornado

    That should of been fixed. What version of the plugin are you using?
    Also, logging out then back in should fix that.
     
  19. Offline

    mostextremer

    i have the version were it use iconmony 5 and i no wen u log out it fixes but some people are fags and dont some times pls it gets a bit spamy
     
  20. Offline

    flametornado

    it will be fixed in the next version.
     
  21. Offline

    mostextremer

    ok i dont mind this is a great plugin and wen do u think the new version will be out ?
     
  22. Offline

    CronicGamer

    is there a list of items for the config file when creating a job or chaning one?

    Nvm, over looked it
     
  23. Offline

    flametornado

    week or two. It's a pretty big release. A lot of new features and involves a complete re-write
     
  24. Offline

    mostextremer

    o thats cool can u tell me some new commands thats are gona be in the new update
    :cool:
     
  25. Offline

    flametornado

    havn't decided. not there yet. That'll prob be the last thing i get to.
     
  26. Offline

    DemonCraft

    Everytime I try to destroy a block I don't get any money.
    I am a Miner, I got the title, and when I destroy Stone, or something else in the group I still have the SAME amount of coins.
    Help?
    Also I have the permission, 'jobs.job.<jobname>' added.
    Normal players have tried getting a job, they can get one, but still don't earn money.
     
  27. Offline

    flametornado

    Please upload your config file
     
  28. Offline

    DemonCraft

    Code:
    # storage method, can be MySQL, sqlite, flatfile
    storage-method: MySQL
    
    # 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: 150
    
    # 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: job
    
    # 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.1
    
    # 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.13
            incomeProgressionRate: 0.05
            Break:
                LOG: 5.0
            Place:
                SAPLING: 1.0
                WOOD: 2.0
        Miner:
            ChatColour: DARK_GRAY
            levelingProgressionRate: 0.13
            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
                MOSSY_COBBLESTONE: 6.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.13
            incomeProgressionRate: 0.05
            Place:
                COBBLESTONE: 1.0
                WOOD: 1.5
                FENCE: 1.5
                WOOL: 1.5
                STONE: 2.25
                GLOWSTONE: 3.0
                GLASS: 3.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.13
            incomeProgressionRate: 0.05
            Break:
                DIRT: 2.0
                GRASS: 2.0
                GRAVEL: 2.0
                SAND: 2.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:
        Apprentice:
            ChatColour: BLUE
            levelReq: 0
        Novice:
            ChatColour: GRAY
            levelReq: 30
        Journeyman:
            ChatColour: GOLD
            levelReq: 60
        Master:
            ChatColour: BLACK
            levelReq: 90
     
  29. Offline

    Renfroe

    That's ok, at least you know now, just no frown face! :D I will certainly take your advice, and consider the amount raised, to an extent, on all mobs, and especially creepers! Thanks for the response, and keep up the great work!
     
  30. Offline

    flametornado

    your config seems fine. are you getting any server console errors, what version of iconomy and the plugin are you using?
     
  31. Offline

    DemonCraft

    1.3.3b
    In the version thing it says 4.65
     
Thread Status:
Not open for further replies.

Share This Page