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

    matan7890

    Could you add an option to restrict players to join to a job if they are in other job?
    Or there is one that i don't even know?
     
  3. Offline

    flametornado

    you can limit the maximum number of jobs.
     
  4. Offline

    xyxgreendayxyx

    Can't I put jobs.join.* and jobs.world.* in group permissions?

    My permission now:
    Code:
    ##
    # AntiBuild is included with this.  To disable a group from being able to build then
    # set the build: flag to false (build: false).  If you want a group to be able to build
    # then set it to true.
    ##
    # Groups can contain inheritance.
    #   To make a group inherit the permissions from another
    #   group simply place the groups name in the "inheritance:" like so:
    #
    #   Example:
    #       inheritance:
    #           - Default
    ##
    #   Globalized Permission settings:
    #
    #       If a permission contains periods (.) you can denote a globalized parameter:
    #
    #           - 'foo.*'
    #
    #       This will allow you to use all general commands.
    #
    ##
    #   Single Asterisk denotes all commands:
    #
    #       - '*'
    ##
    #   To exempt a node use the - prefix like so:
    #       - '-foo.bar'
    ##
    #   prefix: and suffix: do not do anything on their own.  You need another outside plugin
    #   such as iChat or HeroChat in order for these to do anything.
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'iConomy.payment'
                - 'iConomy.list'
                - 'iConomy.bank.access'
                - 'iConomy.bank.transfer'
                - 'iConomy.access"
                - 'bedrock.place'
                - 'graveyard.spawn.closest'
                - 'petition'
                - 'jobs.join*'
                - 'jobs.world.*
        Builder:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'iConomy.payment'
                - 'iConomy.list'
                - 'iConomy.bank.access'
                - 'iConomy.bank.transfer'
                - 'iConomy.access"
                - 'bedrock.place'
                - 'graveyard.spawn.closest'
                - 'petition'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'iConomy.payment'
                - 'iConomy.list'
                - 'iConomy.bank.access'
                - 'iConomy.bank.transfer'
                - 'iConomy.access"
                - 'bedrock.place'
                - 'graveyard.spawn.closest'
                - 'petition'
                - 'jobs.join*'
                - 'jobs.world.*'
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    
     
  5. Offline

    flametornado

    yes.
     
  6. Offline

    matan7890

    No - I mean a specific job (like if i'm doing a "Cops" job in my server, "Hunters" could not enter to it)
     
  7. Offline

    flametornado

    not yet, but it's an interesting idea.
     
  8. Offline

    xyxgreendayxyx

    Please check my permissions (Posted it a little longer up) Is there something wrong?
    To me it seems like Jobs wont cooperate with iConomy. Edit: I can't add any permissions almost. I added iConomy.payment for every group, still doesn't work..
     
  9. I understand, big mods are often unstable and not easy to make.

    If you know anyone who might be interested... If not I'm keeping the request up to date in hope that someone might help.

    Oh, and thanks for everything... Jobs IS great =).
     
  10. Offline

    Leetman

    Can someone post a full working farmer config?
     
  11. Offline

    bushingenna

    I'm having trouble installing this. The link gives me a .RAR file, not .jar wheres the file i need?
     
  12. Offline

    ItsMeYaniv

    and how i add tags? like if i Digger my name in chat like this [Digger] ItsMeYaniv
     
  13. Offline

    jkeller4000

    Is the money created? or does the money come from the player who employeed the person?

    i thin kthis would be amazing if a player on the server could pay another player to chop wood and the wood collected would be automatically transfered, but allow people to set up their own jobs, and employ people them selves instead of the server creating the money,
     
  14. Offline

    flametornado

    your permissions should work.

    you need to extract the rar file into your plugin folder.

    havn't done that yet.

    money is created. That would be cool, but where would they get the money from? Wouldn't that just be recirculating money?
     
  15. Offline

    RustyDagger

    @flametornado i forgot to ask do i need to have the tables made before running the sql script? and if so i assume no prefix?

    <<mysql noob
     
  16. Offline

    flametornado

    Yes, you have to, you can add the following line to the top of your sql script and that'll make the table too.

    CREATE TABLE IF NOT EXISTS jobs (username varchar(20), experience integer, level integer, job varchar(20));

    Add any prefix you like, just make sure the table name is consistent
     
  17. Offline

    RustyDagger

    Yea got it all working now Still having issues with the admin commands if i use the right caps for the job name it sends back an error to chat if i use all lower case nothing happens in chat but some times it dose what i asked.

    need to update my serverr and delete the server log its 500mb atm :/ dont really want to download it.

    also i was just trying to change my own exp via the mysql becuase the command wont work for me and it dose this

    Code:
    UPDATE `Databasenamecensord`.`jobs` SET `experience`=5 WHERE `username`='RustyDagger' AND `experience`=201 AND `level`=1 AND `job`='Farmer' LIMIT 1; 
    
    i was trying to set the exp to 5 and you can see it straight away set its self back to 201 :/

    trying to make it harder to go up levels atm few players are getting to level 30+ way to fast changing the leveling progression formula just a little.
     
  18. Offline

    flametornado

    you need to make sure whoever you are modifying the experience for is not in the game at the time.
     
  19. Offline

    RustyDagger

    uh ok held in memory or some thing like that the level worked :D
     
  20. Offline

    Defozo

    I have a problem with this plugin.
    I installed it and it looks ok.:
    Code:
    11:27:44 [INFO] [Jobs] - enable-stats property does not exist. Defaulting to false
    11:27:44 [INFO] [Jobs v2.0.1] has been enabled succesfully.
    11:27:44 [INFO] [Jobs] Successfully linked with iConomy 4.
    11:27:44 [INFO] [Jobs] Successfully linked with Permissions.
    In game I can join to job, but when I for example join Woodcutter and I breaking Log then I don't get any exp or money. Why?

    My jobConfig.yml:
    Code:
    # Jobs configuration.
    #
    # Stores information about each job.
    #
    # NOTE: When having multiple jobs, both jobs will give the income payout to the player
    # even if they give the pay for one action (make the configurations with this in mind)
    # and each job will get the respective experience.
    #
    # e.g If player has 2 jobs where job1 gives 10 income and experience for killing a player
    # and job2 gives 5 income and experience for killing a player. When the user kills a player
    # they will get 15 income and job1 will gain 10 experience and job2 will gain 5 experience.
    Jobs:
        # must be one word
        Woodcutter:
            # full name of the job (displayed when browsing a job, used when joining and leaving)
            # also can be used as a prefix for the user's name if the option is enabled.
            # Shown as a prefix only when the user has 1 job.
            #
            # NOTE: Must be 1 word
            fullname: Woodcutter
            # Shortened version of the name of the job. Used as a prefix when the user has more
            # than 1 job
            shortname: W
            # The colour of the name, for a full list of supported colours, go to the message config.
            ChatColour: GREEN
            # Option to let you choose what kind of prefix this job adds to your name.
            # options are: full, title, job and none
            chat-display: full
            # [OPTIONAL] - the maximum level of this class
            max-level: 10
            # [OPTIONAL] - the maximum number of users on the server that can have this job at
            # any one time (includes offline players).
            slots: 10
            # Equation used for calculating how much experience is needed to go to the next level.
            # Available parameters:
            #   numjobs - the number of jobs the player has
            #   joblevel - the level the player has attained in the job.
            # NOTE: Please take care of the brackets when modifying this equation.
            leveling-progression-equation: 100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))
            # Equation used for calculating how much income is given per action for the job level.
            # Available parameters:
            #   baseincome - the income for the action at level 1 (as set in the configuration).
            #   joblevel - the level the player has attained in the job.
            # NOTE: Please take care of the brackets when modifying this equation.
            income-progression-equation: baseincome*((1.05)^(joblevel-1))
             # Equation used for calculating how much experience is given per action for the job level.
            # Available parameters:
            #   baseexperience - the experience for the action at level 1 (as set in the configuration).
            #   joblevel - the level the player has attained in the job.
            # NOTE: Please take care of the brackets when modifying this equation.
            experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
            ########################################################################
            # Section used to configure what items the job gets paid for, how much
            # they get paid and how much experience they gain.
            #
            # For break and place, the block name or id is used.
            # You can select a sub-type by using a '-' between the id and the bit
            # value for the sub-type. e.g LOG-0 = usual log, LOG-2 = birch log
            # 17-2 = birch log.
            #
            # If no sub-type is give, the payout will be for all sub-types.
            #
            #
            # For kill tags (Kill and custom-kill), the name is the name of the
            # mob.
            # Available mobs:
            #   Chicken
            #   Cow
            #   Pig
            #   Sheep
            #   Wolf
            #   Creeper
            #   Giant
            #   Skeleton
            #   Spider
            #   Zombie
            #   PigZombie
            #   Squid
            #   Ghast
            #   Player
            #   Slime
            #
            # NOTE: mob names are case sensitive.
            #
            # For custom-kill, it is the name of the job (also case sensitive).
            #
            # NOTE: If a job has both the pay for killing a player and for killing a
            # specific class, they will get both payments.
            ########################################################################
            # payment for breaking a block
            Break:
                # block name/id (with optional sub-type)
                Log:
                    # base income
                    income: 5.0
                    # base experience
                    experience: 5.0
            # payment for placing a block
            Place:
                SAPLING:
                    income: 1.0
                    experience: 1.0
                Log:
                    income: 2.0
                    experience: 2.0
            # killing a mob
            Kill:
                # mob name
                Player:
                    # base income
                    income: 7.5
                    # base experience
                    experience: 7.5
            # killing a jobs class
            custom-kill:
                # full name of the jobs class
                Woodcutter:
                    # base income
                    income: 10.0
                    # base experience
                    experience: 10.0
        Miner:
            fullname: Miner
            shortname: M
            ChatColour: DARK_GRAY
            chat-display: full
            max-level: 10
            slots: 10
            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))
            Break:
                STONE:
                    income: 2.0
                    experience: 2.0
                COAL_ORE:
                    income: 3.0
                    experience: 3.0
                REDSTONE_ORE:
                    income: 3.0
                    experience: 3.0
                IRON_ORE:
                    income: 4.0
                    experience: 4.0
                GOLD_ORE:
                    income: 5.0
                    experience: 5.0
                LAPIS_ORE:
                    income: 5.0
                    experience: 5.0
                DIAMOND_ORE:
                    income: 6.0
                    experience: 6.0
                OBSIDIAN:
                    income: 7.5
                    experience: 7.5
                MOSSY_COBBLESTONE:
                    income: 6.0
                    experience: 6.0
            Place:
                RAILS:
                    income: 2.0
                    experience: 2.0
                IRON_ORE:
                    income: -5.0
                    experience: -5.0
                GOLD_ORE:
                    income: -6.0
                    experience: -6.0
            Kill:
                Player:
                    income: 7.5
                    experience: 7.5
            custom-kill:
                Miner:
                    income: 10.0
                    experience: 10.0
        Builder:
            fullname: Builder
            shortname: B
            ChatColour: WHITE
            chat-display: full
            max-level: 10
            slots: 10
            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))
            Place:
                COBBLESTONE:
                    income: 1.0
                    experience: 1.0
                WOOD:
                    income: 1.5
                    experience: 1.5
                FENCE:
                    income: 1.5
                    experience: 1.5
                WOOL:
                    income: 1.5
                    experience: 1.5
                STONE:
                    income: 2.25
                    experience: 2.25
                GLOWSTONE:
                    income: 3.0
                    experience: 3.0
                SANDSTONE:
                    income: 2.0
                    experience: 2.0
                GLASS:
                    income: 3.0
                    experience: 3.0
                BRICK:
                    income: 4.0
                    experience: 4.0
                LAPIS_BLOCK:
                    income: 5.0
                    experience: 5.0
                DOUBLE_STEP:
                    income: 2.0
                    experience: 2.0
                STEP:
                    income: 2.0
                    experience: 2.0
                BOOKSHELF:
                    income: 3.0
                    experience: 3.0
                WOOD_STAIRS:
                    income: 2.0
                    experience: 2.0
                COBBLESTONE_STAIRS:
                    income: 2.0
                    experience: 2.0
                MOSSY_COBBLESTONE:
                    income: 5.0
                    experience: 5.0
                DIAMOND_BLOCK:
                    income: 5.0
                    experience: 5.0
                GOLD_BLOCK:
                    income: 5.0
                    experience: 5.0
            Kill:
                Player:
                    income: 7.5
                    experience: 7.5
            custom-kill:
                Builder:
                    income: 10.0
                    experience: 10.0
        Digger:
            fullname: Digger
            shortname: D
            ChatColour: YELLOW
            chat-display: full
            max-level: 10
            slots: 10
            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))
            Break:
                DIRT:
                    income: 2.0
                    experience: 2.0
                GRASS:
                    income: 2.0
                    experience: 2.0
                GRAVEL:
                    income: 2.0
                    experience: 2.0
                SAND:
                    income: 2.0
                    experience: 2.0
                CLAY:
                    income: 2.0
                    experience: 2.0
            Kill:
                Player:
                    income: 7.5
                    experience: 7.5
            custom-kill:
                Digger:
                    income: 10.0
                    experience: 10.0
        Farmer:
            fullname: Farmer
            shortname: F
            ChatColour: BLUE
            chat-display: full
            max-level: 10
            slots: 10
            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))
            Break:
                WHEAT:
                    income: 4.0
                    experience: 4.0
                SUGAR_CANE_BLOCK:
                    income: 4.0
                    experience: 4.0
            Place:
                SEEDS:
                    income: 3.0
                    experience: 3.0
                SUGAR_CANE_BLOCK:
                    income: 1.0
                    experience: 1.0
            Kill:
                Player:
                    income: 7.5
                    experience: 7.5
            custom-kill:
                Farmer:
                    income: 10.0
                    experience: 10.0
        Hunter:
            fullname: Hunter
            shortname: H
            ChatColour: RED
            chat-display: full
            max-level: 10
            slots: 10
            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: 2.5
                    experience: 2.5
                Cow:
                    income: 2.5
                    experience: 2.5
                Pig:
                    income: 2.5
                    experience: 2.5
                Sheep:
                    income: 2.5
                    experience: 2.5
                Wolf:
                    income: 5.0
                    experience: 5.0
                Creeper:
                    income: 10.0
                    experience: 10.0
                Skeleton:
                    income: 10.0
                    experience: 10.0
                Spider:
                    income: 10.0
                    experience: 10.0
                Zombie:
                    income: 10.0
                    experience: 10.0
                Player:
                    income: 7.5
                    experience: 7.5
            custom-kill:
                Woodcutter:
                    income: 10.0
                    experience: 10.0
                Miner:
                    income: 10.0
                    experience: 10.0
                Digger:
                    income: 10.0
                    experience: 10.0
                Farmer:
                    income: 10.0
                    experience: 10.0
                Builder:
                    income: 10.0
                    experience: 10.0
                Hunter:
                    income: 20.0
                    experience: 20.0      
    Permissions added:
    Code:
    - jobs.join.*
            - jobs.world.Defozo\'s World
    Defozo
     
  21. Offline

    flametornado

    i don't know how well permissions handles Defozo's World. If you don't have any other worlds, try *
     
  22. Offline

    KillerSmurf

    I have everything set up...MY parser says nothing is wrong. But me(the owner with - '*' in permissions)
    Can join and leave jobs but normal players with(- jobs.join.*) Can't they can do /jobs, and /jobs browse
     
  23. Offline

    EdvinL

    You should make promoting increasing the EXP needed for the next level, because right now, if I promote someone at level 1 to level 100, he will still only require 100 EXP to level up, instead of, say, 10000 EXP.
     
  24. Offline

    Devboi

    I am having difficulty after upgrading to 1.6
    My server is heavily dependant on the Jobs mod.
    Unfortunately people are having thier jobs reset, some people aren't.
    I am using a FlatFile for the config as I cant seem to get the MySql to work.
    Could you please help in this matter?
    thanks
     
  25. Offline

    jkeller4000


    Yeah an economy is all about how fast money changes hands, it threotically should never be created nor destroyed in my opinnion,

    if people get paid with money created there will be an infinity running around in all the economic equations and this will cause problems, eventually servers will have to reset their monetary system, resets always make people upset :(, maybe servers will bank on high player turnover which is bad also,

    The money would come from the employer,
    here is a long example, everyone starts with 30 coins, though i really should have people start with no money hmm, i guess i need to fix my server :)

    one guy likes to run a shop so he starts a shop, now he needs things to sell
    he offers people jobs, /jobcreate log 10 1 <-- creating a job someone accepts and cuts ten wood and then gets 1 coin, the shop owner gets the ten logs and the worker loses them, but now the worker gets 1 coin to buy something from someones shop with like he can buy an iron ax instead of trying to find the iron,
     
  26. Offline

    flametornado

    i combat that by having places where money disappears. I have an admin shop where people can buy goods (at higher than normal prices to encourage normal shops to be set up) and, probably most importantly on my server, you can buy land. I run a pure survival server (monsters and everything), so buying land is very important if you don't want your stuff blown up. I also allow tnt, water and lava on my server, so if someone wants to not get griefed, then they have to buy the land (and therefore work for it)

    with /jobs browse, can they see the jobs, if they can then they're probably forgetting jobs are case sensitive.

    i thought it did that, sorry, i'll check on it more.

    i'm looking into that matter. Sadly the update is taking a while to come out because i'm also trying to fix you not getting paid when your wolves kill things (which is more of a pain than it should be).

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

    Taien

    This is similar to how mine works as well, although keeping the price of protections current to the level of inflation is tough. I'm thinking of making a plugin to allow people to harvest money from people they kill in PvP, and that the person who dies loses twice as much as the person who kills gains. That way, part of a person's money disappears when they are killed.

    I'm still a newb to java and plugins, but I've successfully made the slimes on my server more deadly with my first plugin DeadlySlimes, which makes slimes eat the durability of weapons except arrows and gold swords, and causes damage to the player if they try to punch one or hit it with any other item. I'm thinking of other things to add to this plugin too, such as to make slimes destroy items they pass over ;) Actually, I've been looking at the jobs code a lot as a kind of tutorial on how to do things :) Hope you get that wolf stuff figured out soon Flame. :)
     
  28. Offline

    flametornado

    Please use my code :p. The wolf thing is really annoying me, I can't even see damage events caused by wolves :( for some reason and i tried doing the same things as other plugins and its not working :(. It's really annoying and it's sitting in the way of me making more interesting updates to the plugin.
     
  29. Offline

    Taien

    Wolves hitting things should cause EntityDamageByEntity Events shouldn't they? Can't you use that to get the Wolf as the "damager"?
     
  30. Offline

    flametornado

    You'd think that, and that's what i thought and did in the code, but, when testing, i couldn't even get EntityDamageByEntity events to fire when a tamed wolf attacked. I could when a wild one attacked me, but not when a tamed wolf attacked a cow, sheep or chicken.

    It's really confusing me :(
     
  31. Offline

    xyxgreendayxyx

    I'm using permissions 2.7.4, and I've added jobs.world.* and jobs.join.* in my permissions, but it doesn't work! Please, I know that I post alot, but I really need to make this work. I think there might be a problem at iconomy also, so I'm posting at Iconomy to. Thx, //human44

    EDIT: NVM fixed it, had wrong version of jobs :)) Thx anyway, great plugin! :)

    //human44
     
Thread Status:
Not open for further replies.

Share This Page