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

    flametornado

    Kill tags are not all caps. See OP for instruction.
     
  3. Offline

    Galaxy

    @flametornado
    wow.... /facepalm ftw lol ok well for my farmer one is CROPS just wheat or is it seeds and Wheat if not can you explain please?
     
  4. Offline

    flametornado

    ???
     
  5. Offline

    Galaxy

    @flametornado
    ok for my farmer job. for placing and breaking the tag "CROPS" is that wheat or seeds or both or like what?
     
  6. Offline

    flametornado

    Whenever you create crops or break crops.
     
  7. Offline

    xxxfakaxxx

    Nope. Everyone can destroy sand, dirt, stone, glass, wood etc, but: woodcutter can destroy logs, miner can destroy ores, farmer can destroy wheat, seeds and saplings
     
  8. Offline

    flametornado

    That would still get annoying, but i'll think about it
     
  9. Offline

    xxxfakaxxx

    This functionwill be additional, and if dont need it - just disable
     
  10. Jobs Version 1.3-3b Iconomy version 5
     
  11. Offline

    Gorvie

    Hello, this plugin is really good.

    But with me it does not work when I configure the config file. With the original there is no problem.

    I use: 1.3.3b with Iconomy 5
    Here is the config file:

    Code:
    # storage method, can be MySQL, sqlite, flatfile
    storage-method: flatfile
    
    # Requires Mysql.
    mysql-username: root
    mysql-password:
    mysql-database: minecraft
    mysql-url: jdbc:mysql://localhost:3306/
    sqlite-url: jdbc:sqlite:test.db
    
    # base experience needed to level up from level 1 to 2
    # experience to level up is base-exp*(1+levelingProgressionRate)^level
    base-exp: 100
    
    # mutiplier for xp. xp-multiplyer*jobPay = experience
    xp-multiplyer: 1.0
    
    # choose the prefix in chat- full = job and skill level, skill = skill level only,
    # job = job level only, none = no prefix
    chat-display: job
    
    # choose to broadcast when the user goes up a skill rank to everyone
    broadcast-skill-up: true
    
    # How often in minutes you want it to save, 0 disables periodic saving and
    # the system will only save on logout
    save-period: 10
    
    # money you get paid for any block placed or destroyed not in the list for your job
    flat-rate-payout: 0.0
    
    # Create Jobs
    # All jobs must follow this framework, <...> means optional
    #
    # Jobs:
    #     [NAME]
    #         ChatColour: [COLOUR]
    #         levelingProgressionRate: [double]
    #         incomeProgressionRate: [double]
    #         Break:
    #             <object_name: [price]>
    #             ...
    #             <object_name: [price]>
    #         Place:
    #             <object_name: [price]>
    #             ...
    #             <object_name: [price]>
    #         Kill:
    #             <creature_name: [price]>
    #             ...
    #             <creature_name: [price]>
    #
    # * In the break section they users will be given or subtracted money on breaking the object.
    # * In the place section they users will be given or subtracted money on placing the object.
    # * In the kill section they users will be given or subtracted money on killing a creature.
    # * levelingProgressionRate is the rate at which the experience required to get to the next
    # level increases between levels.
    # * incomeProgressionRate is the rate at which the money gained per item.
    # * ChatColour is the colour of the title.
    #
    # NOTE: the object name must be exactly what the material is in the code. e.g:
    # cobblestone      -> COBBLESTONE
    # diamond ore      -> DIAMOND_ORE
    # tree trunks(any) -> LOG
    # wooden boards    -> WOOD
    #
    Jobs:
        Bucheron:
            ChatColour: GREEN
            levelingProgressionRate: 0.12
            incomeProgressionRate: 0.04
            Break:
                LOG: 0.4
                SAPLING: -1
            Place:
                SAPLING: 0.2
        Mineur:
            ChatColour: DARK_GRAY
            levelingProgressionRate: 0.12
            incomeProgressionRate: 0.04
            Break:
                COAL_ORE: 0.2
                REDSTONE_ORE: 0.5
                IRON_ORE: 0.4
                GOLD_ORE: 1.0
                LAPIS_ORE: 0.75
                DIAMOND_ORE: 5.0
                OBSIDIAN: 4.0
            Place:
                IRON_ORE: -4.0
                GOLD_ORE: -4.0
        Paysan:
            ChatColour: GRAY
            levelingProgressionRate: 0.12
            incomeProgressionRate: 0.04
            Break:
                SUGAR_CANE_BLOCK: 0.2
                CROPS: 0.4
                CACTUS: 0.5
                PUMPKIN: 1.0
            Place:
                PUMPKIN: -1.0
        Soldat:
            ChatColour: GOLD
            levelingProgressionRate: 0.12
            incomeProgressionRate: 0.04
            Break:
                MOB_SPAWNER: 15
            Kill:
                Creeper: 0.5
                Skeleton: 0.4
                Spider: 0.2
                Zombie: 0.3
                Slime: 0.5
                PigZombie: 1
    
    # Create titles
    # to create a title, they must follow this patter.
    # Titles:
    #     [Title Name]:
    #         ChatColour: [ChatColor]
    #         levelReq : [Integer]
    #
    # NOTE: levelReq must be the lowest level you can be to gain this title. It is recommended
    # but not neccessary to have a title at 0.
    Titles:
        Apprenti:
            ChatColour: WHITE
            levelReq: 0
        Novice:
            ChatColour: GRAY
            levelReq: 30
        Maitre:
            ChatColour: GOLD
            levelReq: 60
        Pro:
            ChatColour: BLACK
            levelReq: 90
    Sorry for my bad English, I'm French. :confused:
     
  12. Offline

    flametornado

    Mob Spawner is 15 not 15.0, Sapling is -1 not -1.0, PigZombie is 1 not 1.0

    Hi all, This is just a quick news post so you all know what is happening.

    I am pretty busy atm, but in a couple of weeks i should be able to squeeze in some good development time.

    The next update will be BIG. By big, I mean most of the feature list will be implemented.

    This will mean the configuration file will evolve (and sadly become more complicated). I will try to write in built handling of errors (like integers being where doubles should be and doubles being where integers should be and so on).

    This, however will take time as some of the new features require me to do pretty much a complete re-write and re-design most of this (mostly because of multi-jobs).

    Stay tuned. I may release a WIP version once most of the stuff has been integrated (but probably not thoroughly tested) for the people that are curious :p

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

    Taien

    Really loving the plugin, man. Very lightweight and customizable. Total win.

    Anyway, I hope you add the ability to add classes as a Kill: target. :)

    Also, I'm using 1.3.2b now since my server uses Towny which STILL hasn't updated to iConomy 5.0...and I noticed that sometimes I still don't get rewarded XP or Money for killing a mob with a class that is a mob killer. Maybe try taking a look at ecoCreature's code to see how they always catch it? Or do you think me also having ecoCreature on the server would cause problems with your plugin? I know it's outdated and will never be updated again but it was and still is a great plugin for monster drops and money.

    Anyway, aside from that, we are heavily using and loving this plugin. I hope you add many new features to it but keep it smooth enough to not cause the kind of block lag mcMMO is infamous for. If I had to ditch ecoCreature for this mod, I would definitely do it.

    Couple ideas I had that I'll eventually post to your sourceforge:
    1. Maybe add a random fluctuant that can make the amount of XP and money gained from actions change a little bit each time so it isn't always the same set amount. Ops could set this to 0 by default to just use the current method or set it to say 0.02 to make the amount of xp and money fluctuate randomly between +2% and -2%.
    2. Add a Craft: section to the class config, so that when players craft a certain kind of item(when they pull it from the crafting table result slot) they get xp and money.

    Other than that....we love your plugin :)

    Stop by sometime and see our classes:
    Chubbycraft
    173.208.58.75
     
  14. Offline

    flametornado

    crafting is on the list of things to do.
    I will add xp fluctuations, that seems like an interesting idea, can you please add it to the requested features section of the sourceforge site on the OP.

    I have no conflicts with eco creature as far as i know, though i will have to replace it with kill tags in my plugin since iconomy changed to version 5.

    I haven't found any block lag with mcmmo and to be honest, I don't think i'll ever be able to play minecraft without it.

    ecocreature doesn't show source so I can't look at it. Can you see if you can narrow it down and see in what cases you don't get money for killing things?
     
  15. Offline

    Giuseppe

    hi
    Thank for this Great plugin
    i have an idea, can you add crafting detection
    for baker or a smith
     
  16. Offline

    flametornado

    already on the todo list. Not as easy as break, place and kill. No bukkit api for it yet, tho it seems like one's in the making.
     
  17. Offline

    Darcion

    now i got a outofmemory issue and then after stopping server this:

    its version 1.3.2

    EXCEPTION STACK TRACE:



    ** BEGIN NESTED EXCEPTION **

    java.net.SocketException
    MESSAGE: Socket input is already shutdown

    STACKTRACE:

    java.net.SocketException: Socket input is already shutdown
    at java.net.Socket.shutdownInput(Unknown Source)
    at com.mysql.jdbc.MysqlIO.quit(MysqlIO.java:1683)
    at com.mysql.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:4388)
    at com.mysql.jdbc.ConnectionImpl.cleanup(ConnectionImpl.java:1368)
    at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2654)
    at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2111)
    at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2407)
    at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2325)
    at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2310)
    at me.alex.jobs.dao.MySQLJobsDAO.cleanUp(MySQLJobsDAO.java:155)
    at me.alex.jobs.dao.MySQLJobsDAO.saveJob(MySQLJobsDAO.java:131)
    at me.alex.jobs.Jobs.saveAll(Jobs.java:446)
    at me.alex.jobs.SaveScheduler.run(SaveScheduler.java:12)
    at java.util.TimerThread.mainLoop(Unknown Source)
    at java.util.TimerThread.run(Unknown Source)


    ** END NESTED EXCEPTION **


    2011-05-05 14:22:28 [SEVERE] java.lang.NullPointerException
    2011-05-05 14:22:28 [SEVERE] at me.alex.jobs.dao.MySQLJobsDAO.disconnect(MySQLJobsDAO.java:49)
    2011-05-05 14:22:28 [SEVERE] null
    java.io.IOException: Input/output error
    at java.io.FileInputStream.read(Native Method)
    at jline.Terminal.readCharacter(Terminal.java:99)
    at jline.UnixTerminal.readVirtualKey(UnixTerminal.java:128)
    at jline.ConsoleReader.readVirtualKey(ConsoleReader.java:1453)
    at jline.ConsoleReader.readBinding(ConsoleReader.java:654)
    at jline.ConsoleReader.readLine(ConsoleReader.java:494)
    at net.minecraft.server.ThreadCommandReader.run(ThreadCommandReader.java:28)
    2011-05-05 14:22:28 [SEVERE] at me.alex.jobs.dao.MySQLJobsDAO.cleanUp(MySQLJobsDAO.java:178)
    2011-05-05 14:22:28 [SEVERE] at me.alex.jobs.dao.MySQLJobsDAO.saveJob(MySQLJobsDAO.java:131)
    2011-05-05 14:22:28 [SEVERE] at me.alex.jobs.Jobs.saveAll(Jobs.java:446)
    2011-05-05 14:22:28 [SEVERE] at me.alex.jobs.SaveScheduler.run(SaveScheduler.java:12)
    2011-05-05 14:22:28 [SEVERE] at java.util.TimerThread.mainLoop(Unknown Source)
    2011-05-05 14:22:28 [SEVERE] at java.util.TimerThread.run(Unknown Source)
     
  18. Offline

    Zenithas

    Apologies for the bug report in here earlier. Didn't see the request for the sourceforge reporting >_o I'll copypasta.

    ... $&@%, forgot to add that it's me in the bug report. Sorry, flame. I'm tired, and it's been a long day.

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

    Giuseppe

    hi
    can you add please
    the Permision /jobs join <jobname> <playername>
    when i type /jobs join Swat Marvin can i add marvin in this job
     
  20. Offline

    xXNeMeSiSXx

    Till update 1.3.3b doesnt work...
    Have iConomy 5 and permissions 2.7.2
     

    Attached Files:

  21. Offline

    l3arry

  22. Offline

    RustyDagger

    There was some crafting hooks added in 741 i believe another plugin is already making use of them You should take a look there should be a grabbed result hook and that would suit your needs just nice.
     
  23. I use 1.3-3b and Iconomy 5. has not changed any thing in the original config file
     
  24. Offline

    xyxgreendayxyx

    Oh, okay. Thank you very much! :) (Swedish Characters ftw ÅÄÖ :p)
     
  25. Offline

    Alesana

    Hey, i'm getting this error: :(

    Code:
    2011-05-05 13:46:10 [SEVERE] Could not pass event PLUGIN_ENABLE to Jobs
    java.lang.NoClassDefFoundError: com/iConomy/iConomy
        at me.alex.jobs.PluginListener.onPluginEnable(PluginListener.java:25)
        at org.bukkit.plugin.java.JavaPluginLoader$34.execute(JavaPluginLoader.java:408)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:633)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.ClassNotFoundException: com.iConomy.iConomy
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 13 more
    I'm using Craftbukkit version git-Bukkit-0.0.0-706-gf53e007-b740jnks (MC: 1.5_02).

    Any idea?
     
  26. Offline

    Fritz7000

    Now, this is my config file.
    I already did it so far, that the jobs are shown in the game, but the jobs i added are not on the list.
    Know why?



    Code:
    # storage method, can be MySQL, sqlite, flatfile
    storage-method: flatfile
    
    # Requires Mysql.
    mysql-username: root
    mysql-password:
    mysql-database: minecraft
    mysql-url: jdbc:mysql://localhost:3306/
    sqlite-url: jdbc:sqlite:test.db
    
    # base experience needed to level up from level 1 to 2
    # experience to level up is base-exp*(1+levelingProgressionRate)^level
    base-exp: 100
    
    # mutiplier for xp. xp-multiplyer*jobPay = experience
    xp-multiplyer: 1.0
    
    # choose the prefix in chat- full = job and skill level, skill = skill level only,
    # job = job level only, none = no prefix
    chat-display: full
    
    # choose to broadcast when the user goes up a skill rank to everyone
    broadcast-skill-up: true
    
    # How often in minutes you want it to save, 0 disables periodic saving and
    # the system will only save on logout
    save-period: 10
    
    # money you get paid for any block placed or destroyed not in the list for your job
    flat-rate-payout: 0.0
    
    # Create Jobs
    # All jobs must follow this framework, <...> means optional
    #
    # Jobs:
    #     [NAME]
    #         ChatColour: [COLOUR]
    #         levelingProgressionRate: [double]
    #         incomeProgressionRate: [double]
    #         Break:
    #             <object_name: [price]>
    #             ...
    #             <object_name: [price]>
    #         Place:
    #             <object_name: [price]>
    #             ...
    #             <object_name: [price]>
    #         Kill:
    #             <creature_name: [price]>
    #             ...
    #             <creature_name: [price]>
    #
    # * In the break section they users will be given or subtracted money on breaking the object.
    # * In the place section they users will be given or subtracted money on placing the object.
    # * In the kill section they users will be given or subtracted money on killing a creature.
    # * levelingProgressionRate is the rate at which the experience required to get to the next
    # level increases between levels.
    # * incomeProgressionRate is the rate at which the money gained per item.
    # * ChatColour is the colour of the title.
    #
    # NOTE: the object name must be exactly what the material is in the code. e.g:
    # cobblestone      -> COBBLESTONE
    # diamond ore      -> DIAMOND_ORE
    # tree trunks(any) -> LOG
    # wooden boards    -> WOOD
    #
    Jobs:
        Woodcutter:
            ChatColour: GREEN
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                LOG: 5.0
            Place:
                SAPLING: 1.0
                WOOD: 2.0
        Miner:
            ChatColour: DARK_GRAY
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                STONE: 2.0
                COAL_ORE: 3.0
                REDSTONE_ORE: 3.0
                IRON_ORE: 4.0
                GOLD_ORE: 5.0
                LAPIS_ORE: 5.0
                DIAMOND_ORE: 6.0
                OBSIDIAN: 7.5
            Place:
                RAILS: 2.0
                IRON_ORE: -5.0
                GOLD_ORE: -6.0
        Builder:
            ChatColour: WHITE
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Place:
                COBBLESTONE: 2.0
                STONE: 3.0
                GLASS: 5.0
                BRICK: 7.0
        Digger:
            ChatColour: YELLOW
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                DIRT: 2.0
                GRASS: 2.0
                GRAVEL: 2.0
                SAND: 2.0
        Farmer:
            Chatcolour: GREEN
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                CROPS: 10.0
                SUGAR_CANE_BLOCK: 10.0
                SOIL: 2.0
            Place:
                SUGAR_CANE_BLOCK: -10.0
        Assasin:
            Chatcolour: BLACK
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Kill:
                Player: 100.0
        Hunter:
            Chatcolour: BROWN
            levelingProgressionRate: 0.15
            incomeProgressionrate: 0.05
            Kill:
                Pig: 5.0
                Cow: 5.0
                Chicken: 3.0
                Sheep: 3.0
        Knight:
            Chatcolour: YELLOW
            levelingProgressionRate: 0.15
            incomeProgressionrate: 0.05
            Kill:
                Slime: 10.0
                Zombie: 5.0
                Skeleton: 7.0
                Spider: 6.0
                Ghast: 50.0
                PigZombie: 10.0
                Creeper: 7.0
        HARZ4:
            Chatcolour: GRAY
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                BED_BLOCK: -10.0
            Place:
                BED_BLOCK: 10.0
        Gardener:
            Chatcolour: GREEN
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                RED_ROSE: -2.0
                YELLOW_FLOWER: -2.0
                SAPLING: -2.0
            Place:
                SAPLING: 2.0
                RED_ROSE: 3.0
                YELLOW_FLOWER: 3.0
    # Create titles
    # to create a title, they must follow this patter.
    # Titles:
    #     [Title Name]:
    #         ChatColour: [ChatColor]
    #         levelReq : [Integer]
    #
    # NOTE: levelReq must be the lowest level you can be to gain this title. It is recommended
    # but not neccessary to have a title at 0.
    Titles:
        0-30:
            ChatColour: WHITE
            levelReq: 0
        30-60:
            ChatColour: GRAY
            levelReq: 30
        60-90:
            ChatColour: GOLD
            levelReq: 60
        Master:
            ChatColour: BLACK
            levelReq: 90
    Would be happy if you could help me.
    mfg jonas
     
  27. Offline

    IT_Hamsteri

    @Fritz7000:
    1. ChatColour you type with little letter 'c'.
    2. Color BROWN: There is no such color. Jobs start with error.
     
  28. Offline

    Galaxy

    @flametornado

    Some one please look at my config and tell me what is wrong I connot get money from the jobs but they are listed so I am like WTF?

    ALSO I have mcmmo so if it interferes with that please let me know.


    Code:
    # storage method, can be MySQL, sqlite, flatfile
    storage-method: flatfile
    
    # Requires Mysql.
    mysql-username: root
    mysql-password:
    mysql-database: minecraft
    mysql-url: jdbc:mysql://localhost:3306/
    sqlite-url: jdbc:sqlite:test.db
    
    # base experience needed to level up from level 1 to 2
    # experience to level up is base-exp*(1+levelingProgressionRate)^level
    base-exp: 300
    
    # mutiplier for xp. xp-multiplyer*jobPay = experience
    xp-multiplyer: 1.0
    
    # choose the prefix in chat- full = job and skill level, skill = skill level only,
    # job = job level only, none = no prefix
    chat-display: none
    
    # choose to broadcast when the user goes up a skill rank to everyone
    broadcast-skill-up: false
    
    # How often in minutes you want it to save, 0 disables periodic saving and
    # the system will only save on logout
    save-period: 10
    
    # money you get paid for any block placed or destroyed not in the list for your job
    flat-rate-payout: 0.0
    
    # Create Jobs
    # All jobs must follow this framework, <...> means optional
    #
    # Jobs:
    #     [NAME]
    #         ChatColour: [COLOUR]
    #         levelingProgressionRate: [double]
    #         incomeProgressionRate: [double]
    #         Break:
    #             <object_name: [price]>
    #             ...
    #             <object_name: [price]>
    #         Place:
    #             <object_name: [price]>
    #             ...
    #             <object_name: [price]>
    #         Kill:
    #             <creature_name: [price]>
    #             ...
    #             <creature_name: [price]>
    #
    # * In the break section they users will be given or subtracted money on breaking the object.
    # * In the place section they users will be given or subtracted money on placing the object.
    # * In the kill section they users will be given or subtracted money on killing a creature.
    # * levelingProgressionRate is the rate at which the experience required to get to the next
    # level increases between levels.
    # * incomeProgressionRate is the rate at which the money gained per item.
    # * ChatColour is the colour of the title.
    #
    # NOTE: the object name must be exactly what the material is in the code. e.g:
    # cobblestone      -> COBBLESTONE
    # diamond ore      -> DIAMOND_ORE
    # tree trunks(any) -> LOG
    # wooden boards    -> WOOD
    #
    Jobs:
        Woodcutter:
            ChatColour: WHITE
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                LOG: 1.0
            Place:
                SAPLING: 0.5
                WOOD: 2.0
        Miner:
            ChatColour: WHITE
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                STONE: 0.5
                COAL_ORE: 1.0
                REDSTONE_ORE: 3.0
                IRON_ORE: 2.0
                GOLD_ORE: 5.0
                LAPIS_ORE: 5.0
                DIAMOND_ORE: 6.0
                OBSIDIAN: 15.5
            Place:
                RAILS: 2.0
                IRON_ORE: -5.0
                GOLD_ORE: -6.0
        Architect:
            ChatColour: WHITE
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Place:
                PLANK: 0.05
                COBBLESTONE: 0.5
                STONE: 2.0
                GLASS: 2.0
                BRICK: 2.0
                GLOWSTONE: 3.0
                GOLD_BLOCK: 8.0
                DIAMOND_BLOCK: 15.0
            Break:
                GOLD_BLOCK: -8.0
                DIAMOND_BLOCK: -15.0
        Excavator:
            ChatColour: WHITE
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                DIRT: 0.5
                GRASS: 0.5
                GRAVEL: 0.5
                SAND: 0.5
        MonsterHunter:
            ChatColour: WHITE
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Kill:
                Skeleton: 5.0
                Zombie: 3.0
                Creeper: 8.0
                Spider: 5.0
                Slime: 20.5
            Place:
                MOSSY_COBBLESTONE: -10.0
            Break:
                MOSSY_COBBLESTONE: 10.0
                MOB_SPAWNER: 20.0
        Farmer:
            ChatColour: WHITE
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Kill:
                Pig: 2.0
                Chicken: 1.0
                Cow: 2.0
            Break:
                SOIL: -1.5
                SUGAR_CANE_BLOCK: 1.0
                CACTUS: 3.0
                CROPS: 4.0
            Place:
                CROPS: 5.0
                SOIL: 1.0
                CACTUS: 3.0
                SUGAR_CANE_BLOCK: 2.0
        PvPMonster:
            ChatColour: WHITE
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Kill:
                Player: 8.0
    # Create titles
    # to create a title, they must follow this patter.
    # Titles:
    #     [Title Name]:
    #         ChatColour: [ChatColor]
    #         levelReq : [Integer]
    #
    # NOTE: levelReq must be the lowest level you can be to gain this title. It is recommended
    # but not neccessary to have a title at 0.
    Titles:
        Apprentice:
            ChatColour: WHITE
            levelReq: 0
        Novice:
            ChatColour: WHITE
            levelReq: 108
        Journeyman:
            ChatColour: WHITE
            levelReq: 208
        Master:
            ChatColour: GOLD
            levelReq: 308
     
  29. Offline

    flametornado

    probs. add it in the feature request section on sourceforge.

    you might have the wrong version of jobs and iconomy combination. 1.3.3b is for iconomy 5 only and 1.3.2b is for pre iconomy 5 only.

    i can't find an error in your configuration. there is no conflict with mcmmo. I use this plugin beside mcmmo and have absolutely no problem.
     
  30. Offline

    Alesana

    Yeah, this is what I thought. I'm going to fix this right now! Thanks! :D
     
  31. Offline

    Theotherguyyyyy

    Whenever I try to use a /jobs join /jobs stats /jobs info it only shows the help message but /jobs browse works fine.

    Maybe something is wrong with my config

    Code:
    # storage method, can be MySQL, sqlite, flatfile
    storage-method: flatfile
    
    # Requires Mysql.
    mysql-username: root
    mysql-password:
    mysql-database: minecraft
    mysql-url: jdbc:mysql://localhost:3306/
    sqlite-url: jdbc:sqlite:test.db
    
    # base experience needed to level up from level 1 to 2
    # experience to level up is base-exp*(1+levelingProgressionRate)^level
    base-exp: 100
    
    # mutiplier for xp. xp-multiplyer*jobPay = experience
    xp-multiplyer: 1.0
    
    # choose the prefix in chat- full = job and skill level, skill = skill level only,
    # job = job level only, none = no prefix
    chat-display: full
    
    # choose to broadcast when the user goes up a skill rank to everyone
    broadcast-skill-up: true
    
    # How often in minutes you want it to save, 0 disables periodic saving and
    # the system will only save on logout
    save-period: 5
    
    # money you get paid for any block placed or destroyed not in the list for your job
    flat-rate-payout: 0.0
    
    # Create Jobs
    # All jobs must follow this framework, <...> means optional
    #
    # Jobs:
    #     [NAME]
    #         ChatColour: [COLOUR]
    #         levelingProgressionRate: [double]
    #         incomeProgressionRate: [double]
    #         Break:
    #             <object_name: [price]>
    #             ...
    #             <object_name: [price]>
    #         Place:
    #             <object_name: [price]>
    #             ...
    #             <object_name: [price]>
    #         Kill:
    #             <creature_name: [price]>
    #             ...
    #             <creature_name: [price]>
    #
    # * In the break section they users will be given or subtracted money on breaking the object.
    # * In the place section they users will be given or subtracted money on placing the object.
    # * In the kill section they users will be given or subtracted money on killing a creature.
    # * levelingProgressionRate is the rate at which the experience required to get to the next
    # level increases between levels.
    # * incomeProgressionRate is the rate at which the money gained per item.
    # * ChatColour is the colour of the title.
    #
    # NOTE: the object name must be exactly what the material is in the code. e.g:
    # cobblestone      -> COBBLESTONE
    # diamond ore      -> DIAMOND_ORE
    # tree trunks(any) -> LOG
    # wooden boards    -> WOOD
    #
    Jobs:
        Woodcutter:
            ChatColour: GREEN
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                LOG: 4.5
            Place:
                SAPLING: 1.0
        Miner:
            ChatColour: DARK_GRAY
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                STONE: 1.0
                COAL_ORE: 4.0
                REDSTONE_ORE: 7.0
                IRON_ORE: 6.0
                GOLD_ORE: 8.0
                LAPIS_ORE: 10.0
                DIAMOND_ORE: 14.0
                OBSIDIAN: 10.0
            Place:
                RAILS: 0.5
                IRON_ORE: -7.0
                GOLD_ORE: -9.0
        Builder:
            ChatColour: WHITE
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Place:
                COBBLESTONE: 1.0
                STONE: 2.0
                GLASS: 5.0
                BRICK: 7.0
                LOG: 1.0
                WOOD: 0.5
        Digger:
            ChatColour: YELLOW
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                DIRT: 1.0
                GRASS: 1.0
                GRAVEL: 2.0
                SAND: 2.0
        Hunter:
            ChatColour: RED
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Kill:
                Chicken: 0.5
                Cow: 1.0
                Pig: 1.5
                Wolf: -2.0
                Creeper: 4.0
                Skeleton: 3.0
                Spider: 2.5
                Zombie: 2.0
                PigZombie: 5.0
                Squid: 1.0
                Ghast: 50.0
                Slime: 1.5
    
    # Create titles
    # to create a title, they must follow this patter.
    # Titles:
    #     [Title Name]:
    #         ChatColour: [ChatColor]
    #         levelReq : [Integer]
    #
    # NOTE: levelReq must be the lowest level you can be to gain this title. It is recommended
    # but not neccessary to have a title at 0.
    Titles:
        Apprentice:
            ChatColour: WHITE
            levelReq: 0
        Novice:
            ChatColour: GRAY
            levelReq: 30
        Journeyman:
            ChatColour: GOLD
            levelReq: 60
        Master:
            ChatColour: BLACK
            levelReq: 90
     
Thread Status:
Not open for further replies.

Share This Page