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

    Newskin01

    Anyway to make it so when I chat it doesn't say Apprentice Miner <name> it's rather long I just don't want it to show
     
  3. Offline

    ledhead900

    in the jobs config set chat to false
     
  4. Offline

    Ripper76

    I have a problem with my config :
    Code:
    Jobs:
        Bucheron:
            fullname: Bucheron
            shortname: B
            ChatColour: WHITE
            chat-display: full
            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:
                LOG:
                    income: 0.10
                    experience: 0.10
        Mineur:
            fullname: Mineur
            shortname: M
            ChatColour: WHITE
            chat-display: full
            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: 0.01
                    experience: 0.01
                COAL_ORE:
                    income: 0.08
                    experience: 0.08
                REDSTONE_ORE:
                    income: 0.25
                    experience: 0.25
                IRON_ORE:
                    income: 0.10
                    experience: 0.10
                GOLD_ORE:
                    income: 0.25
                    experience: 0.25
                LAPIS_ORE:
                    income: 0.50
                    experience: 0.50
                DIAMOND_ORE:
                    income: 1.0
                    experience: 1.0
                OBSIDIAN:
                    income: 1.0
                    experience: 1.0
                MOSSY_COBBLESTONE:
                    income: 0.50
                    experience: 0.50
            Place:
                RAILS:
                    income: 0.05
                    experience: 0.05
        Paysan:
            fullname: Paysan
            shortname: Paysan
            ChatColour: WHITE
            chat-display: full
            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: 0.10
                    experience: 0.10
                SUGAR_CANE_BLOCK:
                    income: 0.10
                    experience: 0.10
            Place:
                SEEDS:
                    income: 0.05
                    experience: 0.05
                SUGAR_CANE_BLOCK:
                    income: 0.05
                    experience: 0.05
        Chasseur:
            fullname: Chasseur
            shortname: C
            ChatColour: WHITE
            chat-display: full
            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:
                Rose:
                    income: 0.25
                    experience: 0.25
                Flower:
                    income: 0.25
                    experience: 0.25
                Cactus:
                    income: 0.25
                    experience: 0.25
                Red_Mushroom:
                    income: 0.30
                    experience: 0.30
                Brown_Mushroom:
                    income: 0.30
                    experience: 0.30
            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
        Garde:
            fullname: Garde
            shortname: G
            ChatColour: WHITE
            chat-display: full
            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:
                Wolf:
                    income: 2.5
                    experience: 2.5
                Creeper:
                    income: 3.0
                    experience: 3.0
                Skeleton:
                    income: 2.0
                    experience: 2.0
                Spider:
                    income: 2.0
                    experience: 2.0
                Zombie:
                    income: 2.0
                    experience: 2.0
                Player:
                    income: 3.0
                    experience: 3.0
                Giant:
                    income: 5.0
                    experience: 5.0
                Ghast:
                    income: 5.0
                    experience: 5.0
                Pig_zombie:
                    income: 3.0
                    experience: 3.0
                Slime:
                    income: 2.0
                    experience: 2.0
        Pecheur:
            fullname: Pecheur
            shortname: P
            ChatColour: WHITE
            chat-display: full
            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:
                Squid:
                    income: 3.0
                    experience: 3.0
        Teinturier:
            fullname: Teinturier
            shortname: Teinturier
            ChatColour: WHITE
            chat-display: full
        Vendeur:
            fullname: Vendeur
            shortname: Vendeur
            ChatColour: WHITE
            chat-display: full
        Cuisinier:
            fullname: Cuisinier
            shortname: Cuisinier
            ChatColour: WHITE
            chat-display: full
        Chauffeur:
            fullname: Chauffeur
            shortname: Chauffeur
            ChatColour: WHITE
            chat-display: full
        Ouvrier:
            fullname: Ouvrier
            shortname: Ouvrier
            ChatColour: WHITE
            chat-display: full
        Cartographe:
            fullname: Cartographe
            shortname: Cartographe
            ChatColour: WHITE
            chat-display: full
    Someone can help me?
     
  5. Offline

    mxms

    Is there a way to edit the chat format? I don't mind the Apprentice Woodcutter name line, I just don't like the format of it. Would rather it look like [Apprentice Woodcutter] Name: text
     
  6. Offline

    ghost0001

    Is there a way to limit the numbers of jobs people can get? I have alot of users taking on ALL jobs getting paid for everything they do. This is going to throw my economy off...
     
  7. Offline

    Taien

    Or go into each job's section and set chat-display to either job, title, or none.

    Go into the main config and set the max jobs to 2 or whatever.

    2 things...your item names have to be in caps unless you're using the newest version (2.0.1), and I think it might be getting screwed up by your jobs with no Kill/Break/Place sections. I think every job has to have at least one thing it can do.

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

    Max Schreiter

    I have a problem with this plugin. When a user want to join a job he gets the error : The job you have selected does not exist. But I can join a job as admin.
    My permissions:
    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:
                - 'foo.bar'
                - 'myhome.home.basic.home'
                - 'myhome.home.basic.set'
                - 'myhome.home.basic.delete'
                - 'BOSEconomy.common'
                - 'iConomyChestShop.shop.create'
                - 'iConomyChestShop.shop.create.<id>'
                - 'iConomyChestShop.shop.exclude.<id>'
                - 'iConomyChestShop.shop.buy'
                - 'iConomyChestShop.shop.sell'
                - 'iConomyChestShop.command.iteminfo'
                - 'commandbook.who'
                - 'commandbook.motd'
                - 'commandbook.rules'
                - 'commandbook.time.check'
                - 'commandbook.spawn'
                - 'commandbook.return'
                - 'commandbook.msg'
                - 'commandbook.say.me'
                - 'commandbook.say'
                - 'commandbook.whereami.compass'
                - 'commandbook.whereami'
                - 'commandbook.whois'
                - 'lwc.protect'
                - 'jobs.join.Builder'
                - 'jobs.join.Digger'
                - 'jobs.join.Miner'
                - 'jobs.join.Woodcutter'
                - 'jobs.world.world'
                - 'jobs.join.Farmer'
                - 'jobs.join.Hunter'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - '*'
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    and my jobs config:
    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: 100
            # [OPTIONAL] - the maximum number of users on the server that can have this job at
            # any one time (includes offline players).
            slots: 1
            # 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
                WOOD:
                    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: 100
            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: 100
            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: 100
            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: 100
            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: 100
            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      
    pls help me:)
     
  9. Offline

    Missnostalgia

    I am having a problem of the /jobs command not working.

    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: 1
            # 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
                WOOD:
                    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: 1.0
                    experience: 1.0
                COAL_ORE:
                    income: 1.0
                    experience: 1.0
                REDSTONE_ORE:
                    income: 2.0
                    experience: 2.0
                IRON_ORE:
                    income: 2.0
                    experience: 2.0
                GOLD_ORE:
                    income: 4.0
                    experience: 4.0
                LAPIS_ORE:
                    income: 4.0
                    experience: 4.0
                DIAMOND_ORE:
                    income: 6.0
                    experience: 6.0
                OBSIDIAN:
                    income: 7.5
                    experience: 7.5
                MOSSY_COBBLESTONE:
                    income: 5.0
                    experience: 5.0
            Place:
                RAILS:
                    income: 1.0
                    experience: 2.0
                POWERED_RAILS:
                    income: 2.0
                    experience: 2.0
                IRON_ORE:
                    income: -5.0
                    experience: -5.0
                GOLD_ORE:
                    income: -6.0
                    experience: -6.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: 0.5
                    experience: 1.0
                WOOD:
                    income: 0.5
                    experience: 1.5
                FENCE:
                    income: 1.0
                    experience: 1.5
                WOOL:
                    income: 1.0
                    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: 2.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: 1.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
            Break:
                COBBLESTONE:
                    income: -0.5
                    experience: 0.0
                WOOD:
                    income: -0.5
                    experience: 0.0
                FENCE:
                    income: -1.0
                    experience: 0.0
                WOOL:
                    income: -1.0
                    experience: 0.0
                STONE:
                    income: -2.25
                    experience: 0.0
                GLOWSTONE:
                    income: -3.0
                    experience: 0.0
                SANDSTONE:
                    income: -2.0
                    experience: 0.0
                GLASS:
                    income: -2.0
                    experience: 0.0
                BRICK:
                    income: -4.0
                    experience: 0.0
                LAPIS_BLOCK:
                    income: -5.0
                    experience: 0.0
                DOUBLE_STEP:
                    income: -2.0
                    experience: 0.0
                STEP:
                    income: -2.0
                    experience: 0.0
                BOOKSHELF:
                    income: -3.0
                    experience: 0.0
                WOOD_STAIRS:
                    income: -2.0
                    experience: 0.0
                COBBLESTONE_STAIRS:
                    income: -1.0
                    experience: 0.0
                MOSSY_COBBLESTONE:
                    income: -5.0
                    experience: 0.0
                DIAMOND_BLOCK:
                    income: -5.0
                    experience: 0.0
                GOLD_BLOCK:
                    income: -5.0
                    experience: 0.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: 0.5
                    experience: 1.0
                GRASS:
                    income: 0.5
                    experience: 1.0
                GRAVEL:
                    income: 0.5
                    experience: 1.0
                SAND:
                    income: 0.5
                    experience: 1.0
                CLAY:
                    income: 2.0
                    experience: 2.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: 2.0
                    experience: 2.0
                SUGAR_CANE_BLOCK:
                    income: 0.25
                    experience: 0.25
            Place:
                SEEDS:
                    income: 1.0
                    experience: 1.0
                SUGAR_CANE_BLOCK:
                    income: 0.25
                    experience: 1.0
        Slayer:
            fullname: Slayer
            shortname: S
            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: 1.0
                    experience: 0.5
                Cow:
                    income: 1.0
                    experience: 0.0
                Pig:
                    income: 1.0
                    experience: 0.5
                Sheep:
                    income: 1.0
                    experience: 0.5
                Wolf:
                    income: 3.0
                    experience: 2.0
                Creeper:
                    income: 4.0
                    experience: 4.0
                Skeleton:
                    income: 3.0
                    experience: 3.0
                Spider:
                    income: 4.0
                    experience: 4.0
                Zombie:
                    income: 4.0
                    experience: 4.0
                Giant:
                    income: 6.5
                    experience: 7.5
                Squid:
                    income: 2.5
                    experience: 2.5
                Ghast:
                    income: 6.0
                    experience: 6.0
                Pigzombie:
                    income: 3.5
                    experience: 3.0
                Slime:
                    income: 2.0
                    experience: 2.0   
     
  10. Offline

    ghost0001

    thanks, that helps a ton...i was looking in the config, guess i missed that line of code.
     
  11. Offline

    flametornado

    i think mine is the same. I run as a root used too (with no password :p, how secure am i ;p). Have you tried generating a primary key for it?

    you have to replace <jobname> and <worldname> with the names of your jobs and worlds respectivley (otherwise replace them with * for all jobs and all worlds).

    lame :(. I'll look into that.

    it's actually none, but close.

    Your custom classes are missing a lot of necessary tags. Look at the error messages given by the console when it starts up.

    not yet.
     
  12. Offline

    RustyDagger

    @flametornado this is unusal but i just tried to fire up version 2.0.1 on my test server and every time i use the /jobs command it gives an internal error.

    heres what the console has to say;
    Code:
    [INFO] [Jobs] - Job WoodCutter is missing the slots property. defaulting to no limits !
    2011-06-06 13:08:10 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'jobs' in plugin Jobs v2.0.0
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:281)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:718)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:684)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:677)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:217)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:401)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
        at me.alex.jobs.config.JobsConfiguration.loadTitleSettings(JobsConfiguration.java:841)
        at me.alex.jobs.config.JobsConfiguration.<init>(JobsConfiguration.java:78)
        at me.alex.jobs.config.JobsConfiguration.getInstance(JobsConfiguration.java:990)
        at me.alex.jobs.Jobs.onCommand(Jobs.java:1066)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more

    Also when i ran stop in the console it presented me with another error.

    Code:
    [SEVERE] Error occurred while disabling Jobs v2.0.0 (Is it up to date?): null
    java.lang.NullPointerException
        at me.alex.jobs.config.JobsConfiguration.loadTitleSettings(JobsConfiguration.java:841)
        at me.alex.jobs.config.JobsConfiguration.<init>(JobsConfiguration.java:78)
        at me.alex.jobs.config.JobsConfiguration.getInstance(JobsConfiguration.java:990)
        at me.alex.jobs.Jobs.onDisable(Jobs.java:62)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
        at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:771)
        at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:269)
        at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:262)
        at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:123)
        at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:260)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:341)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Weird it says 2.0.0 in that message but i'm sure i downloaded 2.0.1 :/

    Edit here are all of my files. all been edited in NP++ no tabs
    titles config
    Show Spoiler
    Code:
    # Title configuration
    #
    # Stores the titles people gain at certain levels.
    # Each title requres to have a name, short name (used when the player has more than
    # 1 job) the colour of the title and the level requrirement to attain the title.
    #
    # It is recommended but not required to have a title at level 0.
    #
    # Titles are completely optional.
    
    Titles:
    
    
    

    Messages config
    Show Spoiler
    Code:
    # Configuration file for the messages
    #
    # Replace the messages if you want.
    #
    # ChatColor.<Color> will make any works following (including spaces that colour.
    #
    # Supported colors:
    #    AQUA
    #    BLACK
    #    BLUE
    #    DARK_AQUA
    #    DARK_BLUE
    #    DARK_GRAY
    #    DARK_GREEN
    #    DARK_PURPLE
    #    DARK_RED
    #    GOLD
    #    GRAY
    #    GREEN
    #    LIGHT_PURPLE
    #    RED
    #    WHITE
    #    YELLOW
    #
    # Each message has slightly different parameters. The parameters available
    # are the ones that are already in the message (and none others)
    #
    # NOTE:
    #   Any character other than normal characters will not get read and will crash the 
    # configuration.
    #
    stats-no-job: |
        ChatColor.REDPlease join a job first.
    stats-job: |
        lvl%joblevel% %jobcolour%%jobname%ChatColor.WHITE : %jobexp%/%jobmaxexp% exp
    browse-no-jobs: |
        There are no jobs you can join.
    browse-jobs-header: |
        You are allowed to join the following jobs :
    browse-jobs-footer: |
        For more information type in /jobs info [JobName]
    admin-command-success: |
        Your command has been performed.
    admin-command-failed: |
        ChatColor.REDThere was an error in the command.
    fire-target: |
        You have been fired from %jobcolour%%jobname%.
    fire-target-no-job: |
        Plyer does not have the job %jobcolour%%jobname%.
    employ-target: |
        You have been employed in %jobcolour%%jobname%.
    promote-target: |
        You have been promoted %levelsgained% levels in %jobcolour%%jobname%.
    demote-target: |
        You have been demoted %levelslost% levels in %jobcolour%%jobname%.
    grantxp-target: |
        You have been granted %expgained% experience in %jobcolour%%jobname%.
    removexp-target: |
        You have lost %explost% experience in %jobcolour%%jobname%.
    transfer-target: |
        You have been transferred from %oldjobcolour%%oldjobname% to %newjobcolour%%newjobname%.
    join-too-many-jobs: |
        ChatColor.REDYou have already joined too many jobs.
    jobs-browse: |
        ChatColor.YELLOW/jobs browseChatColor.WHITE - list the jobs available to you.
    jobs-join: |
        ChatColor.YELLOW/jobs join <jobname>ChatColor.WHITE - join the selected job.
    jobs-leave: |
        ChatColor.YELLOW/jobs leave <jobname>ChatColor.WHITE - leave the selected job.
    jobs-stats: |
        ChatColor.YELLOW/jobs statsChatColor.WHITE - show the level you are in each job you are part of.
    jobs-info: |
        ChatColor.YELLOW/jobs info <jobname> <break, place, kill>ChatColor.WHITE - show how much each job is getting paid and for what.
    jobs-admin-fire: |
        ChatColor.YELLOW/jobs fire <playername> <job>ChatColor.WHITE - fire the player from the job.
    jobs-admin-employ: |
        ChatColor.YELLOW/jobs employ <playername> <job>ChatColor.WHITE - employ the player to the job.
    jobs-admin-promote: |
        ChatColor.YELLOW/jobs promote <playername> <job> <levels>ChatColor.WHITE - promote the player X levels in a job.
    jobs-admin-demote: |
        ChatColor.YELLOW/jobs demote <playername> <job> <levels>ChatColor.WHITE - demote the player X levels in a job.
    jobs-admin-grantxp: |
        ChatColor.YELLOW/jobs grantxp <playername> <job> <experience>ChatColor.WHITE - grant the player X experience in a job.
    jobs-admin-removexp: |
        ChatColor.YELLOW/jobs removexp <playername> <job> <experience>ChatColor.WHITE - remove X experience from the player in a job.
    jobs-admin-transfer: |
        ChatColor.YELLOW/jobs transfer <playername> <oldjob> <newjob>ChatColor.WHITE - transfer a player's job from an old job to a new job.
    break-header: |
        Break:
    place-header: |
        Place:
    kill-header: |
        Kill:
    break-info-no-sub: |
        ChatColor.WHITE    %item% - %income% ChatColor.GREENincomeChatColor.WHITE. %experience% ChatColor.YELLOWexp
    break-info-sub: |
        ChatColor.WHITE    %item%:%subitem% - %income% ChatColor.GREENincomeChatColor.WHITE. %experience% ChatColor.YELLOWexp
    place-info-no-sub: |
        ChatColor.WHITE    %item% - %income% ChatColor.GREENincomeChatColor.WHITE. %experience% ChatColor.YELLOWexp
    place-info-sub: |
        ChatColor.WHITE    %item%:%subitem% - %income% ChatColor.GREENincomeChatColor.WHITE. %experience% ChatColor.YELLOWexp
    kill-info-no-sub: |
        ChatColor.WHITE    %item% - %income% ChatColor.GREENincomeChatColor.WHITE. %experience% ChatColor.YELLOWexp
    kill-info-sub: |
        ChatColor.WHITE    %item%:%subitem% - %income% ChatColor.GREENincomeChatColor.WHITE. %experience% ChatColor.YELLOWexp
    break-none: |
        %jobcolour%%jobname%ChatColor.WHITE does not get money for breaking anything.
    place-none: |
        %jobcolour%%jobname%ChatColor.WHITE does not get money for placing anything.
    kill-none: |
        %jobcolour%%jobname%ChatColor.WHITE does not get money for killing anything.
    level-up: |
        ChatColor.YELLOW-- Job Level Up --
    at-max-level: |
        ChatColor.YELLOW-- You have reached the maximum level --
    skill-up-broadcast: |
        %playername% has been promoted to a %titlecolour%%titlename% %jobcolour%%jobname%ChatColor.WHITE.
    skill-up-no-broadcast: |
        Congratulations, you have been promoted to a %titlecolour%%titlename% %jobcolour%%jobname%ChatColor.WHITE.
    join-job-success: |
        You have joined the job %jobcolour%%jobname%ChatColor.WHITE.
    join-job-failed-already-in: |
        You are already in the job %jobcolour%%jobname%ChatColor.WHITE.
    join-job-failed-too-many: |
        You have already joined too many jobs.
    join-job-failed-no-slots: |
        You cannot join the job %jobcolour%%jobname%ChatColor.WHITE, there are no slots available.
    leave-job-sucess: |
        You have left the job %jobcolour%%jobname%ChatColor.WHITE.
    
    

    General config
    Show Spoiler
    Code:
    # General configuration.
    #
    #   The general configuration for the jobs plugin mostly includes how often the plugin
    # saves user data (when the user is in the game), the storage method, whether
    # to broadcast a message to the server when a user goes up a skill level.
    #   It also allows admins to set the maximum number of jobs a player can have at
    # any one time.
    
    # storage method, can be MySQL, flatfile
    storage-method: flatfile
    
    # Requires Mysql.
    mysql-username: root
    mysql-password:
    mysql-database: minecraft
    mysql-url: jdbc:mysql://localhost:3306/
    #mysql-table-prefix: 
    
    # How often in minutes you want it to save, 0 disables periodic saving and
    # the system will only save on logout
    save-period: 10
    
    # Do all players get a message when somone goes up a skill level?
    broadcast-on-skill-up: true
    
    # maximum number of jobs a player can join
    max-jobs: 1
    
    
    

    Jobs config
    Show Spoiler
    Code:
    # Jobs configuration.
        # Handy Info
            # You can select a sub-type by using a '-' between the id and the bit
            # options are: full, title, job and none
            # [OPTIONAL] - the maximum number of users on the server that can have this job at 
            #slots: 1
                    # 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
            ######################################################################################
            # example section
    #                Break:
    #            LOG:
    #                income: 5.0
    #                experience: 5.0
    #        Place:
    #            SAPLING: 
    #                income: 1.0
    #                experience: 1.0
    #            WOOD: 
    #                income: 2.0
    #                experience: 2.0
    #        Kill:
    #            Player:
    #                income: 7.5
    #                experience: 7.5
    #        custom-kill:
    #            Woodcutter:
    #                income: 10.0
    #                experience: 10.0
    Jobs:
    
        WoodCutter:
            fullname: WC
            shortname: LJ
            ChatColour: GREEN
            chat-display: job
            max-level: 100
            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:
            #Normal Log
                17-0:
                    income: 0.3
                    experience: 0.6
            #Pine Log    
                17-1:
                    income: 0.6
                    experience: 0.3
            #Birch Log        
                17-3:
                    income: 0.5
                    experience: 0.5
            #Sapling        
                6:    
                    income: -0.3
                    experience: -0.4
            #Plank        
                5:    
                    income: -0.4
                    experience: -0.5
            #leaves
                18:
                    income: 0.2
                    experience: 0.3
            Place:
            #All Types of log
                17:
                    income: -0.5
                    experience: -0.5
            #Sapling        
                6:    
                    income: 0.3
                    experience: 0.4
            #Plank        
                5:    
                    income: 0.4
                    experience: 0.5
    
    
     
  13. Offline

    flametornado

    2.0.1 def says 2.0.1, can you download it again? I made quite a few changes to the configuration reader, so the line numbers are really off and i have no idea where the error would be.

    EDIT: Your error might be cause by the lack of anything under the titles tag. It's recommended to remove(or rename) the whole file instead of emptying it out.
     
  14. Offline

    RustyDagger

    Wont removing the file be worse lol. ill give it a try.
     
  15. Offline

    flametornado

    i put a check in the code so that if the file is missing it gives no titles.
     
  16. Offline

    RustyDagger

    that seems to of done the trick. On another note i have to say a huge thanks for adding in the message control that i requested not long after you released it.

    here's a little sneak at what i got up to with it :)
    [​IMG]

    you will notice that there are now | after the block type this is because the - was confusing when there was a - income it was like - - income looked real bad. Notice there is now seprate colors for the block name and the first set of numbers it was all the same and looked bad. Notice that iv also Made the break: line stand out by making it purple.

    iv also shortend some of the command explinations to stop them spilling over onto the next line. just need to finish formatting the place and kill sections. :D

    if any one would like my messages file just send me a pm ill be glad to share it.
     
  17. Offline

    flametornado

    I will write in checks to make sure you won't get the problem you got too in coming versions.

    Also, that looks really good :D
     
  18. Offline

    ledhead900

    Lol yea it was early real early but I knew what I ment did he know what I ment who knows lol..


    Primary key hmm never had to do that before.
     
  19. Offline

    RustyDagger

    :sadface: i wanted to use the full name section of the job as what is displayed in chat and the job title that declares the job as what you would use to join the job so then i could have short names with only 1 job :/

    why you did not add short as a display option has me beat and you beat me at my workaround trick :( gah :(


    also regarding the chat box and the placement of the job name i had an idea for that most servers run some form of chat formatting such as ichat hero chat some thing like that so what if.. us server owners could put some thing like.
    #job# before the name or after the name just some where before the message and your plugin picks it up and makes it into the job name :D that gives us better control over what our chat looks like and i could then have my colored name again... white is so yuk. could also fall back on the system you have now in the event that nothing is found to replace.
     
  20. Offline

    ledhead900

    not bad idea actualy factions did something like that with.
     
  21. Offline

    Naucoo

    I love the new update! Great work.
    Just two small things:
    1: Is it possible to have known commands formated wrong return the right formating like "/jobs info Miner" return something like "/jobs info <job> <break|place|kill>" instead of the help menu?
    2: Divide the help menu into pages like "/jobs help <1|2>" with 1 being for user and 2 for admin. And that it returns "Unknown command. Use /jobs help <1|2> to get help." on unknown commands like "/jobs status".

    That would be to great help.
    Thank you again for a great plug-in!
     
  22. Offline

    Tinou_Bro

    Hey, i have a problem, when i break a block i have errors:

    Could not pass event BLOCK_BREAK to Jobs
    at me.alex.jobs.config.container.PlayerJobInfo.broke (.... blablaalbal
    at blablabla

    can you help me?
     
  23. Offline

    flametornado

    reason is i never thought about it :p. But i will do it now.

    I'll also look into how iChat and hero chat do things so it'll work better with those.

    1. sure.
    2. sounds like good idea, maybe /jobs help admin for admin commands and /jobs help for normal user commands. 1,2 isn't really clear.

    I need the whole error otherwise i don't know what went wrong.
     
  24. Offline

    RTRD

    @flametornado Can you add support for EssentialsEco? And why only MySQL?
     
  25. Offline

    flametornado

    There's flatfile too, and i will add for essentials. Somewhat confused about it :p, but i'll find it. Maybe in the next update if you're lucky :D
     
  26. Offline

    RTRD

    AWSOME! Can't wait! :D
     
  27. Offline

    Tinou_Bro

  28. Offline

    flametornado

    any chance you could give me your whole error log? from the begining?

    Going by the line number, it seems like it never made a link with any economy plugins.
     
  29. Offline

    Tinou_Bro

    i use iConomy, but i have change nothing in configuration files =s, and their are no more errors, only what i linked to you. i am on Bukkit 821 maybe that the raison why?
     
  30. Offline

    flametornado

    I doubt it bukkit version has anything to do with it. Tell me if you get any other errors. Also tell me if when you start up it says that jobs has linked with iconomy
     
  31. Offline

    wirt1002

    HELP Help PLes Help this not Work Help;)
     
Thread Status:
Not open for further replies.

Share This Page