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

    EdvinL

    When starting my server, I get this error and Jobs 2.0.0 won't work:

    Code:
    20:11:26 [SEVERE] Error occurred while enabling Jobs v2.0.0 (Is it up to date?):
     while scanning for the next token; found character     '\t' that cannot start a
    ny token
    while scanning for the next token
    found character         '\t' that cannot start any token
     in "<reader>", line 223, column 28:
                        experience: 20.0
                                   ^
    
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.ja
    va:360)
            at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:18
    3)
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingValue.produce(P
    arserImpl.java:592)
            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.composeNode(Composer.java:132)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :230)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :230)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :230)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :230)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :230)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:12
    2)
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
    tructor.java:124)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:250)
            at me.alex.jobs.config.JobsConfiguration.loadJobSettings(JobsConfigurati
    on.java:244)
            at me.alex.jobs.config.JobsConfiguration.<init>(JobsConfiguration.java:7
    6)
            at me.alex.jobs.config.JobsConfiguration.getInstance(JobsConfiguration.j
    ava:990)
            at me.alex.jobs.Jobs.onEnable(Jobs.java:82)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:750)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:253)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:134)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:112)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    My jobConfig file:

    Code:
    Jobs:
        Lumberjack:
            fullname: Lumberjack
            shortname: L
            ChatColour: GREEN
            chat-display: full
            max-level: 120
            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
                LOG:
                    income: -5.0
                    experience: -5.0
        Miner:
            fullname: Miner
            shortname: M
            ChatColour: DARK_GRAY
            chat-display: full
            max-level: 120
            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
        Farmer:
            fullname: Farmer
            shortname: F
            ChatColour: YELLOW
            chat-display: full
            max-level: 120
            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: -5.0
                    experience: -5.0
        Hunter:
            fullname: Hunter
            shortname: H
            ChatColour: GRAY
            chat-display: full
            max-level: 120
            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:
                MOB_SPAWNER:
                    income: 250.0
                    experience: 250.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
                PigZombie:
                    income: 13.0
                    experience: 13.0
                Ghast:
                    income: 20.0
                    experience:    20.0
        Butcher:
            fullname: Butcher
            shortname: B
            ChatColour: DARK_RED
            chat-display: full
            max-level: 120
            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:
                Pig:
                    income: 5.0
                    experience: 5.0
                Cow:
                    income: 5.0
                    experience: 5.0
                Sheep:
                    income: 5.0
                    experience: 5.0
                Chicken:
                    income: 5.0
                    experience: 5.0
     
  3. Offline

    6y7t8h

    exp isn't working for me :(
     
  4. Offline

    TheDaddyPeanut

    Money and XP don't work any reasons why? No errors in the log and permissions i added this:

    -'jobs.world.*'
    -'jobs.join.*'
     
  5. Offline

    thernztrom

    Hello again flame :p
    I just set up Jobs 2.0 on RB 818 with standard configs and via MySQL.
    When we joined Miner for example and mined 2 stone blocks we leveld up like 30 levels and got billions of dollars. (i use iconomy 5.01)
    Are you sure thats right? :p
     
  6. Offline

    EricDownz

    Ok, Got it! Thanks very much! Also adding new jobs is hard for me cause when i oprn config it comes out a big paragraph and it confuses the crap outta me :p any other way to make it look less confusing or whatever
     
  7. Offline

    flametornado

    yes, otherwise use jobs.join.* to let that group join all jobs.

    i was thinking of making a customizable prefix like the messages are. I just haven't thought of how to code it nicely yet.

    something really weir is happening there :( or at least it looks weird from the stack source. Can you upload your config file and tell me if there are a any other console messages (mostly at startup).

    do you have the permissions jobs.join.*?

    can't use tabs, has to be 4 spaces :(. YML is annoying like that :(.

    do you have the world permissions? jobs.world.*

    odd, that should work, can you join and leave jobs?

    Strange. I used jobs 2.0 with rb818 and the standard configs viaMySQL and it's taken me 20 or so hours to get to lvl 50. ( i used iConomy 5.0 but there shouldn't be that much of a difference)

    use notepad++
     
  8. Offline

    thernztrom

    Yeah, its really weird :/
    Also i noticed with my setting of the chat thingy, to show: none, made people with jobs have aprox 2 spaces ectra between their rank and name. (I use Herochat) So instead of [Member]_thernztrom, it was [Member]___thernztrom
    You know if there is any way to let it be 0 spaces at 'none'?
     
  9. Offline

    flametornado

    it should be 0 spaces at none. I'll use herochat as well and make sure it's not clashing with that.
     
  10. Offline

    FlawlezZ

    I have the same issue. people just can't join any job and cant browse them either. Only the admins who can do anything can join a job. I have the correct permissions (also jobs.join.*)
     
  11. Offline

    TheDaddyPeanut

    @flametornado

    It was a problem in permissions. I used permissions 3.0 on b818 but i used to have 3.1 on b818 :D
    Sorry, and btw, are you working on money for crafting? I woul realy appreciate that because I have like 7 players in my server and they all want it because one is digger, he sells Glass to us. Miners sell iron ignots and coal and gold and other things to melt in the furnace. So would be realy cool ;)
     
  12. Offline

    flametornado

    I am looking into doing that, a little more complicated than break, place and kill though :(
     
  13. Offline

    6y7t8h

    Everything is normal at startup :| Thanks for helping me :)
    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:
        Miner:
            fullname: Miner
            shortname: M
            ChatColour: WHITE
            chat-display: full
            #max-level: 60
            #slots: 100
            leveling-progression-equation: 100*((1.20+(0.01))^(joblevel-1))
            income-progression-equation: baseincome*((1.01)^(joblevel-1))
            experience-progression-equation: baseexperience*((1.02)^(joblevel-1))
            Break:
                COAL_ORE:
                    income: 0.5
                    experience: 3.0
                REDSTONE_ORE:
                    income: 1.0
                    experience: 3.0
                IRON_ORE:
                    income: 2.0
                    experience: 4.0
                GOLD_ORE:
                    income: 3.0
                    experience: 5.0
                DIAMOND_ORE:
                    income: 4.0
                    experience: 6.0
            Place:
                IRON_ORE:
                    income: -5.0
                    experience: -5.0
                GOLD_ORE:
                    income: -6.0
                    experience: -6.0
        Thief:
            fullname: Thief
            shortname: T
            ChatColour: WHITE
            chat-display: full
            #max-level: 20
            #slots: 50
            leveling-progression-equation: 100*((1.20+(0.01))^(joblevel-1))
            income-progression-equation: baseincome*((1.01)^(joblevel-1))
            experience-progression-equation: baseexperience*((1.02)^(joblevel-1))
            Kill:
                Player:
                    income: 2.0
                    experience: 5.0
            custom-kill:
                Hunter:
                    income: 5.0
                    experience: 5.0
        Excavator:
            fullname: Excavator
            shortname: E
            ChatColour: WHITE
            chat-display: full
            #max-level: 60
            #slots: 100
            leveling-progression-equation: 100*((1.20+(0.01))^(joblevel-1))
            income-progression-equation: baseincome*((1.05)^(joblevel-1))
            experience-progression-equation: baseexperience*((1.02)^(joblevel-1))
            Break:
                DIRT:
                    income: 0.05
                    experience: 2.0
                GRASS:
                    income: 0.05
                    experience: 2.0
                GRAVEL:
                    income: 0.05
                    experience: 3.0
                SAND:
                    income: 0.05
                    experience: 3.0
                CLAY:
                    income: 0.1
                    experience: 4.0
            Place:
                DIRT:
                    income: -0.05
                    experience: -2.0
                GRASS:
                    income: -0.05
                    experience: -2.0
                GRAVEL:
                    income: -0.05
                    experience: -3.0
                SAND:
                    income: -0.05
                    experience: -3.0
                CLAY:
                    income: -0.1
                    experience: -4.0
        Farmer:
            fullname: Farmer
            shortname: F
            ChatColour: WHITE
            chat-display: full
            #max-level: 60
            #slots: 100
            leveling-progression-equation: 100*((1.20+(0.01))^(joblevel-1))
            income-progression-equation: baseincome*((1.01)^(joblevel-1))
            experience-progression-equation: baseexperience*((1.02)^(joblevel-1))
            Break:
                WHEAT:
                    income: 0.07
                    experience: 2.0
                SUGAR_CANE_BLOCK:
                    income: 0.07
                    experience: 2.0
            Place:
                SEEDS:
                    income: 0.05
                    experience: 2.0
                SUGAR_CANE_BLOCK:
                    income: 0.05
                    experience: 2.0
            Kill:
                Cow:
                    income: 0.3
                    experience: 2.0
                Pig:
                    income: 0.3
                    experience: 2.0
        Hunter:
            fullname: Hunter
            shortname: H
            ChatColour: WHITE
            chat-display: full
            #max-level: 30
            #slots: 50
            leveling-progression-equation: 100*((1.20+(0.01))^(joblevel-1))
            income-progression-equation: baseincome*((1.01)^(joblevel-1))
            experience-progression-equation: baseexperience*((1.02)^(joblevel-1))
            Kill:
                Zombie:
                    income: 3.0
                    experience: 3.0
                Player:
                    income: -20.0
                    experience: -20.0
                Giant:
                    income: 10.0
                    experience: 10.0
            custom-kill:
                Thief:
                    income: 100.0
                    experience: 20.0
        Woodcutter:
            fullname: Woodcutter
            shortname: W
            ChatColour: WHITE
            chat-display: full
            #max-level: 60
            #slots: 100
            leveling-progression-equation: 100*((1.20+(0.01))^(joblevel-1))
            income-progression-equation: baseincome*((1.01)^(joblevel-1))
            experience-progression-equation: baseexperience*((1.02)^(joblevel-1))
            Break:
                LOG:
                    # base income
                    income: 0.2
                    # base experience
                    experience: 2.0
                SAPLING:
                    income: -0.1
                    experience: -1.0
            Place:
                LOG:
                    income: -0.2
                    experience: -2.0
                SAPLING:
                    income: 0.1
                    experience: 1.0
    I'll try this, but I have jobs.world.[worldname]
     
  14. Offline

    Taien

    OK! So I figured out why the tags for jobs were not appearing in chat - it's because EssentialsChat was installed even though we don't use it. Upon removing it, the tags show up just fine. So no problem there. I imagine EssentialsChat may also be responsible for my second problem below...I have to find a replacement for it. I hear most people are using iChat...and you said that works fine, right?

    (As stated above) I am having a problem where users on the server are losing their jobs. I'm not seeing any errors in console that relate. I've had it happen to me as well. I really think some plugin is causing this as you claim to not be having this problem.

    The plugin should theoretically be able to handle any number of jobs right? Because we are running about 12 at the moment...

    What happens is people pick two jobs, and when they log out for a while and come back, one of their two jobs vanishes. I don't think the data is lost, it's just not showing up. Really confusing. Will try iChat, see if that helps.
     
  15. Offline

    Dr Danco

    speaking of this option i mentioned before...its not working! even though i put none, it still says the job in front of my name...any ideas?
     
  16. Offline

    Schulzi

    Where is the Itemlist? I need them, please.
     
  17. Offline

    OveRKinG

    Not color message
    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: DARK_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: none
            # [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: 100
            # 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: 20.0
                    # base experience
                    experience: 20.0
        Miner:
            fullname: Miner
            shortname: M
            ChatColour: BLACK
            chat-display: none
            max-level: 10
            slots: 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:
                COAL_ORE:
                    income: 2.0
                    experience: 2.0
                REDSTONE_ORE:
                    income: 3.5
                    experience: 3.5
                IRON_ORE:
                    income: 3.0
                    experience: 3.0
                GOLD_ORE:
                    income: 4.5
                    experience: 4.5
                LAPIS_ORE:
                    income: 6.0
                    experience: 6.0
                DIAMOND_ORE:
                    income: 7.0
                    experience: 7.0
                OBSIDIAN:
                    income: 10.0
                    experience: 10.0
            Place:
                IRON_ORE:
                    income: -5.0
                    experience: -5.0
                GOLD_ORE:
                    income: -6.0
                    experience: -6.0
            Kill:
                Player:
                    income: 15.0
                    experience: 15.0
            custom-kill:
                Miner:
                    income: 20.0
                    experience: 20.0
        Farmer:
            fullname: Farmer
            shortname: F
            ChatColour: GREEN
            chat-display: none
            max-level: 10
            slots: 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:
                WHEAT:
                    income: 5.0
                    experience: 2.5
                SUGAR_CANE_BLOCK:
                    income: 4.5
                    experience: 4.5
            Place:
                SEEDS:
                    income: 2.5
                    experience: 2.5
                SUGAR_CANE_BLOCK:
                    income: 2.0
                    experience: 2.0
            Kill:
                Player:
                    income: 15.0
                    experience: 15.0
            custom-kill:
                Farmer:
                    income: 20.0
                    experience: 20.0
        Hunter:
            fullname: Hunter
            shortname: H
            ChatColour: RED
            chat-display: none
            max-level: 10
            slots: 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))
            Kill:
                Chicken:
                    income: 2.5
                    experience: 2.5
                Cow:
                    income: 5.0
                    experience: 5.0
                Pig:
                    income: 4.0
                    experience: 4.0
                Sheep:
                    income: 6.0
                    experience: 6.0
                Wolf:
                    income: 10.0
                    experience: 10.0
                Creeper:
                    income: 15.0
                    experience: 15.0
                Skeleton:
                    income: 10.0
                    experience: 10.0
                Spider:
                    income: 10.0
                    experience: 10.0
                Zombie:
                    income: 10.0
                    experience: 10.0
                Player:
                    income: 25.0
                    experience: 25.0
            custom-kill:
                Woodcutter:
                    income: 30.0
                    experience: 30.0
                Miner:
                    income: 30.0
                    experience: 30.0
                Farmer:
                    income: 30.0
                    experience: 30.0
                Hunter:
                    income: 40.0
                    experience: 40.0      
     
  18. Offline

    Schulzi

    Ty!

    EDIT: When i write the ID instead of the NAME i get an error in my console. Help?
     
  19. Offline

    RustyDagger

    Hmm ok then just to be safe i think i will just make the new jobs and then use replace to change all the names in the db upload it and start the server i can do the whole lot in about 4 min flat so not much downtime for the users :D preparation is my friend :)
     
  20. Offline

    XSaracen

    I really like this but it wont work on my server. everytime someone types /jobs it just gives them the option for /jobs info nothing else. But the Admins can join jobs, i setup my permissions right to i put jobs.join.* under the default class and jobs.world.world. please help
     
  21. Offline

    6y7t8h

    I have the jobs.world.* permission but still XP gain wont work :/
    Money works just fine
     
  22. Offline

    undeaddean

    hello m8 make your self admin and the exp and money works but i think he need to fix it
     
  23. Offline

    FlawlezZ

    I have exactly the same problem.
     
  24. Offline

    anklesneeze

    Has anyone used this with Essentials Eco and Essentials Group Mgr? I know it is supposed to be Iconomy compatible not sure to what degree?
     
  25. Offline

    Schulzi

    Can't you just show me the itemlist?(names(not IDs))
     
  26. Offline

    flametornado

    You need to replace [worldname] with the name of your world. e.g. jobs.world.world

    can they still see their job if they do /jobs stats? Also, i tried to replicate this error and i couldn't, on both flatfile and mysql. I'm currently running my plugin on my server and it has absolutely no problem in the couple of weeks it's been up.

    Works for me. It is job specific though, so you need to do it or all jobs if you want none of them to display the title.

    http://javadoc.lukegb.com/Bukkit/d7...bukkit.html#ab7fa290bb19b9a830362aa88028ec80a

    You have to make sure that the block you pick is actually a block and not an item otherwise it won't pay out. You can also do the block ids if that's easier for you.

    ??? What is the problem?

    what console error? IDs work fine for me

    jobs are case sensitive. Could that be the problem?

    can you upload your configuration files?

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

    fadesocke

    When i Join a Job, the server disable the Jobs Plugin.

    04:01:51 [SEVERE] [Jobs] - Error loading jobs.data. Disabling plugin!
    04:01:51 [SEVERE] java.io.FileNotFoundException: plugins/Jobs/jobs.data (Permission denied)
    04:01:51 [SEVERE] at java.io.FileOutputStream.open(Native Method)
    04:01:51 [SEVERE] at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
    04:01:51 [SEVERE] at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
    04:01:51 [SEVERE] at java.io.FileWriter.<init>(FileWriter.java:46)
    04:01:51 [SEVERE] at me.alex.jobs.dao.JobsDAOFlatfile.save(JobsDAOFlatfile.java:130)
    04:01:51 [SEVERE] at me.alex.jobs.Jobs.save(Jobs.java:1282)
    04:01:51 [SEVERE] at me.alex.jobs.Jobs.saveAll(Jobs.java:1272)
    04:01:51 [SEVERE] at me.alex.jobs.Jobs.onDisable(Jobs.java:63)
    04:01:51 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    04:01:51 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:771)
    04:01:51 [SEVERE] at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:269)
    04:01:51 [SEVERE] at me.alex.jobs.Jobs.disablePlugin(Jobs.java:1340)
    04:01:51 [SEVERE] at me.alex.jobs.dao.JobsDAOFlatfile.joinJob(JobsDAOFlatfile.java:73)
    04:01:51 [SEVERE] at me.alex.jobs.listener.JobsJobListener.onJobJoin(JobsJobListener.java:146)
    04:01:51 [SEVERE] at me.alex.jobs.event.JobsEventListener.onCustomEvent(JobsEventListener.java:19)
    04:01:51 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader$69.execute(JavaPluginLoader.java:727)
    04:01:51 [SEVERE] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    04:01:51 [SEVERE] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
    04:01:51 [SEVERE] at me.alex.jobs.Jobs.onCommand(Jobs.java:198)
    04:01:51 [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    04:01:51 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
    04:01:51 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:281)
    04:01:51 [SEVERE] at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:718)
    04:01:51 [SEVERE] at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:684)
    04:01:51 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:677)
    04:01:51 [SEVERE] at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    04:01:51 [SEVERE] at net.minecraft.server.NetworkManager.b(NetworkManager.java:217)
    04:01:51 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    04:01:51 [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    04:01:51 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:401)
    04:01:51 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
    04:01:51 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    04:01:51 [INFO] [Jobs v2.0.0] has been disabled succesfully.
    04:01:51 [SEVERE] Could not pass event CUSTOM_EVENT to Jobs
    java.lang.NullPointerException
    at me.alex.jobs.Jobs.getJob(Jobs.java:1264)
    at me.alex.jobs.listener.JobsJobListener.onJobJoin(JobsJobListener.java:161)
    at me.alex.jobs.event.JobsEventListener.onCustomEvent(JobsEventListener.java:19)
    at org.bukkit.plugin.java.JavaPluginLoader$69.execute(JavaPluginLoader.java:727)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
    at me.alex.jobs.Jobs.onCommand(Jobs.java:198)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    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)
     
  28. Offline

    flametornado

    You don't have read/write permissions in that file.

    Give the folder write permissions or create an empty file called jobs.data with read and write permissions
     
  29. Offline

    6y7t8h

    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: 20
      
    # Do all players get a message when somone goes up a skill level?
    
    broadcast-on-skill-up: false
      
    # maximum number of jobs a player can join
    
    max-jobs: 1
    
    
    Code:
    # Jobs configuration.
    
    
    [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:
        Miner:
            fullname: Miner
            shortname: M
            ChatColour: WHITE
            chat-display: full
            max-level: 60
            #slots: 100
            leveling-progression-equation: 100*((1.20+(0.01))^(joblevel-1))
            income-progression-equation: baseincome*((1.01)^(joblevel-1))
            experience-progression-equation: baseexperience*((1.02)^(joblevel-1))
            Break:
                COAL_ORE:
                    income: 0.5
                    experience: 3.0
                REDSTONE_ORE:
                    income: 1.0
                    experience: 3.0
                IRON_ORE:
                    income: 2.0
                    experience: 4.0
                GOLD_ORE:
                    income: 3.0
                    experience: 5.0
                DIAMOND_ORE:
                    income: 4.0
                    experience: 6.0
            Place:
                IRON_ORE:
                    income: -5.0
                    experience: -5.0
                GOLD_ORE:
                    income: -6.0
                    experience: -6.0
        Thief:
            fullname: Thief
            shortname: T
            ChatColour: WHITE
            chat-display: full
            max-level: 20
            slots: 5
            leveling-progression-equation: 100*((1.20+(0.01))^(joblevel-1))
            income-progression-equation: baseincome*((1.01)^(joblevel-1))
            experience-progression-equation: baseexperience*((1.02)^(joblevel-1))
            custom-kill:
                Hunter:
                    income: 20.0
                    experience: 5.0
                Farmer:
                    income: 10.0
                    experience: 5.0
        Excavator:
            fullname: Excavator
            shortname: E
            ChatColour: WHITE
            chat-display: full
            #max-level: 60
            #slots: 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:
                DIRT:
                    income: 0.05
                    experience: 2.0
                GRASS:
                    income: 0.05
                    experience: 2.0
                GRAVEL:
                    income: 0.05
                    experience: 3.0
                SAND:
                    income: 0.05
                    experience: 3.0
                CLAY:
                    income: 0.1
                    experience: 4.0
            Place:
                DIRT:
                    income: -0.05
                    experience: -2.0
                GRASS:
                    income: -0.05
                    experience: -2.0
                GRAVEL:
                    income: -0.05
                    experience: -3.0
                SAND:
                    income: -0.05
                    experience: -3.0
                CLAY:
                    income: -0.1
                    experience: -4.0
        Farmer:
            fullname: Farmer
            shortname: F
            ChatColour: WHITE
            chat-display: full
            max-level: 60
            #slots: 100
            leveling-progression-equation: 100*((1.20+(0.01))^(joblevel-1))
            income-progression-equation: baseincome*((1.01)^(joblevel-1))
            experience-progression-equation: baseexperience*((1.02)^(joblevel-1))
            Break:
                WHEAT:
                    income: 0.07
                    experience: 2.0
                SUGAR_CANE_BLOCK:
                    income: 0.07
                    experience: 2.0
            Place:
                SEEDS:
                    income: 0.05
                    experience: 2.0
            Kill:
                Cow:
                    income: 0.3
                    experience: 2.0
                Pig:
                    income: 0.3
                    experience: 2.0
        Hunter:
            fullname: Hunter
            shortname: H
            ChatColour: WHITE
            chat-display: full
            max-level: 30
            #slots: 50
            leveling-progression-equation: 100*((1.20+(0.01))^(joblevel-1))
            income-progression-equation: baseincome*((1.01)^(joblevel-1))
            experience-progression-equation: baseexperience*((1.02)^(joblevel-1))
            Kill:
                Zombie:
                    income: 3.0
                    experience: 3.0
                Player:
                    income: -20.0
                    experience: -20.0
                Giant:
                    income: 10.0
                    experience: 10.0
            custom-kill:
                Thief:
                    income: 120.0
                    experience: 50.0
        Woodcutter:
            fullname: Woodcutter
            shortname: W
            ChatColour: WHITE
            chat-display: full
            max-level: 60
            #slots: 100
            leveling-progression-equation: 100*((1.20+(0.01))^(joblevel-1))
            income-progression-equation: baseincome*((1.01)^(joblevel-1))
            experience-progression-equation: baseexperience*((1.02)^(joblevel-1))
            Break:
                LOG:
                    income: 0.2
                    experience: 2.0
                SAPLING:
                    income: -0.1
                    experience: -1.0
            Place:
                LOG:
                    income: -0.2
                    experience: -2.0
                SAPLING:
                    income: 0.1
                    experience: 1.0
    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 can only have one job at a time.
    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 can only join one job.
    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.
    Also I have given my players the jobs.world.* and we still can't gain exp
     
  30. Offline

    Schulzi

    Code:
    09:26:32 [SEVERE] java.lang.ClassCastException: java.lang.Integer cannot be cast
     to java.lang.String
    09:26:32 [SEVERE]       at me.alex.jobs.Jobs.onEnable(Jobs.java:159)
    09:26:32 [SEVERE]       at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlug
    in.java:125)
    09:26:32 [SEVERE]       at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(
    JavaPluginLoader.java:750)
    09:26:32 [SEVERE]       at org.bukkit.plugin.SimplePluginManager.enablePlugin(Si
    mplePluginManager.java:253)
    09:26:32 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftSe
    rver.java:134)
    09:26:32 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftS
    erver.java:112)
    09:26:32 [SEVERE]       at net.minecraft.server.MinecraftServer.e(MinecraftServe
    r.java:232)
    09:26:32 [SEVERE]       at net.minecraft.server.MinecraftServer.a(MinecraftServe
    r.java:219)
    09:26:32 [SEVERE]       at net.minecraft.server.MinecraftServer.init(MinecraftSe
    rver.java:146)
    09:26:32 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:285)
    09:26:32 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    09:26:32 [INFO] Jobs 1.3.3b not started, there's an error with the configuration
    This happens when i write the id instead of the name.
    Thanks for the Id names!

    EDIT: Oh, i had the worng version. Problem solved!
     
  31. Offline

    Taien

    Sometimes the jobs stick, but most of the time one or both are lost. I'm thinking maybe I have a corrupt jobs.data somehow...I'm going to try resetting it, see if that helps. Otherwise I think there's some kind of plugin conflict. Could you list for me the plugins you have on your server so I can rule out the ones we both have?

    Btw, thanks for all your quick and informative responses. You're one of the better plugin programmers around here in that respect. I know people who ask the same questions over and over can be...trying...but you're doing great and I really think this is the best jobs plugin due to its versatility. Now I just gotta figure out why my server seems to break it :p
     
Thread Status:
Not open for further replies.

Share This Page