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

    RustyDagger

    I cant work out why my killing jobs do not work :/ I have the 740 Cb latest jobs and my config is fine. so it must be a plugin clash of sorts. heres my list.

    Code:
    No Cheat:
    
    http://forums.bukkit.org/threads/sec-nocheat-v0-9-5-detect-and-fight-the-exploitation-of-various-flaws-bugs-in-mc-740.4523/
    
    Warpz0r:
    
    http://forums.bukkit.org/threads/tp-warpz0r-v1-2-3-multiworld-warp-and-home-plugin-iconomy-4-x-support-b740.3921/
    
    AutoMessage:
    
    http://forums.bukkit.org/threads/info-automessage-v1-5a-broadcast-automatic-messages-617rb.3022/page-7
    
    BorderGuard Turbo:
    
    http://forums.bukkit.org/threads/mech-borderguard-v3-10-turbo-1-most-efficient-map-limiter-740.3078/
    
    Bukkit Piston:
    
    http://forums.bukkit.org/threads/mech-bukkitpiston-v0-5-pistons-plugin-for-smp-740.12665/
    
    Command Book:
    
    http://forums.bukkit.org/threads/gen-admn-commandbook-1-4-2-general-commands-new-weather-shock-thor-more-709.6525/
    
    Growbie:
    
    http://forums.bukkit.org/threads/mech-growbie-2-4-561-734.7314/
    
    Ichat:
    
    http://forums.bukkit.org/threads/chat-ichat-2-2-3-custom-chat-formatting-b740.5857/
    
    Iconomy:
    
    http://forums.bukkit.org/threads/econ-iconomy-4-6-5-kenzi-602-740.40/
    
    IconomyChestShop:
    
    http://forums.bukkit.org/threads/econ-iconomychestshop-2-54-chest-shop-for-iconomy-and-boseconomy-740.4150/
    
    KiwiAdmin:
    
    http://forums.bukkit.org/threads/admn-kiwiadmin-v2-0-kick-temp-ban-unban-mysql-and-flatfile-670-733.1681/
    
    LogBlock:
    
    http://forums.bukkit.org/threads/info-admin-logblock-v0-14-now-api-find-those-damn-griefers-733-740.4543/
    
    OddItem:
    
    http://forums.bukkit.org/threads/dev-odditem-0-6-5-unified-custom-items-list-and-parser-553-733.4592/
    
    LWC:
    
    http://forums.bukkit.org/threads/sec-mech-lwc-v2-31-german-lightweight-inventory-protection-management-740.967/
    
    Permissions:
    
    http://forums.bukkit.org/threads/admn-dev-permissions-v2-7-2-phoenix-now-with-real-multiworld-permissions-740.5974/
    
    World Edit:
    
    http://forums.bukkit.org/threads/edit-sec-worldedit-4-4-world-editing-degriefing-build-from-far-away-709.62/
    
    World Guard:
    
    http://forums.bukkit.org/threads/sec-worldguard-5-0-alpha10-multi-world-fire-polygonal-cuboid-region-protection-with-blacklist.790/
    All of them are upto date and theres some with some funky jobs.

    WorldGuard /worldedit team up and cover my whole map in a region called world theres a smaller region inside that for the noobs to build and stuff So all my testing has been done inside that region And theres no way i can leave the region to test it out side it cause it well covers the whole map and is kinda important to my server.
     
  3. Offline

    Andrew Anderson

    mine does not seem to want to pay us for anything, we can join jobs and all the menus work, but it is not giving us any money
     
  4. Offline

    flametornado

    Are you using iConomy or BOSEconomy?
     
  5. Offline

    Andrew Anderson

    iconomy
     
  6. Offline

    flametornado

    Which version of both Jobs and iConomy?
     
  7. Offline

    Andrew Anderson

    iconomy 4.6.5
    jobs 1.3.3
     
  8. Offline

    flametornado

    1.3.3 is iConomy 5 only.
     
  9. Offline

    Andrew Anderson

    alright, sorry for bugging you, i'm still learning things, this clanforge think is kinda confusing and all. thanks for your time​
     
  10. Offline

    Nathan C

    Code:
    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(URLClassLoader.java:202)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            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(ClassLoader.java:307)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
            ... 13 more
    
    
     
  11. Offline

    flametornado

    update to 1.3.3 if you're using iConomy 5, else use 1.3.2
     
  12. Offline

    RustyDagger

    Post was a mess --- Snip --- Refresh :p

    Pointed out that there should be iconomy 5 warning next to download (was added Fast Nice dude.).

    Still having problems with killing upgrading to iconomy 5 to see if i still have problems.

    also looking for the names to use for the new rail types :/
     
  13. Offline

    vip

    Hi, i noticed a new problem. Animal and Creeper don't loose items any more if they are killed - only sheeps still loose wole.
    If i take out the jobs-mod it works again, if i install it then i have the same problem as before. Could you please have a look on that?
     
  14. Offline

    xXNeMeSiSXx

    ok, it work now but when i add the 2 jobs:
    Monsterkiller and Tierschlachter it doesnt work...
    WITHOUT IT WORK
     

    Attached Files:

  15. Offline

    Scipione

    try to edit your config files with other editors, seems to be a problem with spaces

    (Sry for German Version)
    Editere die Konfig mal mit Notepad++ (Googlen, ist kostenfrei), wenn der Name in Rot erscheint, entferne alle Leerzeichen davor und rück ihn manuell wieder ein.
     
  16. Offline

    xXNeMeSiSXx

    Hab mal mit notepad++, kommt immer noch der fehler. Hab auch mal die Namen gekürzt, immer noch nix
     

    Attached Files:

  17. Offline

    flametornado

    Your creature names are wrong. They should not be all capitals. Look at OP for guidelines on how mob names should be.

    That was a problem with 1.3.0 and 1.3.1. Should be fixed in 1.3.2 (or 1.3.3 if iConomy 5).

    DETECTOR_RAIL and POWERED_RAIL
     
  18. Offline

    Matterz167

    I have the following code:

    Code:
        Hunter:
            ChatColour: DARK_RED
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Kill:
                Chicken: 0.5
                Cow: 0.5
                Pig: 0.5
                Sheep: 0.5
                Wolf: 0.5
                Squid: 0.5
    I don't get any errors in the server log. However no one is getting credit for the kills.
     
  19. Offline

    flametornado

    What version of iConomy and Jobs are you using?
     
  20. Offline

    Matterz167

    iConomy version: 4.65
    Jobs version: 1.3.2
     
  21. Offline

    flametornado

    Strange, that combination should work. Do you get any server console errors?
     
  22. Offline

    Matterz167

    No errors.

    Looks like all the jobs that use break/place are working. But the 2 jobs I have set to kill aren't awarding any credit.
     
  23. Offline

    flametornado

    can you upload your configuration file?
     
  24. Offline

    Matterz167

    Sure.

    Converted it to .txt and attached below.

    Thanks for the help.
     

    Attached Files:

  25. Offline

    flametornado

    oddly enough, it works for me. Maybe there's a plugin conflict somewhere :(

    Also, I would like to say that the leveling is very steep.
     
  26. Offline

    Matterz167

    Bummer. I wouldn't know where to start to find the conflict :(
     
  27. Offline

    flametornado

    It seems strange. Another user got this too but i can't see the problem or reproduce it.
    Also, this plugin only monitors when you do damage and checks if you delt lethal damage, I really can't see it conflicting with another plugin (unless someone has been doing weird things in their plugin).
     
  28. Offline

    Matterz167

    I have the following plugins:

    Code:
    AntiXRay
    BorderGuard
    Citizens
    CommandIConomy
    dynmap
    HeroBounty
    HeroChat
    HeroicDeath
    iCoLand-2.40
    iConomy
    jobs
    LightVote
    LoginMessage
    LWC
    MobileAdmin
    NSComand
    Permissions
    PermissionsPlus
    RealShop
    SignEdit
    SpawnControl
    vanish
    WeatherControl
    WorldEdit
    WorldGuard
    Any of those jump out at you as a potential conflict? I've tried disabling a few, but no solution yet.

    Actually, it seems my 'Guard' job is working. But 'Hunter' still isn't. Odd because I am 80% sure neither was working earlier.

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

    flametornado

    I tried hunter. killed off some sheep and cows and got money for both.
     
  30. Offline

    Matterz167

    Hmm. I adjusted the Progression numbers and now it seems to be working!

    Code:
      Hunter:
            ChatColour: DARK_RED
            levelingProgressionRate: 0.90
            incomeProgressionRate: 0.5
            Kill:
                Chicken: 1.0
                Cow: 1.0
                Pig: 1.0
                Sheep: 1.0
                Wolf: 1.0
                Squid: 1.0
        Guard:
            ChatColour: RED
            levelingProgressionRate: 0.90
            incomeProgressionRate: 0.5
            Kill:
                Creeper: 1.0
                Giant: 1.0
                Skeleton: 1.0
                Spider: 1.0
                Zombie: 1.0
                PigZombie: 1.0
                Ghast: 1.0
                Slime: 1.0
     
  31. Offline

    flametornado

    Uhh. just putting it out there, but those progression rates are quite insane.
    You will need 190% the xp to from one level to the next
    and get 150% of the money when you level up

    id recommend sticking with the default unless you want to see the amount of money explode. Also with that big of a gap, nobody will hit lvl 30.
     
Thread Status:
Not open for further replies.

Share This Page