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

    which version are you using?
     
  3. Offline

    DaddyCool64

    Ah, ok, thanks
     
  4. Offline

    jasonthaasian

    I am using 1.3.3b
     
  5. Offline

    flametornado

    admin commands are only in 2.0.
    Do you have the permissions nodes set?
    jobs.job.<jobname> (e.g. jobs.job.Woodcutter) - i think case is sensitive, not sure
    or jobs.job.*
     
  6. Offline

    jasonthaasian

    Where do I set them? because I think thats the part where I am having difficulty with.
     
  7. Offline

    flametornado

    do you have the permissions plugin?
     
  8. Offline

    jasonthaasian

    yeah I do. So I just put them under the "Essentials" nodes?
     
  9. Offline

    flametornado

    put them in the permissions section of the default (at least that's what i do)

    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'jobs.job.*'
    
     
  10. Offline

    jasonthaasian

    It Works now. Thanks a bunch!
     
  11. Offline

    m5k

  12. Offline

    flametornado

  13. Offline

    m5k

    In this mode you wouldn't need multiple jobs. I'm planning of making the server heavily based on trade and money, so everyone would work together in the effort to make a safe town against the thieves clan, and limiting abilities to certain classes works wonders.
     
  14. Offline

    flametornado

    I'll prob make another plugin that does that once this one is done.
     
  15. Offline

    m5k

    Great, thanks. I'll keep you posted if someone else takes up the project.
     
  16. Offline

    Cydox Master

    Ok, IConomy was wrong. I had Version 4.0

    But Jobs WIP 2.o doesnt work. The command /jobs dont do anything. I had added the rights.
     
  17. Offline

    flametornado

    /jobs doesn't do anything in general yet. I havn't gotten around to it yet. but the other commands should work.
     
  18. Offline

    Cydox Master

    Ok, one thing: I dont get money by doing jobs -.-

    AND I cant join a job. How is the command to join a job by Version 2.0 ?

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

    JanTTuX

    can someone set the jobs config already?

    also i got newest b version and i cant leave from the job
    also u can have same job manytimes so this sucks.
     
  20. Offline

    BloodyDie

    Update To 779
     
  21. Offline

    flametornado

    /jobs join <jobname> It's still case sensitive though.

    2.0 is the only version that has leave.
    Also leaving a job resets your experience to 0

    with 1.6 just around the corner and the bukkit update that will correspond with it coming soon after, I would rather wait.
     
  22. Offline

    MoMo_O

    Hi,
    My question is how can i make own jobs in this plugin ? have u a video or description ?

    Sorry for my bad english iam german
     
  23. Offline

    flametornado

    with per-1.3 there are hints in the configuration file as comments.

    Otherwise, just follow the structure of all existing jobs.
     
  24. Offline

    MoMo_O

    there is not craft or anything else
     
  25. Offline

    flametornado

    haven't gotten around to doing crafting yet. Currently it's only placing, breaking and killing

    Updated wip version out.

    Added more command text. (most of it is customizable from the messageConfig.yml)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  26. Is it Possible to Issue admin Commands via Console? We like a script on our HomePage wich changes the Jobs from outside the game?
     
  27. Offline

    flametornado

    not yet. But i plan to do that.
     
  28. Offline

    JanTTuX

    but i dont know how to set the max level of the jobs on 2.0.0!!! please give me already setted config files to it.
     
  29. Offline

    ledhead900

    @Everyone
    jobs on 2.0.0!!!

    Conficts with PwnCraft Class Plugin

    Tested it with both and PwnCraft spat the dummy with constant player move event exceptions.
    I noted the issue on his thread as well. I hope it can be resolved I really want to run both.
     
  30. Offline

    Ethan

    Jobs doesn't work, it says there's something wrong with the config. Here's the console error's.
    Code:
    [Lnet.minecraft.server.Statistic;@131f71a
    146 recipes
    [Lnet.minecraft.server.Statistic;@131f71a
    16 achievements
    09:53:50 [INFO] Starting minecraft server version Beta 1.5_02
    09:53:50 [WARNING] **** NOT ENOUGH RAM!
    09:53:50 [WARNING] To start the server with more ram, launch it as "java -Xmx102
    4M -Xms1024M -jar minecraft_server.jar"
    09:53:50 [INFO] Loading properties
    09:53:50 [INFO] Starting Minecraft server on *:25565
    09:53:50 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-729-
    g5ee3f0f-b766jnks (MC: 1.5_02)
    09:53:50 [INFO] Preparing level "Eco"
    09:53:50 [INFO] Preparing start region
    09:53:51 [INFO] Preparing spawn area: 97%
    09:53:52 [INFO] [Permissions] (Phoenix) was Initialized.
    09:53:52 [INFO] Loaded Essentials build 2.2.17 by Zenexer, ementalo, Aelux, Bret
    tflan, KimKandor, snowleo, ceulemans and Xeology
    09:53:52 [INFO] [iConomy] Logging is currently disabled.
    09:53:52 [INFO] [iConomy] v5.01 (Eruanna) loaded.
    09:53:52 [INFO] [iConomy] Developed by: [Nijikokun]
    09:53:52 [INFO] [Essentials] Payment method found (iConomy version: 5)
    09:53:52 [SEVERE] java.lang.NullPointerException
    09:53:52 [SEVERE]       at me.alex.jobs.Jobs.onEnable(Jobs.java:195)
    09:53:52 [SEVERE]       at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlug
    in.java:127)
    09:53:52 [SEVERE]       at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(
    JavaPluginLoader.java:676)
    09:53:52 [SEVERE]       at org.bukkit.plugin.SimplePluginManager.enablePlugin(Si
    mplePluginManager.java:249)
    09:53:52 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftSe
    rver.java:131)
    09:53:52 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftS
    erver.java:109)
    09:53:52 [SEVERE]       at net.minecraft.server.MinecraftServer.e(MinecraftServe
    r.java:218)
    09:53:52 [SEVERE]       at net.minecraft.server.MinecraftServer.a(MinecraftServe
    r.java:205)
    09:53:52 [SEVERE]       at net.minecraft.server.MinecraftServer.init(MinecraftSe
    rver.java:145)
    09:53:52 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:260)
    09:53:52 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:394)
    09:53:52 [INFO] Jobs 1.3.3b not started, there's an error with the configuration
    
    09:53:52 [INFO] [Permissions] version [2.7.3] (Phoenix)  loaded
    09:53:52 [INFO] [iConomy] hooked into Permissions.
    09:53:52 [INFO] Found permissions. Using them for SpyerAdmin.
    09:53:53 [SEVERE] SpyerAdmin script update failed: http://dl.dropbox.com/u/16258
    042/SpyerAdminRepos/Essentials/http://dl.dropbox.com/u/16258042/SpyerAdminRepos/
    Vanilla/script.js
    09:53:53 [INFO] SpyerAdmin module version 1.0, a spying utility for administrato
    rs and moderators, is active. Part of the Spyer package by [nickguletskii200]
    09:53:53 [INFO] Found permissions. Using them for SpyerAdmin.
    09:53:53 [INFO] SpyerFun module version 1.0, a spying utility for normal players
    , is active. Part of the Spyer package by [nickguletskii200]
    09:53:53 [INFO] WorldEdit 4.4 enabled.
    09:53:53 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin
     for permissions.
    09:53:53 [INFO] WorldGuard: Permissions plugin detected! Using Permissions plugi
    n for permissions.
    09:53:53 [INFO] WorldGuard: (Eco) Single session is enforced.
    09:53:53 [INFO] WorldGuard: (Eco) TNT ignition is PERMITTED.
    09:53:53 [INFO] WorldGuard: (Eco) Lighters are PERMITTED.
    09:53:53 [INFO] WorldGuard: (Eco) Lava fire is blocked.
    09:53:53 [INFO] WorldGuard: (Eco) Fire spread is UNRESTRICTED.
    09:53:53 [INFO] WorldGuard: Loaded configuration for world 'Eco"
    09:53:53 [INFO] WorldGuard 5.0-alpha10 enabled.
    09:53:53 [INFO] Done (0.251s)! For help, type "help" or "?"
    09:53:54 [INFO] RusstySspoon [/66.31.204.189:49267] logged in with entity id 87
    09:53:54 [INFO] First person. Skipping.
    09:53:54 [INFO] First person. Skipping.
    09:53:54 [INFO] DrownedDinosaur [/12.16.102.120:51021] logged in with entity id
    246
    09:53:54 [INFO] First person. Skipping.
    09:53:54 [INFO] First person. Skipping.
    09:54:06 [INFO] º9[PLAYER_COMMAND] DrownedDinosaur: /tp russ
    09:54:11 [INFO] º9[PLAYER_COMMAND] RusstySspoon: /god
    09:54:57 [INFO] RusstySspoon issued server command:
    09:55:26 [INFO] º9[PLAYER_COMMAND] RusstySspoon: /i bow
    09:55:34 [INFO] º9[PLAYER_COMMAND] RusstySspoon: /i arrow 999
    09:55:36 [INFO] DrownedDinosaur issued server command: job join Priest
    >
    And here's the Jobs plugin
    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: 2.5
            Place:
                SAPLING: 0.5
        Miner:
            ChatColour: DARK_GRAY
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                STONE: 1.5
                COAL_ORE: 2.0
                REDSTONE_ORE: 4.5
                IRON_ORE: 3.0
                GOLD_ORE: 4.0
                LAPIS_ORE: 3.5
                DIAMOND_ORE: 6.0
                OBSIDIAN: 7.0
            Place:
                RAILS: 2.0
                IRON_ORE: -5.0
                GOLD_ORE: -6.0
        Builder:
            ChatColour: BLUE
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Place:
                COBBLESTONE: 2.0
                STONE: 3.0
                GLASS: 4.0
                BRICK: 5.0
                WOOD: 2.5
        Digger:
            ChatColour: BLACK
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                DIRT: 1.0
                GRASS: 1.0
                GRAVEL: 1.0
                SAND: 1.0
        Priest:
            ChatColour: RED
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Kill:
                Skeleton: 5.0
                Zombie: 5.0
                Spider: 5.5
                Creeper: 7.0
                Slime: 4.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.
     
  31. Offline

    alex12dude

    When I type /jobs browse
    it says:

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


    I dont see the jobs i can get

    I need help
     

    Attached Files:

Thread Status:
Not open for further replies.

Share This Page