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

    Daninator1

    I have a problem. You can join all of the jobs but i have set the maximum jobs to 1!
    So everybody can join every job!
    Please answer!
     
  3. Offline

    flametornado

    Max jobs works fine for me. I can only join 1 job at a time.
    Did you restart your server after you made the change?
     
  4. Offline

    Daninator1

    of course i did!
    could it help if i use 2.0.2
    currently i use 2.0.1
     
  5. Offline

    Draycos

    Is there a # symbol before that line? like:
    "# maximum number of jobs a player can join
    #max-jobs: 1"?

    If so you are having the same problem I did. Remove the # simbal and it will work...
    I'm new to java but I assume that the # bypasses that line.
     
    Daninator1 likes this.
  6. Offline

    Arimaniac

    If you can find this line --->> [INFO] [Jobs] - max-jobs property not found. Defaulting to unlimited!
    in your console, you didn't remove the # or the property line doesn't exists ...
     
    Daninator1 likes this.
  7. Offline

    Alesana

    The multiworld options does't work for me. My world is called "world" and I added the node "jobs.world.<worldname>" to my permissions configuration (second rank) and my players sti8ll get money from my other world! I need help pelase! :(
     
  8. Offline

    Daninator1

    Thanks, man!
    You solved my problem. Now it works! :D
     
  9. Offline

    Draycos

    Isn't that what I said?
     
  10. Offline

    Pim1234

    Code:
    20:21:02 [SEVERE] Error occurred while enabling Jobs v2.0.1 (Is it up to date?): null
    java.lang.NullPointerException
        at me.alex.jobs.config.JobsConfiguration.loadJobSettings(JobsConfiguration.java:360)
        at me.alex.jobs.config.JobsConfiguration.<init>(JobsConfiguration.java:78)
        at me.alex.jobs.config.JobsConfiguration.getInstance(JobsConfiguration.java:1007)
        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 org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:345)
        at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:247)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:279)
        at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:428)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:413)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
     
  11. Offline

    Arimaniac

    Well, I just wanted to be sure he could find the Default Set line before searching the # ... :s

    Add the Permission line --->> jobs.world.*
    to allow the use of Jobs in every worlds. ;)

    WARNING: Jobs is breaking WorldGuard because it changes the name of the players. If my region owner is set to "Arimaniac", it won't work because my new name is "Beginner Woodcuter Arimaniac" ...

    EDIT: Sorry, this was a mistake ...

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

    phrstbrn

    We were trying to figure out a way to prevent people from making money in certain areas on our server (we have a mob area which breaks trying to balance hunting jobs). I came up with a patch that allows configuring "Restricted Areas" where you don't get any money or experience when performing your job. This was built against 2.0.2 WIP4

    Could you please include this patch?
     
  13. Offline

    flametornado

    I don't see how that would be the case, jobs only changes your display name. Your name stays the same.

    I don't particularly want to do that. What i can do instead is make events fire when someone gets paid or given experience. You can then write a simple plugin that cancels the events if they're within a certain area?

    Is that ok?

    I don't want to do this because the plugin is a little too complex now as it is and i don't want to make it more complex and give it more configuration files. Big plugins are harder for users to use and harder for me to maintain.
     
  14. Offline

    phrstbrn

    Seriously this plugin is pretty damn simple as it is. This feature doesn't introduce any new complications or change existing functionality. The default behavior of this functionality change is the same as if this feature never existed.

    Adding "events firing off" for writing plugins for you plugin though seems like an unnecessary complication.

    Either way, I have no problem forking this project and releasing a competing project if you don't wish to accept user contributions.
     
  15. Offline

    flametornado

    I have many questions about the configurations. Also i read the thing wrong :(. I thought you meant it the other way. To have allowed areas, which would make things quite annoying :(. Sorry. I will probably add this soon.
     
  16. Offline

    poytnt

    I honestly do not know what the issue was, I reloaded the config file with Crops and not Wheat again a moment ago and it works perfect.
     
  17. Offline

    Pim1234

    i get this whenever i (re)start the server, have i done something wrong?
     
  18. Offline

    Tagz

    When we switched the MySQL I get this error:

    11:01:01 [SEVERE] Error occurred while enabling Jobs v2.0.2 WIP 4 (Is it up to d
    ate?): null
    java.lang.NullPointerException
    at me.alex.jobs.config.JobsConfiguration.loadSlots(JobsConfiguration.jav
    a:97)
    at me.alex.jobs.config.JobsConfiguration.<init>(JobsConfiguration.java:8
    8)
    at me.alex.jobs.config.JobsConfiguration.getInstance(JobsConfiguration.j
    ava:1042)
    at me.alex.jobs.Jobs.onEnable(Jobs.java:83)
    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(SimplePluginManage
    r.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)

    When on flatfile it works fine. Other plugins are running through the same DB. Thx
     
  19. Offline

    hofec

    please paste your config file .. in spoiler for example :D
     
  20. Offline

    MeisterHeinz

    Hello,
    I think I found a little bug...

    Everytime I do a server reload, the plugin adds one blank/space between the playername and the jobname in the chat. Expamle:
    Apprentice Miner MeisterHeinz
    Apprentice Miner__MeisterHeinz
    ...
    Apprentice Miner______MeisterHeinz

    Had to replace blanks " " with "_" (underscores) because forum removes more than 1 blank/space!

    Possible to fix this? :)

    Else: Very nice plugin!!
     
  21. Offline

    Pim1234

    Code:
    # General configuration.
    #
    #   The general configuration for the jobs plugin mostly includes how often the plugin
    # saves user data (when the user is in the game), the storage method, whether
    # to broadcast a message to the server when a user goes up a skill level.
    #   It also allows admins to set the maximum number of jobs a player can have at
    # any one time.
    
    # storage method, can be MySQL, flatfile
    storage-method: flatfile
    
    # Requires Mysql.
    mysql-username: root
    mysql-password:
    mysql-database: minecraft
    mysql-url: jdbc:mysql://localhost:3306/
    #mysql-table-prefix:
    
    # How often in minutes you want it to save, 0 disables periodic saving and
    # the system will only save on logout
    save-period: 10
    
    # Do all players get a message when somone goes up a skill level?
    broadcast-on-skill-up: true
    
    # maximum number of jobs a player can join
    max-jobs: 1
    
    # option to enable the stats and achievements plugin.
    enable-stats: false
    
    # option to allow payment to be made when near a spawner
    enable-pay-near-spawner: false
    Code:
    # Jobs configuration.
    #
    # Stores information about each job.
    #
    # NOTE: When having multiple jobs, both jobs will give the income payout to the player
    # even if they give the pay for one action (make the configurations with this in mind)
    # and each job will get the respective experience.
    #
    # e.g If player has 2 jobs where job1 gives 10 income and experience for killing a player
    # and job2 gives 5 income and experience for killing a player. When the user kills a player
    # they will get 15 income and job1 will gain 10 experience and job2 will gain 5 experience.
    
    Jobs:
        # must be one word
        Woodcutter:
            # full name of the job (displayed when browsing a job, used when joining and leaving)
            # also can be used as a prefix for the user's name if the option is enabled.
            # Shown as a prefix only when the user has 1 job.
            #
            # NOTE: Must be 1 word
            # fullname: Woodcutter
            # Shortened version of the name of the job. Used as a prefix when the user has more
            # than 1 job
            # shortname: W
            # The colour of the name, for a full list of supported colours, go to the message config.
            # ChatColour:
            # Option to let you choose what kind of prefix this job adds to your name.
            # options are: full, title, job, shortfull, shorttitle, shortjob and none
            # chat-display: none
            # [OPTIONAL] - the maximum level of this class
            # max-level: 100
            # [OPTIONAL] - the maximum number of users on the server that can have this job at
            # any one time (includes offline players).
            # slots: 100
            # Equation used for calculating how much experience is needed to go to the next level.
            # Available parameters:
            #   numjobs - the number of jobs the player has
            #   joblevel - the level the player has attained in the job.
            # NOTE: Please take care of the brackets when modifying this equation.
            # leveling-progression-equation: 100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))
            # Equation used for calculating how much income is given per action for the job level.
            # Available parameters:
            #   baseincome - the income for the action at level 1 (as set in the configuration).
            #   joblevel - the level the player has attained in the job.
            # NOTE: Please take care of the brackets when modifying this equation.
            # income-progression-equation: baseincome*((1.05)^(joblevel-1))
            # Equation used for calculating how much experience is given per action for the job level.
            # Available parameters:
            #   baseexperience - the experience for the action at level 1 (as set in the configuration).
            #   joblevel - the level the player has attained in the job.
            # NOTE: Please take care of the brackets when modifying this equation.
            # experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
            ########################################################################
            # Section used to configure what items the job gets paid for, how much
            # they get paid and how much experience they gain.
            #
            # For break and place, the block name or id is used.
            # You can select a sub-type by using a '-' between the id and the bit
            # value for the sub-type. e.g LOG-0 = usual log, LOG-2 = birch log
            # 17-2 = birch log.
            #
            # If no sub-type is give, the payout will be for all sub-types.
            #
            #
            # For kill tags (Kill and custom-kill), the name is the name of the
            # mob.
            # Available mobs:
            #   Chicken
            #   Cow
            #   Pig
            #   Sheep
            #   Wolf
            #   Creeper
            #   Giant
            #   Skeleton
            #   Spider
            #   Zombie
            #   PigZombie
            #   Squid
            #   Ghast
            #   Player
            #   Slime
            #
            # NOTE: mob names are case sensitive.
            #
            # For custom-kill, it is the name of the job (also case sensitive).
            #
            # NOTE: If a job has both the pay for killing a player and for killing a
            # specific class, they will get both payments.
            ########################################################################
            fullname: Woodcutter
            shortname: W
            ChatColour: WHITE
            chat-display: None
            max-level: 100
            slots: 100
            leveling-progression-equation: 100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))
            income-progression-equation: baseincome*((1.05)^(joblevel-1))
            experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
            # payment for breaking a block
            Break:
                # block name/id (with optional sub-type)
                LOG:
                    # base income
                    income: 2.0
                    # base experience
                    experience: 5.0
            # payment for placing a block
            Place:
                SAPLING:
                    income: 3.0
                    experience: 5.0
                WOOD:
                    income: 1.0
                    experience: 2.0
            # killing a mob
            Kill:
                # mob name
                Player:
                    # base income
                    income: 0
                    # base experience
                    experience: 0
            # killing a jobs class
            custom-kill:
                # full name of the jobs class
                Woodcutter:
                    # base income
                    income: 0.0
                    # base experience
                    experience: 0.0
        Miner:
            fullname: Miner
            shortname: M
            ChatColour: WHITE
            chat-display: None
            max-level: 100
            slots: 100
            leveling-progression-equation: 100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))
            income-progression-equation: baseincome*((1.05)^(joblevel-1))
            experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
            Break:
                STONE:
                    income: 1.0
                    experience: 2.0
                COAL_ORE:
                    income: 2.0
                    experience: 3.0
                REDSTONE_ORE:
                    income: 3.0
                    experience: 3.0
                IRON_ORE:
                    income: 4.0
                    experience: 4.0
                GOLD_ORE:
                    income: 5.0
                    experience: 5.0
                LAPIS_ORE:
                    income: 5.0
                    experience: 5.0
                DIAMOND_ORE:
                    income: 10.0
                    experience: 6.0
                OBSIDIAN:
                    income: 7.5
                    experience: 7.5
                MOSSY_COBBLESTONE:
                    income: 6.0
                    experience: 6.0
            Place:
                RAILS:
                    income: 2.0
                    experience: 2.0
                IRON_ORE:
                    income: -5.0
                    experience: -5.0
                GOLD_ORE:
                    income: -6.0
                    experience: -6.0
            Kill:
                Player:
                    income: 0
                    experience: 0
            custom-kill:
                Miner:
                    income: 0
                    experience: 0
        Builder:
            fullname: Builder
            shortname: B
            ChatColour: WHITE
            chat-display: None
            max-level: 100
            slots: 100
            leveling-progression-equation: 100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))
            income-progression-equation: baseincome*((1.05)^(joblevel-1))
            experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
            Place:
                COBBLESTONE:
                    income: 1.0
                    experience: 1.0
                WOOD:
                    income: 1.5
                    experience: 1.5
                FENCE:
                    income: 1.5
                    experience: 1.5
                WOOL:
                    income: 1.5
                    experience: 1.5
                STONE:
                    income: 1
                    experience: 1
                GLOWSTONE:
                    income: 3.0
                    experience: 3.0
                SANDSTONE:
                    income: 2.0
                    experience: 2.0
                GLASS:
                    income: 3.0
                    experience: 3.0
                BRICK:
                    income: 4.0
                    experience: 4.0
                LAPIS_BLOCK:
                    income: 5.0
                    experience: 5.0
                DOUBLE_STEP:
                    income: 2.0
                    experience: 2.0
                STEP:
                    income: 2.0
                    experience: 2.0
                BOOKSHELF:
                    income: 3.0
                    experience: 3.0
                WOOD_STAIRS:
                    income: 2.0
                    experience: 2.0
                COBBLESTONE_STAIRS:
                    income: 2.0
                    experience: 2.0
                MOSSY_COBBLESTONE:
                    income: 5.0
                    experience: 5.0
                DIAMOND_BLOCK:
                    income: 5.0
                    experience: 5.0
                GOLD_BLOCK:
                    income: 5.0
                    experience: 5.0
            Kill:
                Player:
                    income: 0
                    experience: 0
            custom-kill:
                Builder:
                    income: 0
                    experience: 0
        Digger:
            fullname: Digger
            shortname: D
            ChatColour: WHITE
            chat-display: None
            max-level: 100
            slots: 100
            leveling-progression-equation: 100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))
            income-progression-equation: baseincome*((1.05)^(joblevel-1))
            experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
            Break:
                DIRT:
                    income: 2.0
                    experience: 2.0
                GRASS:
                    income: 2.0
                    experience: 2.0
                GRAVEL:
                    income: 2.0
                    experience: 2.0
                SAND:
                    income: 2.0
                    experience: 2.0
                CLAY:
                    income: 2.0
                    experience: 2.0
            Kill:
                Player:
                    income: 0
                    experience: 0
            custom-kill:
                Digger:
                    income: 0
                    experience: 0
        Farmer:
            fullname: Farmer
            shortname: F
            ChatColour: WHITE
            chat-display: None
            max-level: 100
            slots: 100
            leveling-progression-equation: 100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))
            income-progression-equation: baseincome*((1.05)^(joblevel-1))
            experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
            Break:
                WHEAT:
                    income: 4.0
                    experience: 4.0
                SUGAR_CANE_BLOCK:
                    income: 4.0
                    experience: 4.0
            Place:
                SEEDS:
                    income: 3.0
                    experience: 3.0
                SUGAR_CANE_BLOCK:
                    income: 1.0
                    experience: 1.0
            Kill:
                Player:
                    income: 0
                    experience: 0
            custom-kill:
                Farmer:
                    income: 0
                    experience: 0
        Hunter:
            fullname: Hunter
            shortname: H
            ChatColour: WHITE
            chat-display: None
            max-level: 100
            slots: 100
            leveling-progression-equation: 100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))
            income-progression-equation: baseincome*((1.05)^(joblevel-1))
            experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
            Kill:
                Chicken:
                    income: 1
                    experience: 2.5
                Cow:
                    income: 1
                    experience: 2.5
                Pig:
                    income: 1
                    experience: 2.5
                Sheep:
                    income: 1
                    experience: 2.5
                Wolf:
                    income: 5.0
                    experience: 5.0
                Creeper:
                    income: 10.0
                    experience: 10.0
                Skeleton:
                    income: 5.0
                    experience: 10.0
                Spider:
                    income: 4.0
                    experience: 10.0
                Zombie:
                    income: 3.0
                    experience: 10.0
                Player:
                    income: 0
                    experience: 0
            custom-kill:
                Woodcutter:
                    income: 0
                    experience: 0
                Miner:
                    income: 0
                    experience: 0
                Digger:
                    income: 0
                    experience: 0
                Farmer:
                    income: 0
                    experience: 0
                Builder:
                    income: 0
                    experience: 0
                Hunter:
                    income: 0
                    experience: 0
        Serialkiller:
            fullname: Serialkiller
            shortname: SK
            ChatColour: WHITE
            chat-display: None
            max-level: 100
            slots: 1
            leveling-progression-equation: 100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))
            income-progression-equation: baseincome*((1.05)^(joblevel-1))
            experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
            Kill:
                Player:
                    income: 30
                    experience: 40
    and how to place a spoiler?
     
  22. Offline

    JOHNandrade1218

    Love this plugin. I just have had a recent problem. Everything was fine. All of sudden it tells me that I don't have permission to do things. Ive checked it over and over and I have no idea what is wrong. I'm not getting any money or experience. I didn't change any setting. I left it as default. This is very frustrating. I've deleted each plugin and put them in 1 by 1. I still don't know. Please help. Thank you :)
     
  23. Offline

    Alesana

    My players can place, break et replace block to get unlimited money ... wtf?
     
  24. Offline

    Tagz

    This is my config file:

    # General configuration.
    #
    # The general configuration for the jobs plugin mostly includes how often the plugin
    # saves user data (when the user is in the game), the storage method, whether
    # to broadcast a message to the server when a user goes up a skill level.
    # It also allows admins to set the maximum number of jobs a player can have at
    # any one time.

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

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

    # How often in minutes you want it to save, 0 disables periodic saving and
    # the system will only save on logout
    save-period: 10

    # Do all players get a message when somone goes up a skill level?
    broadcast-on-skill-up: true

    # maximum number of jobs a player can join
    max-jobs: 3

    # option to enable the stats and achievements plugin.
    enable-stats: true

    # option to allow payment to be made when near a spawner
    enable-pay-near-spawner: true
     
  25. Offline

    sup3rphi1

    Awesome plugin... unfortunately its still WAAAY too easy for my users to exploit its problems...

    as mentioned above, players can place and delete blocks for extra cash. Also, players are not required to place the blocks neatly for a job like builder. they can just randomly place blocks anywhere and everywhere..
    Also, Players have often used TNT to completely blow a whole mountain to pieces to gain fast cash.. which ofcourse becomes a problem because the world starts to look terrible.

    I'm keeping tabs on this plugin and checking in periodically to see if any creative ways to fix these issues are put into a new version, or suggested in a comment. but i'm sorry to say that until then i will do without it. Sorry. Awesome plugin though!

    [​IMG]
     
  26. @sup3rphi1

    Remove builder class?
    WorldGuard?
    lol....
     
  27. Offline

    Alesana

    Are you going to fix the unlimited cash exploit/bug soon?
     
  28. Offline

    phrstbrn

    You can make certain blocks cost money to place as a workaround to help "fix" this exploit.
     
  29. Offline

    thestriker095

    For Some Reason When People Get A Job, The Next Day (Real Life) No One Have A Job. (Its As If People Are Getting Fired Every 24hrs??)

    Please Help!!!

    Thanks!

    I Get This Error When Disabling Jobs v2.0.2 WIP

    15:19:31 [SEVERE] Error occurred while disabling Jobs v2.0.2 WIP 4 (Is it up to date?): null
    java.lang.NullPointerException
    at java.lang.String.replace(String.java:2219)
    at me.alex.jobs.Jobs.onDisable(Jobs.java:68)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:820)
    at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:269)
    at com.bekvon.bukkit.plugman.PlugMan.disablePlugin(PlugMan.java:320)
    at com.bekvon.bukkit.plugman.PlugMan.doCommand(PlugMan.java:136)
    at com.bekvon.bukkit.plugman.PlugMan.onCommand(PlugMan.java:65)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:279)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:428)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:413)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)

    EDIT: Autually It Appears The Entire Plugin Is Broken!!! Here In Another Error Message When People Try To Use Jobs!

    15:40:57 [SEVERE] [Jobs] - Error loading jobs.data. Disabling plugin!
    15:40:57 [SEVERE] java.lang.NullPointerException
    15:40:57 [SEVERE] T!!! at me.alex.jobs.dao.JobsDAOFlatfile.save(JobsDAOFlatfile.java:122)
    15:40:57 [SEVERE] T!!! at me.alex.jobs.Jobs.save(Jobs.java:1285)
    15:40:57 [SEVERE] T!!! at me.alex.jobs.Jobs.removePlayer(Jobs.java:1257)
    15:40:57 [SEVERE] T!!! at me.alex.jobs.listener.JobsPlayerListener.onPlayerQuit(JobsPlayerListener.java:26)
    15:40:57 [SEVERE] T!!! at org.bukkit.plugin.java.JavaPluginLoader$2.execute(JavaPluginLoader.java:250)
    15:40:57 [SEVERE] T!!! at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    15:40:57 [SEVERE] T!!! at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
    15:40:57 [SEVERE] T!!! at net.minecraft.server.ServerConfigurationManager.disconnect(ServerConfigurationManager.java:148)
    15:40:57 [SEVERE] T!!! at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:605)
    15:40:57 [SEVERE] T!!! at net.minecraft.server.NetworkManager.b(NetworkManager.java:231)
    15:40:57 [SEVERE] T!!! at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    15:40:57 [SEVERE] T!!! at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    15:40:57 [SEVERE] T!!! at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:399)
    15:40:57 [SEVERE] T!!! at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
    15:40:57 [SEVERE] T!!! at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    15:40:57 [SEVERE] [Jobs] - Error loading jobs.data. Disabling plugin!
    15:40:57 [SEVERE] java.lang.NullPointerException
    15:40:57 [SEVERE] T!!! at me.alex.jobs.dao.JobsDAOFlatfile.save(JobsDAOFlatfile.java:122)
    15:40:57 [SEVERE] T!!! at me.alex.jobs.Jobs.save(Jobs.java:1285)
    15:40:57 [SEVERE] T!!! at me.alex.jobs.Jobs.removePlayer(Jobs.java:1257)
    15:40:57 [SEVERE] T!!! at me.alex.jobs.listener.JobsPlayerListener.onPlayerQuit(JobsPlayerListener.java:26)
    15:40:57 [SEVERE] T!!! at org.bukkit.plugin.java.JavaPluginLoader$2.execute(JavaPluginLoader.java:250)
    15:40:57 [SEVERE] T!!! at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    15:40:57 [SEVERE] T!!! at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
    15:40:57 [SEVERE] T!!! at net.minecraft.server.ServerConfigurationManager.disconnect(ServerConfigurationManager.java:148)
    15:40:57 [SEVERE] T!!! at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:605)
    15:40:57 [SEVERE] T!!! at net.minecraft.server.NetworkManager.b(NetworkManager.java:231)
    15:40:57 [SEVERE] T!!! at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    15:40:57 [SEVERE] T!!! at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    15:40:57 [SEVERE] T!!! at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:399)
    15:40:57 [SEVERE] T!!! at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
    15:40:57 [SEVERE] T!!! at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)



    Please HELP!!

    THANKS! Btw GREAT PLUGIN!!!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 17, 2016
  30. Switch to MySQL to fix.
    Dono why the author hasn't fixed this yet as the coder for our server (phrstbrn) fixed the flatfile glitch some time ago ever though we're using MySQL.
     
  31. Offline

    eyekantspel343

    Have an interesting problem, can't figure out what's causing it. The plugin works fine except for one issue. The /jobs info [JobName] command throws an [INFO] message whenever anyone tries to use it. Here's the server log during this.

    Code:
    >jobs info Miner
    07:18:08 [INFO] There was an error in your command
    07:18:08 [INFO] /jobs browse - list the jobs available to you.
    07:18:08 [INFO] /jobs fire <playername> <job> - fire the player from the job.
    07:18:08 [INFO] /jobs employ <playername> <job> - employ the player to the job.
    07:18:08 [INFO] /jobs promote <playername> <job> <levels> - promote the player X levels in a job.
    07:18:08 [INFO] /jobs demote <playername> <job> <levels> - demote the player X levels in a job.
    07:18:08 [INFO] /jobs grantxp <playername> <job> <experience> - grant the player X experience in a job.
    07:18:08 [INFO] /jobs removexp <playername> <job> <experience> - remove X experience from the player in a job.
    07:18:08 [INFO] /jobs transfer <playername> <oldjob> <newjob> - transfer a player's job from an old job to a new job.
    >jobs info Builder
    07:18:18 [INFO] There was an error in your command
    07:18:18 [INFO] /jobs browse - list the jobs available to you.
    07:18:18 [INFO] /jobs fire <playername> <job> - fire the player from the job.
    07:18:18 [INFO] /jobs employ <playername> <job> - employ the player to the job.
    07:18:18 [INFO] /jobs promote <playername> <job> <levels> - promote the player X levels in a job.
    07:18:18 [INFO] /jobs demote <playername> <job> <levels> - demote the player X levels in a job.
    07:18:18 [INFO] /jobs grantxp <playername> <job> <experience> - grant the player X experience in a job.
    07:18:18 [INFO] /jobs removexp <playername> <job> <experience> - remove X experience from the player in a job.
    07:18:18 [INFO] /jobs transfer <playername> <oldjob> <newjob> - transfer a player's job from an old job to a new job.
    >jobs info Digger
    07:18:21 [INFO] There was an error in your command
    07:18:21 [INFO] /jobs browse - list the jobs available to you.
    07:18:21 [INFO] /jobs fire <playername> <job> - fire the player from the job.
    07:18:21 [INFO] /jobs employ <playername> <job> - employ the player to the job.
    07:18:21 [INFO] /jobs promote <playername> <job> <levels> - promote the player X levels in a job.
    07:18:21 [INFO] /jobs demote <playername> <job> <levels> - demote the player X levels in a job.
    07:18:21 [INFO] /jobs grantxp <playername> <job> <experience> - grant the player X experience in a job.
    07:18:21 [INFO] /jobs removexp <playername> <job> <experience> - remove X experience from the player in a job.
    07:18:21 [INFO] /jobs transfer <playername> <oldjob> <newjob> - transfer a player's job from an old job to a new job.
    This will happen for every job, and as can be seen from the server log, instead of showing the correct information, it instead gives the same output that /jobs would. I've tried removing and re-adding the plugin already also.

    EDIT: Also just now tried using /jobs info [JobName] [break,place,kill] and the server seems to just ignore the command entirely.

    Code:
    >jobs info Miner break
    >jobs
    07:45:26 [INFO] /jobs browse - list the jobs available to you.
    07:45:26 [INFO] /jobs fire <playername> <job> - fire the player from the job.
    07:45:26 [INFO] /jobs employ <playername> <job> - employ the player to the job.
    07:45:26 [INFO] /jobs promote <playername> <job> <levels> - promote the player X levels in a job.
    07:45:26 [INFO] /jobs demote <playername> <job> <levels> - demote the player X levels in a job.
    07:45:26 [INFO] /jobs grantxp <playername> <job> <experience> - grant the player X experience in a job.
    07:45:26 [INFO] /jobs removexp <playername> <job> <experience> - remove X experience from the player in a job.
    07:45:26 [INFO] /jobs transfer <playername> <oldjob> <newjob> - transfer a player's job from an old job to a new job.
    >jobs info Miner place
    07:48:45 [INFO] [SignShop] Saving shops...
    07:48:45 [INFO] [SignShop] Shops saved!
     
Thread Status:
Not open for further replies.

Share This Page