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

    Kylon

    hey
    i love your plugin
    it gives me the fun back :)
    but i have a problem...
    i updated your plugin and the skill lvl of all my friends and me are gone.
    so i visitet your site and i saw that you have some admin codes like that one:
    /jobs promote [playername] [job] [levels]
    but they don´t work
    maybe i am an idiot :=)
    but i am op from the server and by my permission plugin i am a admin too...
    sry for my bad english ...
    i hope you can help me
    thanks
     
  3. Offline

    Hex

    What did I do wrong with my permissions? (Overall)
    Code:
     Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'fight.user''jobs.join.*''jobs.join.jobname''iConomyChestShop.shop.buy''iConomyChestShop.shop.sell''chaircraft.sit'
     
  4. Offline

    flametornado

    the configuration file has a property for removing the prefix.

    ElectrifiedCreeper doesn't exist

    2.0.0 worked for me. Update to that.

    it's a jar file. It works on all platforms.

    i'm planning on doing that.

    admin codes work only for 2.0
    nothing short of deleting your save file or database will wipe your data.
    I'm assuming you made a mistake in the configuration and the plugin disabled itself, hence you can't see your levels.

    don't you need to have the each permission on a different line?
    Code:
     Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                -'fight.user'
                -'jobs.join.*'
                -'jobs.join.jobname'
                -'iConomyChestShop.shop.buy'
                -'iConomyChestShop.shop.sell'
                -'chaircraft.sit'
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  5. Offline

    Hex

    OMG Thanks! I didn't know that. (I'm new to bukkit)
     
  6. Offline

    braanan

    When I download it it says jobs.rar and I can't use it.
     
  7. Offline

    Hex

    You gotta extract it to your Plugin folder, then run the server and it should create a default folder for you, or you can just extract the folder for Jobs in the Plugin folder too.
     
  8. Offline

    flametornado

    Not quite. You have to extract the rar file to your plugins folder. It should have both a folder and a jar file.
     
  9. Offline

    braanan

    how? sorry im kinda a newb
     
  10. Offline

    Skinnyboy

    Hi! I use this plugin.
    I have problems.

    1. Pemissions is not working this plugin.

    2. jobs.data is break , sometimes
    Player join server and join jobs
    next time join server no job
     
  11. Offline

    flametornado

    what version?
     
  12. Offline

    Skinnyboy

    I download 2.0.0 WIP .
    Should I download 1.3.3b?
    But , I uesed 1.3.3b . Permissions didn't worked.
     
  13. Offline

    flametornado

    which permissions?

    2.0 and 1.3 have different permissions.
     
  14. Offline

    Skinnyboy

    I use Permission 2.7.4 .
     
  15. Offline

    flametornado

    i mean what nodes?

    jobs.join.* ?
     
  16. Offline

    Skinnyboy

    sorry.

    jobs. join.<jobname>​
     
  17. Offline

    flametornado

    you're supposed to replace jobname to the job name e.g. jobs.join.Woodcutter.

    You can also do jobs.join.* to let all people join all jobs.
     
  18. Offline

    Skinnyboy

    Oh ! Really??? Thank you .
     
  19. Offline

    Makan747

     
  20. Offline

    ledhead900

    PHP:
    Hunter:
            
    ChatColourRED
            levelingProgressionRate
    0.15
            incomeProgressionRate
    0.0003
            
    Break:
                
    LOG1.0
            Place
    :
                
    SAPLING1.0
            Kill
    :
                
    Cow10.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
    I'm sorry but I moved onto the newer 2.x.x versions some time ago tho others have already added hunter the one above should get u started just past that at the end of your other jobs and tweak it if your having an issue doing that.

    Once its pasted in send post us your config and I will fix it up for you, Also do not forget to setup the Titles in your config there at the very bottom of the config.
     
  21. Whenever I enable this plugin, the server gives me the [WARNING] Can't keep up! message..? It only occurs when this plugin is enabled, the server runs smooth without it. And this is a rack server, so there is no hardware issues.
    Has anybody experienced the same thing? I would really love to get this to work..!
     
  22. Offline

    nggmc

    Permissions do not support this.... All the jobs get deleted -_-
     
  23. Offline

    flametornado

    permissions does work, jobs will never actually get deleted. the plugin may disable itself tho.

    getting any console errors?
     
  24. Offline

    ledhead900

    Whats the Slots setting mean in version 2.0.0 ?
     
  25. Offline

    flametornado

    not working yet. But it'll be a setting that will set the maximum number of people that can join that job on the server.
     
  26. Offline

    ledhead900

    Nice idea.. I un commented it thinking it was max n# of job you could join later found it was not then set the max jobs properly.

    I have a report the builder job is not working tho they join it but not earn nothing the config setting for it was default for 2.0.0

    I think there just trying to break not build lol
    will get back to you on this.

    Edit:

    Updated to new version that never get a chagne log yet, hehe if there is one request for that version could u mark the date it was last modified or is there way I can find out.

    anyway Builders works.
     
  27. Offline

    flametornado

    I probably should of, but with it being released soon, I don't think i will.

    I plan to release it as soon as 1.6 and 1.6 compatible bukkit comes out.
     
  28. Offline

    ledhead900

    Np I can handle the wait :).
     
  29. Offline

    bevso

    well, as an admin on a server i can see the jobs but as a builder they cant see any jobs they get 'there are no jobs that you can join' even though i added jobs.job.* to thier perms what should i do?
     
  30. Offline

    syconox

    It's 'jobs.join.*'
     
  31. Offline

    Reptile00Seven

    Thanks for your solution to me problem, now the plugin works all the way up to the point of payment. No one is able to receive payment or even obtain xp from their job. Also: job tags do not show up at all in chat.

    Config:
    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: DARK_GREEN
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                LOG: 0.10
            Place:
                SAPLING: 0.05
        Miner:
            ChatColour: DARK_GRAY
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                STONE: 0.01
                COAL_ORE: 0.50
                REDSTONE_ORE: 1.50
                IRON_ORE: 1.0
                GOLD_ORE: 5.0
                LAPIS_ORE: 3.50
                DIAMOND_ORE: 10.0
                OBSIDIAN: 2.5
            Place:
                OBSIDIAN: -2.5
                GOLD_ORE: -5.0
                IRON_ORE: -1.0
        Warrior:
            ChatColour: RED
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                MOSSY_COBBLESTONE: 15.0
            Place:
                MOSSY_COBBLESTONE: -15.0
            Kill:
                Creeper: 2.50
                Skeleton: 1.0
                Spider: 1.0
                Zombie: 0.75
                Giant: 5.0
        Terraformer:
            ChatColour: YELLOW
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                DIRT: 0.05
                GRASS: 0.05
                GRAVEL: 0.05
                SAND: 0.05
            Place:
                DIRT: -0.05
                GRASS: -0.05
                GRAVEL: -0.05
                SAND: -0.05
        Botanist:
            ChatColour: BLUE
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                LAPIS_ORE: 3.5
                RED_ROSE: 0.5
                YELLOW_FLOWER: 0.5
                BROWN_MUSHROOM: 0.75
                RED_MUSHROOM: 0.75
                CACTUS: 0.10
                PUMPKIN: 1.00
            Place:
                LAPIS_ORE: -3.5
                RED_ROSE: -0.5
                YELLOW_FLOWER: -0.5
                BROWN_MUSHROOM: -0.75
                RED_MUSHROOM: -0.75
                CACTUS: -0.10
                PUMPKIN: -1.00
            Kill:
                Squid: 1.0
        Farmer:
            ChatColour: GREEN
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                CROPS: 0.5
            Place:
                SAPLING: 0.05
            Kill:
                Sheep: 0.1
                Chicken: 0.1
                Squid: 0.1
                Pig: 0.1
                Cow: 0.1
        Engineer:
            ChatColour: WHITE
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                COBBLESTONE: -0.02
                GLASS: -0.1
                LADDER: -0.1
                BOOKSHELF: -0.8
                BRICK: -0.15
            Place:
                COBBLESTONE: 0.02
                GLASS: 0.1
                LADDER: 0.1
                BOOKSHELF: 0.8
                BRICK: 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
    
     
Thread Status:
Not open for further replies.

Share This Page