[ECON] Jobs - The Job plugin for minecraft [BukkitDev]

Discussion in 'Archived: Plugin Releases' started by phrstbrn, Jun 27, 2011.

  1. Offline

    Jtmzac

    Something like:
    Code:
    leveling-progression-equation: 100*((1.5+(0.01*(numjobs-1)))^(joblevel-1))
    income-progression-equation: baseincome*(1.02^(joblevel-1))
    experience-progression-equation: baseexperience
    should be closer to what you want.
    If you want anything more specific then that I recommend doing the maths or posting more specific details on what you want.
    If you want to change it yourself changing the first decimal of each equation: 1.13, 1.05, 0.95 will change the xp/income curve. The other parts of the equation after the decimal are all just different multipliers which don't have to be changed.
     
  2. Offline

    kbassil

    Here's a question for you- Let's say I have 3 classes. Inside these classes, I want to have ranks where people can get higher ranks with more jobs (like this plugin supports). Here's the kicker- As they rank up, can I open up new permissions to them? So, say a Rank 1 can only build but a Rank 3 can use VoxelSniper?
     
  3. @phrstbrn
    I don't know if there is the feature already...
    If player's gamemode (creative mode) is ON, then he don't lose money but don't earn any too.
     
  4. Offline

    ravieralem

    hey ive tried to add jobs worked fine untill people farm and get no money from farming, how come ive even installed icon 5 to try it out but nothing help req please
     
  5. Offline

    NiliusJulius

    I got the same problem when making the income smaller then 1, so for example 0.1 for stone, will result in no money untill it becomes higher then 1.
     
  6. Offline

    ravieralem

    well ive changed nothing in the commands, just added some plugins but it doesn't work -.-'
     
  7. Offline

    Dragonowy

    Hi Plugin works fine, but i have a problem with EXP which is growning to fast in all jobs.
    What can be wrong ?
     
  8. Offline

    Koblizek

    Hi, I set jobConfig.yml, but something is wrong. Command /jobs browse doesn't show jobs and command /jobs say "There is an error in a command.". What I'm doing wrong?

    jobsConfig.yml (open)

    # 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
    Drevorubec:
    # 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: Drevorubec
    # Shortened version of the name of the job. Used as a prefix when the user has more
    # than 1 job
    shortname: D
    # 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, shortfull, shorttitle, shortjob 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.
    #
    # To get a list of all available block types, check the
    # bukkit JavaDocs for a complete list of block types
    # http://jd.bukkit.org/apidocs/org/bukkit/Material.html
    #
    # 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: 0.1
    # base experience
    experience: 2.0
    # payment for placing a block
    Place:
    SAPLING:
    income: 0.02
    experience: 0.4
    WOOD:
    income: 0.03
    experience: 0.5
    # killing a mob
    Kill:
    # mob name
    Player:
    # base income
    income: 0.0
    # base experience
    experience: 0.0
    # killing a jobs class
    custom-kill:
    # full name of the jobs class
    Woodcutter:
    # base income
    income: 0.0
    # base experience
    experience: 0.0
    Hornik:
    fullname: Hornik
    shortname: H
    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: 0.005
    experience: 0.05
    COAL_ORE:
    income: 0.1
    experience: 0.5
    REDSTONE_ORE:
    income: 1.0
    experience: 4.0
    IRON_ORE:
    income: 1.0
    experience: 2.0
    GOLD_ORE:
    income: 2.0
    experience: 5.0
    LAPIS_ORE:
    income: 2.0
    experience: 5.0
    DIAMOND_ORE:
    income: 5.0
    experience: 10.0
    OBSIDIAN:
    income: 5.0
    experience: 7.5
    MOSSY_COBBLESTONE:
    income: 1.0
    experience: 6.0
    Place:
    RAILS:
    income: 0.1
    experience: 0.5
    IRON_ORE:
    income: -5.0
    experience: -5.0
    GOLD_ORE:
    income: -5.0
    experience: -6.0
    Kill:
    Player:
    income: 0.0
    experience: 0.0
    custom-kill:
    Miner:
    income: 0.0
    experience: 0.0
    Stavitel:
    fullname: Stavitel
    shortname: S
    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.1
    experience: 0.5
    WOOD:
    income: 0.1
    experience: 0.5
    FENCE:
    income: 0.1
    experience: 0.5
    WOOL:
    income: 0.1
    experience: 0.5
    STONE:
    income: 0.2
    experience: 1
    GLOWSTONE:
    income: 0.5
    experience: 1
    SANDSTONE:
    income: 0.1
    experience: 0.5
    GLASS:
    income: 0.1
    experience: 0.5
    BRICK:
    income: 0.5
    experience: 1
    LAPIS_BLOCK:
    income: 1
    experience: 2
    DOUBLE_STEP:
    income: 0.1
    experience: 1
    STEP:
    income: 0.1
    experience: 0.5
    BOOKSHELF:
    income: 0.5
    experience: 1
    WOOD_STAIRS:
    income: 0.2
    experience: 0.5
    COBBLESTONE_STAIRS:
    income: 0.2
    experience: 0.5
    MOSSY_COBBLESTONE:
    income: 0.5
    experience: 1
    DIAMOND_BLOCK:
    income: 10
    experience: 15
    GOLD_BLOCK:
    income: 5.0
    experience: 10.0
    Break:
    DIAMOND_BLOCK:
    income: -20
    experience: -30
    GOLD_BLOCK:
    income: -10.0
    experience: -20.0
    Kill:
    Player:
    income: 0
    experience: 0
    custom-kill:
    Builder:
    income: 0
    experience: 0

    Farmar:
    fullname: Farmar
    shortname: Fa
    ChatColour: GOLD
    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:
    CROPS-7:
    income: 0.1
    experience: 0.2
    SUGAR_CANE_BLOCK:
    income: 0.1
    experience: 0.2
    Place:
    SEEDS:
    income: 0.4
    experience: 0.8
    SUGAR_CANE_BLOCK:
    income: 0.1
    experience: 1.0
    Kill:
    Player:
    income: 0
    experience: 0
    custom-kill:
    Farmer:
    income: 0
    experience: 0
    Lovec:
    fullname: Lovec
    shortname: L
    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))
    Kill:
    Chicken:
    income: 0.2
    experience: 0.5
    Cow:
    income: 0.5
    experience: 1
    Pig:
    income: 0.2
    experience: 0.5
    Sheep:
    income: -0.5
    experience: -1
    Wolf:
    income: 2.0
    experience: 5.0
    Creeper:
    income: 2.0
    experience: 5.0
    Skeleton:
    income: 1.0
    experience: 3.0
    Spider:
    income: 1.0
    experience: 3.0
    Zombie:
    income: 1.0
    experience: 3.0
    Player:
    income: 0
    experience: 0
    custom-kill:
    Woodcutter:
    income: 0.0
    experience: 0.0

    Rybar:
    fullname: Rybar
    shortname: Fi
    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))
    Fish:
    RAW_FISH:
    income: 1.0
    experience: 3.0
    Kill:
    Player:
    income: 0
    experience: 0
    custom-kill:
    Fisherman:
    income: 0
    experience: 0

    Kovar:
    fullname: Kovar
    shortname: K
    ChatColour: AQUA
    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))
    Craft:
    WOOD_SWORD:
    income: 0.2
    experience: 2
    IRON_SWORD:
    income: 1.0
    experience: 5
    GOLD_SWORD:
    income: 5
    experience: 10
    DIAMOND_SWORD:
    income: 10
    experience: 15

    Valecnik:
    fullname: Valecnik
    shortname: V
    ChatColour: DARK_PURPLE
    chat-display: none
    #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:
    Player:
    income: 5.0
    experience: 10.0
    custom-kill:
    Valecnik:
    income: 10.0
    experience: 20.0

    None:
    fullname: None
    shortname: N
    ChatColour: WHITE
    chat-display: none
    #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:
    Player:
    income: 0
     
  9. Offline

    remcodemah

    hello how do i configer chat extra's if i chat i only sie my name


    Remco

    problem solved it was essentials

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

    Jtmzac

    You need to change this:
    Code:
    experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
    for each job in jobconfig.yml
    .
    Changing 1.05 up or down will change the bonus amount of experience you will recieve per job level.
    If you lower 1.05 you won't recieve as much of a bonus and raising 1.05 will increase the bonus.
    You can also just change it to:
    Code:
    experience-progression-equation: baseexperience
    and you will never receive any bonus experience but the amount of xp required for the next level will still increase.

    Are you both using iConomy 5?
    It's working fine for me with iConomy 6

    I can't see anything wrong with your config but I did take out the entries that had 0 income or experience as they are unneccesary.
    Show Spoiler
    Code:
    Jobs:
        Drevorubec:
            fullname: Drevorubec
            shortname: D
            ChatColour: GREEN
            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:
                LOG:
                    income: 0.1
                    experience: 2.0
            Place:
                SAPLING:
                    income: 0.02
                    experience: 0.4
                WOOD:
                    income: 0.03
                    experience: 0.5
        Hornik:
            fullname: Hornik
            shortname: H
            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: 0.005
                    experience: 0.05
                COAL_ORE:
                    income: 0.1
                    experience: 0.5
                REDSTONE_ORE:
                    income: 1.0
                    experience: 4.0
                IRON_ORE:
                    income: 1.0
                    experience: 2.0
                GOLD_ORE:
                    income: 2.0
                    experience: 5.0
                LAPIS_ORE:
                    income: 2.0
                    experience: 5.0
                DIAMOND_ORE:
                    income: 5.0
                    experience: 10.0
                OBSIDIAN:
                    income: 5.0
                    experience: 7.5
                MOSSY_COBBLESTONE:
                    income: 1.0
                    experience: 6.0
            Place:
                RAILS:
                    income: 0.1
                    experience: 0.5
                IRON_ORE:
                    income: -5.0
                    experience: -5.0
                GOLD_ORE:
                    income: -5.0
                    experience: -6.0
        Stavitel:
            fullname: Stavitel
            shortname: S
            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.1
                    experience: 0.5
                WOOD:
                    income: 0.1
                    experience: 0.5
                FENCE:
                    income: 0.1
                    experience: 0.5
                WOOL:
                    income: 0.1
                    experience: 0.5
                STONE:
                    income: 0.2
                    experience: 1
                GLOWSTONE:
                    income: 0.5
                    experience: 1
                SANDSTONE:
                    income: 0.1
                    experience: 0.5
                GLASS:
                    income: 0.1
                    experience: 0.5
                BRICK:
                    income: 0.5
                    experience: 1
                LAPIS_BLOCK:
                    income: 1
                    experience: 2
                DOUBLE_STEP:
                    income: 0.1
                    experience: 1
                STEP:
                    income: 0.1
                    experience: 0.5
                BOOKSHELF:
                    income: 0.5
                    experience: 1
                WOOD_STAIRS:
                    income: 0.2
                    experience: 0.5
                COBBLESTONE_STAIRS:
                    income: 0.2
                    experience: 0.5
                MOSSY_COBBLESTONE:
                    income: 0.5
                    experience: 1
                DIAMOND_BLOCK:
                    income: 10
                    experience: 15
                GOLD_BLOCK:
                    income: 5.0
                    experience: 10.0
            Break:
                DIAMOND_BLOCK:
                    income: -20
                    experience: -30
                GOLD_BLOCK:
                    income: -10.0
                    experience: -20.0
        Farmar:
            fullname: Farmar
            shortname: Fa
            ChatColour: GOLD
            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:
                CROPS-7:
                    income: 0.1
                    experience: 0.2
                SUGAR_CANE_BLOCK:
                    income: 0.1
                    experience: 0.2
            Place:
                SEEDS:
                    income: 0.4
                    experience: 0.8
                SUGAR_CANE_BLOCK:
                    income: 0.1
                    experience: 1.0
        Lovec:
            fullname: Lovec
            shortname: L
            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))
            Kill:
                Chicken:
                    income: 0.2
                    experience: 0.5
                Cow:
                    income: 0.5
                    experience: 1
                Pig:
                    income: 0.2
                    experience: 0.5
                Sheep:
                    income: -0.5
                    experience: -1
                Wolf:
                    income: 2.0
                    experience: 5.0
                Creeper:
                    income: 2.0
                    experience: 5.0
                Skeleton:
                    income: 1.0
                    experience: 3.0
                Spider:
                    income: 1.0
                    experience: 3.0
                Zombie:
                    income: 1.0
                    experience: 3.0
        Rybar:
            fullname: Rybar
            shortname: Fi
            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))
            Fish:
                RAW_FISH:
                    income: 1.0
                    experience: 3.0
        Kovar:
            fullname: Kovar
            shortname: K
            ChatColour: AQUA
            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))
            Craft:
                WOOD_SWORD:
                    income: 0.2
                    experience: 2
                IRON_SWORD:
                    income: 1.0
                    experience: 5
                GOLD_SWORD:
                    income: 5
                    experience: 10
                DIAMOND_SWORD:
                    income: 10
                    experience: 15
        Valecnik:
            fullname: Valecnik
            shortname: V
            ChatColour: DARK_PURPLE
            chat-display: none
            #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:
                Player:
                    income: 5.0
                    experience: 10.0
            custom-kill:
                Valecnik:
                    income: 10.0
                    experience: 20.0

    Next time use the code tags as well as the spoiler tags to preserve the formatting of the config please.
    Are you getting any error messages in the server?
    What bukkit version are you using?
    Are you using an economy plugin, if so which one?

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

    Dragonowy

    Thanks a lot, Your'e great.
     
  12. Offline

    NiliusJulius

    No using BOSEconomy ;)

    Also I found a little bug.
    Right now when you doe /jobs reload you don't get the double names anymore (thanks for that).
    But any new people who get a job will have to relog before the job shows up in their name.
    Or I should restart the whole server which fixes it.
     
  13. Offline

    Koblizek

    This config works good, thanks!
     
  14. Offline

    homeworlder_

    Im having some kind of error with Jobs, I havent even touched any of the files yet (im familiar with jobs plugin though) and im sure that the files are there, the error i get is;


    23.10 20:39:45 [Server] SEVERE [Jobs] - configuration file jobConfig.yml does not exist. Disabling jobs !
    23.10 20:39:45 [Server] INFO [Jobs v2.5.4] has been disabled succesfully.
    Anyone please help ? Im also running CB Build 1317
     
  15. Offline

    Jtmzac

    First you should upgrade to CB build 1318 as 1317 has some bugs which are fixed in 1318. Don't worry about compatibility, if it works with 1317 it will work with 1318.
    After that check if the jobconfig.yml is actually in "<server directory>\plugins\jobs" if not try creating it manually by making a text file and saving it as jobconfig.yml (just in case you don't know make sure to select all files beneath the file name when saving the file otherwise it will become jobconfig.yml.txt).
     
  16. Offline

    Jvample

    I have set up my jobs config yet I get this error.
    [SEVERE] Error occurred while enabling Jobs v2.5.5 (Is it up to date?): while parsing a block mapping; expected <block end>, but found BlockMappingStart
    while parsing a block mapping
    in "<reader>", line 13, column 1:
    Jobs:
    ^
    expected <block end>, but found BlockMappingStart
    in "<reader>", line 275, column 13:
    GOLD_SWORD:
    ^

    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:576)
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:228)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    at org.bukkit.util.config.Configuration.load(Configuration.java:82)
    at com.zford.jobs.config.JobConfig.loadJobSettings(JobConfig.java:88)
    at com.zford.jobs.config.JobConfig.reload(JobConfig.java:67)
    at com.zford.jobs.Jobs.reloadConfigurations(Jobs.java:1273)
    at com.zford.jobs.Jobs.onEnable(Jobs.java:126)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:941)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:174)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:157)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    15:31:12 [WARNING] Server permissions file permissions.yml is not valid YAML.
    java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map
    at org.bukkit.craftbukkit.CraftServer.loadCustomPermissions(CraftServer.java:436)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:163)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Did I do something wrong to my config file?
    Show Spoiler

    # 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, shortfull, shorttitle, shortjob 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.
    #
    # To get a list of all available block types, check the
    # bukkit JavaDocs for a complete list of block types
    # http://jd.bukkit.org/apidocs/org/bukkit/Material.html
    #
    # 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

    Woodcutter:
    fullname: Woodcutter
    shortname: W
    ChatColour: GREEN
    chat-display: full
    #max-level: 10
    #slots: 2
    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: 5.0
    experience: 5.0
    PLACE:
    SAPLING:
    income: 5.0
    experience: 5.0
    Miner:
    fullname: Miner
    shortname: M
    ChatColour: DARK_GRAY
    chat-display: full
    #max-level: 10
    #slots: 2
    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: 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
    Farmer:
    fullname: Farmer
    shortname: Farm
    ChatColour: BLUE
    chat-display: full
    #max-level: 10
    #slots: 2
    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:
    CROPS-7:
    income: 8.0
    experience: 8.0
    SUGAR_CANE_BLOCK:
    income: 4.0
    experience: 4.0
    Place:
    SEEDS:
    income: 4.0
    experience: 4.0
    SUGAR_CANE_BLOCK:
    income: 1.0
    experience: 1.0
    Sheriff:
    fullname: Sheriff
    shortname: S
    ChatColour: RED
    chat-display: full
    #max-level: 10
    #slots: 1
    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
    Blacksmith:
    fullname: Blacksmith
    shortname: B
    ChatColour: DARK_PURPLE
    chat-display: full
    #max-level: 10
    #slots: 1
    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))
    Craft:
    WOOD_SWORD:
    income: 3.0
    experience: 3.0
    STONE_SWORD:
    income: 5.0
    experience: 5.0
    IRON_SWORD:
    income: 8.0
    experience: 8.0
    GOLD_SWORD:
    income: 9.0
    experience: 9.0
    DIAMOND_SWORD:
    income: 15.0
    experience: 15.0
    WOOD_AXE:
    income: 3.0
    experience:3.0
    STONE_AXE:
    income: 5.0
    experience: 5.0
    IRON_AXE:
    income: 8.0
    experience: 8.0
    GOLD_AXE:
    income: 9.0
    experience: 9.0
    DIAMOND_AXE:
    income: 15.0
    experience: 15.0
    WOOD_PICKAXE:
    income: 3.0
    experience:3.0
    STONE_PICKAXE
    income: 5.0
    experience: 5.0
    IRON_PICKAXE
    income: 8.0
    experience: 8.0
    GOLD_PICKAXE
    income: 9.0
    experience: 9.0
    DIAMOND_PICKAXE
    income: 15.0
    experience: 15.0

    Guildmaster:
    fullname: Guildmaster
    shortname: S
    ChatColour: GOLD
    chat-display: full
    #max-level: 10
    #slots: 1
    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:
    COAL_ORE:
    income: 2.0
    experience: 2.0
    IRON_ORE:
    income: 3.0
    experience : 3.0
    Log:
    income: 3.0
    experience 3.0
    Kill:
    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
    Place:
    LOG:
    income: -1.0
    experience: -1.0
    None:
    fullname: None
    shortname: N
    ChatColour: WHITE
    chat-display: none
    #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))
     
  17. Offline

    Dargan

    As a suggestion maybe you should add collecting items instead of breaking so if they break it indirectly they still get the money.
     
  18. Offline

    Jtmzac

    Try this:
    Show Spoiler
    Code:
    Jobs:
        Woodcutter:
            fullname: Woodcutter
            shortname: W
            ChatColour: GREEN
            chat-display: full
            #max-level: 10
            #slots: 2
            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: 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
        Miner:
            fullname: Miner
            shortname: M
            ChatColour: DARK_GRAY
            chat-display: full
            #max-level: 10
            #slots: 2
            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: 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
        Farmer:
            fullname: Farmer
            shortname: Farm
            ChatColour: BLUE
            chat-display: full
            #max-level: 10
            #slots: 2
            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:
                CROPS-7:
                    income: 8.0
                    experience: 8.0
                SUGAR_CANE_BLOCK:
                    income: 4.0
                    experience: 4.0
            Place:
                SEEDS:
                    income: 4.0
                    experience: 4.0
                SUGAR_CANE_BLOCK:
                    income: 1.0
                    experience: 1.0
        Sheriff:
            fullname: Sheriff
            shortname: S
            ChatColour: RED
            chat-display: full
            #max-level: 10
            #slots: 1
            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
        Blacksmith:
            fullname: Blacksmith
            shortname: B
            ChatColour: DARK_PURPLE
            chat-display: full
            #max-level: 10
            #slots: 1
            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))
            Craft:
                WOOD_SWORD:
                    income: 3.0
                    experience: 3.0
                STONE_SWORD:
                    income: 5.0
                    experience: 5.0
                IRON_SWORD:
                    income: 8.0
                    experience: 8.0
                GOLD_SWORD:
                    income: 9.0
                    experience: 9.0
                DIAMOND_SWORD:
                    income: 15.0
                    experience: 15.0
                WOOD_AXE:
                    income: 3.0
                    experience: 3.0
                STONE_AXE:
                    income: 5.0
                    experience: 5.0
                IRON_AXE:
                    income: 8.0
                    experience: 8.0
                GOLD_AXE:
                    income: 9.0
                    experience: 9.0
                DIAMOND_AXE:
                    income: 15.0
                    experience: 15.0
                WOOD_PICKAXE:
                    income: 3.0
                    experience: 3.0
                STONE_PICKAXE:
                    income: 5.0
                    experience: 5.0
                IRON_PICKAXE:
                    income: 8.0
                    experience: 8.0
                GOLD_PICKAXE:
                    income: 9.0
                    experience: 9.0
                DIAMOND_PICKAXE:
                    income: 15.0
                    experience: 15.0
        Guildmaster:
            fullname: Guildmaster
            shortname: S
            ChatColour: GOLD
            chat-display: full
            #max-level: 10
            #slots: 1
            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:
                COAL_ORE:
                    income: 2.0
                    experience: 2.0
                IRON_ORE:
                    income: 3.0
                    experience : 3.0
                LOG:
                    income: 3.0
                    experience: 3.0
            Kill:
                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
            Place:
                LOG:
                    income: -1.0
                    experience: -1.0

    In future I highly recommend notepad++ and using a yaml parser.
    The line x, column x: error is always a config error.
     
  19. Offline

    Errno452

    Hey, I was hoping, could you add PermissionsBukkit support? I bet many people want it :D
     
  20. Offline

    homeworlder_

    I
    Damnit. I only got access to Builds 1240, 1317, and 1337. None of these works.
     
  21. Offline

    Nickernacs

    Im making a muilti-player with Permissions! And I go on the original creator of this plug in and has the Permissions Code :

    jobs.join.<jobname>jobs.world.<worldname>
    But I put these commands on BUILDEr Permissions, but theres always an error, how do I set it up for permissions??!!
     
  22. Offline

    Jtmzac

    What do you mean access?
    If you click to dowload a build on the bukkit.org home page you can just change the last number in the URL (the build eg. http://ci.bukkit.org/job/dev-CraftBukkit/1337/) In this case 1337 to 1318 and it will take you to that build.
     
  23. Offline

    Errno452

    I expand this a little bit, Im not 100% sure is it because of PermissionsBukkit, but I did everything right, and when I type /jobs browse it says "There is no jobs you can join". I know the jobs exist. When I type /jobs join miner it says "You dont have permissions to do that". I typed all permission nodes right, plus Im OP and I got permission node
    '*': true
    Please help D:
     
  24. Offline

    homeworlder_

    Well, my server is hosted at Avante Hosting, and they got the MultiCraft console, which only gives the option to install Recommended builds, and there is NO way at ALL to bypass that :S
     
  25. Offline

    Jtmzac

    Ahh ok. I host my server on my computer and have never had to deal with hosting restrictions like that.
    Since 1337 isn't working either it must be something else.
    Is the config file it's talking about in the error actually in the jobs folder or not?
     
  26. Offline

    homeworlder_

    Well, only thing i know is that it cant find JobConfig.yml :S
     
  27. Offline

    Jtmzac

    Did you put the jobs folder from the zip the plugin downloads as into your plugin folder?
    It appears this is the only way to get the config files as jobs does not auto-generate them.
     
  28. Offline

    homeworlder_

    I am familiar with installing plugins, and i did everything that i have to do. As i said, (i think :p) It has worked before with the excact same setup/files, but with just the bukkit version that failed so, i will say this now, not to you but to the jobs developer;


    Please update to CB 1337 ! :D
     
  29. Offline

    unhead

    2011-10-27 21:00:48 [SEVERE] Could not pass event PLAYER_QUIT to Jobs
    java.lang.NullPointerException

    at com.zford.jobs.dao.JobsDAOMySQL.save(JobsDAOMySQL.java:136)
    at com.zford.jobs.Jobs.save(Jobs.java:1287)
    at com.zford.jobs.Jobs.removePlayer(Jobs.java:1252)
    at com.zford.jobs.listener.JobsPlayerListener.onPlayerQuit(JobsPlayerLis
    tener.java:48)
    at org.bukkit.plugin.java.JavaPluginLoader$2.execute(JavaPluginLoader.ja
    va:251)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:338)
    at net.minecraft.server.ServerConfigurationManager.disconnect(ServerConf
    igurationManager.java:146)
    at net.minecraft.server.NetServerHandler.disconnect(NetServerHandler.jav
    a:121)
    at org.bukkit.craftbukkit.entity.CraftPlayer.kickPlayer(CraftPlayer.java
    :139)
    at csharp.cauth.listeners.CAPlayerListener$1.run(CAPlayerListener.java:7
    3)
    at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)

    at java.lang.Thread.run(Thread.java:722)

    CB - 1060
    Jobs - 2.5.1
     
  30. Offline

    Hockey234100

    Awesome plugin! One of the most useful out there!
     

Share This Page