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

    m5k

    If you have api for hooking into, I'll ask on the requests forum to make a Job Manager plugin to hook up into your plugin and I'll see if someone wants to take it up. Thanks for the quick reply.
     
  3. Offline

    everhaunted

    what do you mean by that?
     
  4. Offline

    flametornado

    you wrote player instead of Player. It's case sensitive
     
  5. Offline

    everhaunted

    oh thanks but ummm the error is still comming up (i fixed that up)
     
  6. Offline

    flametornado

    same error as before?
     
  7. Offline

    Cookies326

    Is there a way to remove the Jobs? even after I delete the file, the people still have the tag.
     
  8. Offline

    everhaunted

    i'll post it again

    Code:
    19:14:27 [SEVERE] java.lang.ClassNotFoundException: org.bukkit.craftbukkit.entit
    y.CraftCHICKEN
    19:14:27 [SEVERE]       at java.net.URLClassLoader$1.run(Unknown Source)
    19:14:27 [SEVERE]       at java.security.AccessController.doPrivileged(Native Me
    thod)
    19:14:27 [SEVERE]       at java.net.URLClassLoader.findClass(Unknown Source)
    19:14:27 [SEVERE]       at org.bukkit.plugin.java.PluginClassLoader.findClass(Pl
    uginClassLoader.java:36)
    19:14:27 [SEVERE]       at org.bukkit.plugin.java.PluginClassLoader.findClass(Pl
    uginClassLoader.java:24)
    19:14:27 [SEVERE]       at java.lang.ClassLoader.loadClass(Unknown Source)
    19:14:27 [SEVERE]       at java.lang.ClassLoader.loadClass(Unknown Source)
    19:14:27 [SEVERE]       at java.lang.Class.forName0(Native Method)
    19:14:27 [SEVERE]       at java.lang.Class.forName(Unknown Source)
    19:14:27 [SEVERE]       at me.alex.jobs.Jobs.onEnable(Jobs.java:180)
    19:14:27 [SEVERE]       at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlug
    in.java:127)
    19:14:27 [SEVERE]       at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(
    JavaPluginLoader.java:632)
    19:14:27 [SEVERE]       at org.bukkit.plugin.SimplePluginManager.enablePlugin(Si
    mplePluginManager.java:218)
    19:14:27 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftSe
    rver.java:116)
    19:14:27 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftS
    erver.java:94)
    19:14:27 [SEVERE]       at net.minecraft.server.MinecraftServer.e(MinecraftServe
    r.java:217)
    19:14:27 [SEVERE]       at net.minecraft.server.MinecraftServer.a(MinecraftServe
    r.java:204)
    19:14:27 [SEVERE]       at net.minecraft.server.MinecraftServer.init(MinecraftSe
    rver.java:144)
    19:14:27 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:259)
    19:14:27 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:394)
    19:14:27 [INFO] Jobs 1.3.3b not started, there's an error with the configuration
    >
     
  9. Offline

    flametornado

    you have to reset the server or log out.

    Spelt chicken with the wrong case again.
    Please check the original post for the right case.

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

    everhaunted

    so instead of PLAYER just Player or CHICKEN just Chicken ect??
     
  11. Offline

    flametornado

    Chicken Cow Pig Sheep Wolf Creeper Giant Skeleton Spider Zombie PigZombie Squid Ghast Player Slime
     
  12. Offline

    everhaunted

    thanks it works now
    thanks it works now
     
  13. Offline

    Tealk

    Its possible to make an Admin command to kick one out of his job?
    and can you do this in the api?
     
  14. Offline

    Abadon84

    try this build : http://procrafter.de/downloads/jobs.jar
    i have added a fee for changing jobs.
    you have to add
    Code:
    # fee for switching the job
    switch-fee: 500.00
    in the configuration

    • job change title

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

    Missnostalgia

    I just wanted to report there is a issue with the item RED_ROSE, it seems to cause a error when adding it to a list. I test it with my fiend this morning and it seems that it was causing a problem when adding it.
     
  16. Offline

    Cookies326

    Doesn't work.
     
  17. Offline

    Tealk

    can anyone say me whats my misstake?
    http://pastebin.com/NezaNwzE

    Code:
    2011-05-14 14:07:05 [SEVERE] java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Double
    2011-05-14 14:07:05 [SEVERE]     at me.alex.jobs.Jobs.onEnable(Jobs.java:150)
    2011-05-14 14:07:05 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    2011-05-14 14:07:05 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:676)
    2011-05-14 14:07:05 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:249)
    2011-05-14 14:07:05 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:131)
    2011-05-14 14:07:05 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:109)
    2011-05-14 14:07:05 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:218)
    2011-05-14 14:07:05 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:205)
    2011-05-14 14:07:05 [SEVERE]     at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
    2011-05-14 14:07:05 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:260)
    2011-05-14 14:07:05 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  18. Offline

    Shanev

    I want to use Jobs with the commandSigns plugin, to make a place where you can get jobs. I don't want players to being able to use the "/Jobs join" command everywhere, but only at a specific place where they have to use a sign to get a job.

    commandSigns uses a "dummy user" for players without a specific permission (- 'jobs.job.jobname')
    Problem: I only want people to be able to get jobs via signs, but when I the dummy-user he is the one who gets the job and not the player :(

    The problem ist, that I cannot use it without a command that takes the player's name as one of the arguments. It there a way to add a command, like /jobs join [jobname] [Playername] ?
     
  19. Offline

    Hamsta

    Okey i am absolutly confused...i used Tealks configfile and tried browsing the jobs. As a result i got nothing. No jobs where listed. So i tried using the default jobs. With these i could only see the Miner. I thought the other jobs wouldn't be shown because they are not added in premissions. So i tried editing the Minerjob to see what changes caused the bug. After changing it and restarting the server i couldnd't see the minerjob anymore but instead was able to see the woodcutting job. I am sorry but i can't see any logic behind all of this...

    Edit: Okey now i added "Breack" and "Place" to every job and it works...exept for the last job "Jager". I think i just lost 5 years of my life to configure this -.-

    http://pastebin.com/YkaeWRmb
     
  20. Offline

    Abadon84

    yeah sometimes the config is a pain in the ass, but if it works then its fine ;)
     
  21. Offline

    Metzelda

    When is jobs getting updated for 766?
     
  22. Offline

    DjBlueMonkeys

    the plugin it self is amazing. but i found a few bugs well i dont know if it is a bug but i made a new job called Warrior and when i logged in and typed /jobs join Warrior it said there is no such job and when i go /jobs browse it didnt show any jobs weird how do i fix it and add the new job i wanted?
     
  23. Offline

    Kalais

    Any chance for Essentials Economy support?
     
  24. Offline

    getpaperboyd

    Hey im getting this error saying, [iJobs] There was an error linking to iConomy. help? ;]
     
  25. Offline

    flametornado

    done.

    I will look into that for the next build. What kind of problem?

    in your config you didn't put a decimal point where there was supposed to be one.

    admin commands will come in the next build.

    It's Chicken, not Chicke (look at the server console errors for a good clue.) The next build will actually have helpful messages in the server console.

    I'm working on making it more friendly :p.

    That's what happens when you make a mistake and invalidate the config file. Check the server log. It should have an error message.

    I'm looking into that for the next version.

    wrong plugin. http://forums.bukkit.org/threads/econ-ijobs-version-1-2-jobs-for-iconomy-permissions-674.12848/ that's the forum you want.
     
  26. Offline

    Missnostalgia

    It was a internal server error, and that was the only item that didn't work for my server.
     
  27. Offline

    Aleyasu

    Hey, awesome plugin, everything works perfectly, i was just wondering though...
    Is there a way to remove the prefixes that the plugin gives? for example Apprentice Builder?
    Thanks for any info...
     
  28. Offline

    axeblade346

    Look in the Config file

    # choose the prefix in chat- full = job and skill level, skill = skill level only, # job = job level only, none = no prefix chat-display: full

    on other word set your chat-display to none.

    This is a great plugin but is there a way to link it in with LogBlock or something close so that it check if the item was placed by a player and then doesn`t give a payout. I have seen a few players being banned for this loophole.
    Player A - Woodcutter - Chops wood - gets pay
    Player B - other - Gets wood from A and places it. (as player A looses money for placing wood)
    Player A - chops placed wood and gets pay again
    Rinse and Repeat - infinite money and skill gain for player A.
     
  29. Offline

    Aleyasu

  30. Offline

    LIO Lampe

    Hey,
    if i type /jobs browse i get this:

    The following jobs are available:
    For more information on each job type /jobs info [Job]

    i don't edit the config what is wrong?
     
  31. Offline

    Ethan

    The config file that is the default is all in 3 lines and is impossible to navigate. If you copy and paste the config you have posted then it says that the config is wrong and that it hasn't loaded jobs.
     
Thread Status:
Not open for further replies.

Share This Page