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

    adam3692

    Hello im new to bukkit forums and im making a bukkit server for me and my friends but im trying to use jobs. but i keep getting internal server issue or something like that. Could you help me? also how do i make custom jobs?
     
  3. Offline

    flametornado

    what server errors do you get?
     
  4. Offline

    Queepo

    Great plugin. Just a little error in the default config file, not sure if this has been fixed in recent updates but for farmers "Wheat" is not being recognized as wheat isnt really a block its just a seed block with a higher damage value. This means players don't get exp or money for breaking wheat or planting seeds unless the config file is changed.

    Anyways ya thats the only bug I found. Keep the updates coming.
     
  5. Offline

    flametornado

    wheat is an item, crops is the block
     
  6. Offline

    JTrunzo

    Hey, I Continually get this error:
    "22:30:17 [INFO] While loading Jobs (plugins/jobs.jar) found old-data folder: plugins/jobs next to the new one: plugins/Jobs"
    I cannot find more then one file in the location its telling me and I think its causing the following error:
    22:30:18 [INFO] [Jobs] - enable-stats property does not exist. Defaulting to false
    22:30:18 [INFO] [Jobs] - enable-pay-near-spawner property does not exist. Defaulting to false
    22:30:18 [INFO] [Jobs] - max-jobs property not found. Defaulting to unlimited!
    22:30:19 [INFO] [Jobs] - Job Woodcutter is missing the max-level property. defaulting to no limits !
    22:30:19 [INFO] [Jobs] - Job Woodcutter is missing the slots property. defaulting to no limits !
    22:30:19 [INFO] [Jobs] - Job Miner is missing the max-level property. defaulting to no limits !
    22:30:19 [INFO] [Jobs] - Job Miner is missing the slots property. defaulting to no limits !
    22:30:19 [INFO] [Jobs] - Job Builder is missing the max-level property. defaulting to no limits !
    22:30:19 [INFO] [Jobs] - Job Builder is missing the slots property. defaulting to no limits !
    22:30:19 [INFO] [Jobs] - Job Digger is missing the max-level property. defaulting to no limits !
    22:30:19 [INFO] [Jobs] - Job Digger is missing the slots property. defaulting to no limits !
    22:30:19 [INFO] [Jobs] - Job Farmer is missing the max-level property. defaulting to no limits !
    22:30:19 [INFO] [Jobs] - Job Farmer is missing the slots property. defaulting to no limits !
    22:30:19 [INFO] [Jobs] - Job Hunter is missing the max-level property. defaulting to no limits !
    22:30:19 [INFO] [Jobs] - Job Hunter is missing the slots property. defaulting to no limits !

    Each of my jobs follow the correct format:
    Miner:
    fullname: Miner
    shortname: M
    ChatColour: DARK_GRAY
    chat-display: full
    #max-level: 10
    #slots: 10
    But I keep getting the error? Any idea why?
     
  7. Offline

    flametornado

    It's not an error, says INFO not SEVERE, it's just to let you know that classes can have those properties, but they don't in the configuration and they're defaulting to their default values.

    Unless you want to set those specific properties, ignore the messages.
     
  8. Offline

    Alesana

    I created a job Engineer but I can't find the name for the resdtone_repeater, the redstone_torch and the wooden_pressure_plate/iron_pressure_plate. Any idea? Also, it doesn't world with the flowers.

    Nice plugin btw...
     
  9. Offline

    morizuki

    can you also add that, breaking what you place cannot give you experience nor money? so people won't do place and break..
     
  10. Offline

    JTrunzo

    Well I want to be able to set level limits so that the players don't have crazy incomes if they reach a very high level. How would I set the level cap to ten or similiar?
     
  11. Offline

    jlu

    Hey dude, try to use this link to find your correct name for each block type:
    http://javadoc.lukegb.com/BukkitAPI...bukkit.html#ab7fa290bb19b9a830362aa88028ec80a
    I had the same problem and i fixed this with this item-proper-name-list. Try to verify, mb.

    Nice plug-in btw, this is my config.file; Maybe that will be interresting:

     
  12. Offline

    adam3692

    How do i see the errors in game all it says is.

    An internal error occurred while attempting to perform this command.
     
  13. Offline

    fadesocke

    mysql doesn't work for me.


    # storage method, can be MySQL, flatfile
    storage-method: mysql

    # Requires Mysql.
    mysql-username: minecraft
    mysql-password: ************
    mysql-database: minecraft
    mysql-url: jdbc:mysql://localhost:3306/
    #mysql-table-prefix:

    i become this error:
    Code:
    2011-06-17 16:55:32 [SEVERE] Error occurred while enabling Jobs v2.0.0 (Is it up to date?): java.lang.Long cannot be cast to java.lang.String
    java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String
        at me.alex.jobs.config.JobsConfiguration.loadGeneralSettings(JobsConfiguration.java:123)
        at me.alex.jobs.config.JobsConfiguration.<init>(JobsConfiguration.java:74)
        at me.alex.jobs.config.JobsConfiguration.getInstance(JobsConfiguration.java: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:799)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:140)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:118)
        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:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
     
  14. Offline

    Alesana

  15. Offline

    Sh00ck

    Multi World doesnt work ?
    Supported ?

    Please make it for MultiWorld too
     
  16. Offline

    Alesana

    Yeah, we need multi-world because now I can't use this plugin since I have a creative map on my serveur.

    jobs.world.<worldname> does not work.
     
  17. There seems to be a small glitch with the plugin, although it might be due on my part. Every now and then, some players lose their job and experience randomly. Any ideas?
     
  18. Offline

    Salax

    Is there an easy way to convert my 1.x config to the 2.x style? I want to upgrade, but I have a lot of modifications and really don't want to have to manually redo them.
     
  19. 2.0.2 does the following to titles:
    If my name is Alpha52 it shows as
    AMiner lMiner pMiner hMiner aMiner 5Miner 2Miner
    I also testing this with shortjob titles and it does the same:
    AM lM pM hM aM 5M 2M

    Please fix :(
     
  20. Offline

    Taien

    It's a bug in flatfile. MySQL works fine.

    Flame, did you figure out the thing with wolves?

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

    ItsMeYaniv

    how i can do if i Woodcutter for example and i cut log i dont get log?
    i want its dosen't drop the log only get exp and money
     
  22. Offline

    Ross Gosling

    I think this plugin works with 860 cause im using it and its fine
     
  23. Offline

    Noffletoff

    @flametornado

    Hello, I keep getting this error spammed in my console

    Code:
    2011-06-18 16:45:21 [SEVERE] Could not pass event BLOCK_BREAK to Jobs
    java.lang.NullPointerException
        at me.alex.jobs.config.container.PlayerJobInfo.checkLevels(PlayerJobInfo.java:191)
        at me.alex.jobs.config.container.PlayerJobInfo.broke(PlayerJobInfo.java:86)
        at me.alex.jobs.listener.JobsBlockPaymentListener.onBlockBreak(JobsBlockPaymentListener.java:22)
        at org.bukkit.plugin.java.JavaPluginLoader$35.execute(JavaPluginLoader.java:482)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
        at net.minecraft.server.ItemInWorldManager.c(ItemInWorldManager.java:159)
        at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:121)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:456)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        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:399)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    Running CB 860 and Jobs 2.02, I also got this while running 2.0, was hoping 2.02 would fix it.
     
  24. Offline

    iama

    some problem with jobs v2.0.2 WIP + mysql at bukkit 860 . um using default parameters from config file (exept mysql type)

    Code:
    2011-06-18 23:30:55 [SEVERE] Could not pass event ENTITY_DAMAGE to Jobs
    java.lang.NullPointerException
            at me.alex.jobs.listener.JobsKillPaymentListener.onEntityDamage(JobsKillPaymentListener.java:117)
            at org.bukkit.plugin.java.JavaPluginLoader$51.execute(JavaPluginLoader.java:598)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
            at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:419)
            at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:184)
            at net.minecraft.server.EntityHuman.d(EntityHuman.java:542)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:861)
            at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            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:399)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    

    how i can fix that ? thanks.
     
  25. Offline

    y1985

    If I have other mob from other mod, how can I add the new mob to jobconfig?
     
  26. Offline

    flametornado

    looking into methods of doing that.

    look in the server.log file.

    is your password all numbers?

    i thought it would work, looking into that now.

    it's a bug i can't reproduce :(, i'm trying to fix it :(.

    Yes :D, well kinda, it still does things weirdly, but it works :p. And by does things weirdly i mean that tamed wolves don't seem to throw EntityDamagedByEntity events but killing with wolves does give you money now :D.

    can't do that, you'd have to combine this with another plugin.

    found it, fixed it :)

    should be fixed in the latest 2.0.2 WIP

    It doesn't handle custom mobs yet. It might in the future. What mob?

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

    Noffletoff

    Thank you very much! clean logs =)
     
  28. Can you at least recognize the problem with titles that i posted on the last page? Its ruining my server...
     
  29. Offline

    flametornado

    It's not happening to me at all.
     
  30. It was fine prior to 2.0.2
    Could it be a conflict with HeroChat?
     
Thread Status:
Not open for further replies.

Share This Page