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

    here are the official names.
    http://javadoc.lukegb.com/Bukkit/d7...bukkit.html#ab7fa290bb19b9a830362aa88028ec80a
    That does include items though, keep that in mind. If something isn't working check if there's another word that could mean the same thing (e.g. SUGAR_CANE = item, SUGAR_CANE_BLOCK is the actual block, WHEAT = item, CROPS = block)

    It does support tall grass.

    end of line and line feed. Linux, mac and windows do different combinations of each (can't remember which does what).

    Those characters are characters that aren't normally shown that signify when the end of the line is.

    whoops, it's meant to say it improves performance slightly :p

    a rar file is an archive. Extract it to your plugins folder.

    Lame, I'm assuming iChat made the same mistake i made when i first made this plugin :p and not take into account already modified display names. Seems to be a common mistake among plugin devs :p
     
  3. Offline

    oz_revulsion

    Hi Flame

    Still loving the plugin mate I was delighted to put in the new version but unfortunately my hard work in reconfiguring everything has not paid off. the plugin is not loading up correctly and I am getting the following error:

    Code:
    2011-06-04 09:17:37 [INFO] [Jobs] - Job Woodsman is missing the max-level property. defaulting to no limits !
    2011-06-04 09:17:37 [INFO] [Jobs] - Job Woodsman is missing the slots property. defaulting to no limits !
    2011-06-04 09:17:37 [SEVERE] Error occurred while enabling Jobs v2.0.0 (Is it up to date?): null
    java.lang.NullPointerException
        at me.alex.jobs.config.JobsConfiguration.loadJobSettings(JobsConfiguration.java:637)
        at me.alex.jobs.config.JobsConfiguration.<init>(JobsConfiguration.java:76)
        at me.alex.jobs.config.JobsConfiguration.getInstance(JobsConfiguration.java:990)
        at me.alex.jobs.Jobs.onEnable(Jobs.java:82)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:750)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:134)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:112)
        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:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    I have check the last couple of pages of the forums and can't see this error can you please help shed some light on it. My config file is below and has passed the YML parser test

    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
        Woodsman:
            # 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: GREEN
            # Option to let you choose what kind of prefix this job adds to your name.
            # options are: full, title, job and none
            chat-display: none
            # [OPTIONAL] - the maximum level of this class
            #max-level: 10
            # [OPTIONAL] - the maximum number of users on the server that can have this job at
            # any one time (includes offline players).
            #slots: 1
            # 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.
            ########################################################################
            # payment for breaking a block
            Break:
                # block name/id (with optional sub-type)
                LOG:
                    # base income
                    income: 0.1
                    # base experience
                    experience: 0.1
                YELLOW_FLOWER:
                    income: 0.1
                    experience: 0.1
                RED_ROSE:
                    income: 0.1
                    experience: 0.1
                RED_MUSHROOM:
                    income: 0.5
                    experience: 0.5
                SAPLING:
                    income: -0.5
                    experience: 0
                CROPS:
                    income: -0.5
                    experience: 0
                STONE:
                    income: -0.25
                    experience: 0
    
            # payment for placing a block
            Place:
                SAPLING:
                    income: 0.5
                    experience: 0.5
                LOG:
                    income: -0.1
                    experience: 0
                YELLOW_FLOWER:
                    income: -0.1
                    experience: 0
                RED_ROSE:
                    income: -0.1
                    experience:
                RED_MUSHROOM:
                    income: -0.5
                    experience: 0
            # killing a mob
            Kill:
                # mob name
                Pig:
                    # base income
                    income: -0.5
                    # base experience
                    experience: 0
            # killing a jobs class
            custom-kill:
                # full name of the jobs class
        Miner:
            fullname: Miner
            shortname: M
            ChatColour: DARK_GRAY
            chat-display: none
            #max-level: 10
            #slots: 10
            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:
                COAL_ORE:
                    income: 0.01
                    experience: 0.01
                REDSTONE_ORE:
                    income: 0.2
                    experience: 0.2
                IRON_ORE:
                    income: 0.2
                    experience: 0.2
                DIAMOND_ORE:
                    income: 4.0
                    experience: 4.0
                OBSIDIAN:
                    income: 2.0
                    experience: 2.0
                LOG:
                    income: -2.0
                    experience: 0
                CROPS:
                    income: -0.5
                    experience: 0
            Place:
                RAILS:
                    income: 0.1
                    experience: 0.1
                IRON_ORE:
                    income: -0.2
                    experience: 0
                COBBLESTONE:
                    income: -0.25
                    experience: 0
                OBSIDIAN:
                    income: -2.0
                    experience: 0
            Kill:
                Pig:
                    income: -1.0
                    experience: 0
                Zombie:
                    income: -5.0
                    experience: 0
            custom-kill:
        Builder:
            fullname: Builder
            shortname: B
            ChatColour: WHITE
            chat-display: none
            #max-level: 10
            #slots: 10
            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:
                COBBLESTONE:
                    income: -0.1
                    experience: 0
                STONE:
                    income: -1.0
                    experience: 0
                GLASS:
                    income: -1.0
                    experience: 0
                BRICK:
                    income: -2.0
                    experience: 0
                WOOD:
                    income: -0.1
                    experience: 0
                OBSIDIAN:
                    income: -3.0
                    experience: 0
            Place:
                COBBLESTONE:
                    income: 0.1
                    experience: 0.1
                STONE:
                    income: 1.0
                    experience: 1.0
                GLASS:
                    income: 1.0
                    experience: 1.0
                BRICK:
                    income: 2.0
                    experience: 2.0
                WOOD:
                    income: 0.1
                    experience: 0.1
                OBSIDIAN:
                    income: 3.0
                    experience: 3.0
            Kill:
                Pig:
                    income: -0.5
                    experience: 0
                Zombie:
                    income: -2.0
                    experience: 0
            custom-kill:
        Farmer:
            fullname: Digger
            shortname: D
            ChatColour: YELLOW
            chat-display: none
            #max-level: 10
            #slots: 10
            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:
                FENCE:
                    income: -0.25
                    experience: 0
                GRASS:
                    income: 0.1
                    experience: 0.1
                CROPS:
                    income: 0.1
                    experience: 0.1
                PUMPKIN:
                    income: 4.0
                    experience: 4.0
                SUGAR_CANE_BLOCK:
                    income: 0.1
                    experience: 0.1
                STONE:
                    income: -0.25
                    experience: 0
                LOG:
                    income: -0.5
                    experience: 0
            Place:
                FENCE:
                    income: 0.25
                    experience: 0
                PUMPKIN:
                    income: -4.0
                    experience: 0
                SUGAR_CANE_BLOCK:
                    income: -0.1
                    experience: 0
            Kill:
                Pig:
                    income: 0.25
                    experience: 0.25
                Cow:
                    income: 0.25
                    experience: 0.25
                Sheep:
                    income: 0.25
                    experience: 0.25
                Zombie:
                    income: -2.0
                    experience: 0
            custom-kill:
        Warrior:
            fullname: Farmer
            shortname: F
            ChatColour: DARK_RED
            chat-display: none
            #max-level: 10
            #slots: 10
            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:
                COBBLESTONE:
                    income: -0.05
                    experience: 0
                STONE:
                    income: -0.05
                    experience: 0
                LOGS:
                    income: -0.5
                    experience: 0
                CROPS:
                    income: -0.5
                    experience: 0
            Place:
                COBBLESTONE:
                    income: -0.05
                    experience: 0
                STONE:
                    income: -0.05
                    experience: 0
                DIRT:
                    income: -0.05
                    experience: 0
            Kill:
                Pig:
                    income: -0.5
                    experience: 0
                Creeper:
                    income: 3.0
                    experience: 3.0
                Skeleton:
                    income: 3.0
                    experience: 3.0
                Spider:
                    income: 3.0
                    experience: 3.0
                Zombie:
                    income: 3.0
                    experience: 3.0
                PigZombie:
                    income: 7.0
                    experience: 7.0
                Slime:
                    income: 7.0
                    experience: 7.0
            custom-kill:
    Shopkeeper:
            fullname: ShopKeeper
            shortname: S
            ChatColour: DARK_BLUE
            chat-display: none
            #max-level: 10
            #slots: 10
            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:
                LOG:
                    income: -2.0
                    experience: 0
                STONE:
                    income: -2.0
                    experience: 0
                CROPS:
                    income: -1.0
                    experience: 0
                IRON_ORE:
                    income: -3.0
                    experience: 0
                COAL_ORE:
                    income: -2.0
                    experience: 0
                OBSIDIAN:
                    income: -6.0
                    experience: 0
                REDSTONE_ORE:
                    income: -3.0
                    experience: 0
                LAPIS_ORE:
                    income: -3.0
                    experience:
                DIAMOND_ORE:
                    income: -10.0
                    experience:
                SUGAR_CANE_BLOCK:
                    income: -1.0
                    experience: 0
            Place:
            Kill:
                Pig:
                    income: -2.0
                    experience: 0
                Cow:
                    income: -2.0
                    experience: 0
                Zombie:
                    income: -3.0
                    experience: 0
                Skeleton:
                    income: -3.0
                    experience: 0
                Zombie:
                    income: -2.0
                    experience: 0
            custom-kill:
    
    And the following plugins are installed on my server
    Code:
    CommandBook
    FLTDetector
    HeroicDeath
    Jobs
    LWC
    LogBlock
    MyHome
    MyWarp
    Permissions
    PermissionsPlus
    SimpleHelp
    SimpleLog
    SimpleReserve
    Towny
    WorldEdit
    iChat
    iConomy
    iConomyChestShop
    iConomyDeath
    Any help you can provide will be greatly appreciated as I have some very unhappy minecrafters at the moment who also miss you plugin!

    Cheers
    Oz

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

    flametornado

    remove the all of the tags (plance, custom-kill ...) where you have no elements in them.
     
  5. Offline

    Taien

    I found the source of the problems I was having. It's EssentialsChat. Since disabling it I have had no jobs get lost and the tags show up correctly in the players' names. The problem is, EssentialsChat was important for us because it created the [Admin] or [Regular] or whatever in front of each person's name and changed their name's color based on their rank as set in GroupManager's permissions file under prefix and suffix. Now that I've taken it off, the prefix and suffix in GroupManager no longer show up for some reason, and so all the players look the same (Admins, Mods, Newbs, whatever).

    Any way you could find out what the conflict is for me(i.e. make it compatible with EssentialsChat)? Or should I start trying to find another chat plugin? :p I can't figure out why the prefixes/suffixes in GroupManager aren't showing up...not having a chat plugin installed shouldn't matter that much, should it? Hmmm....

    Anyway, just wanted to let you know that all of my problems were being caused by EssentialsChat and that your plugin (as you said) does indeed work fine. :)
     
  6. Offline

    oz_revulsion

    Here is my new config without the blank elements as recommended:

    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
        Woodsman:
            # 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: GREEN
            # Option to let you choose what kind of prefix this job adds to your name.
            # options are: full, title, job and none
            chat-display: none
            # [OPTIONAL] - the maximum level of this class
            #max-level: 10
            # [OPTIONAL] - the maximum number of users on the server that can have this job at
            # any one time (includes offline players).
            #slots: 1
            # 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.
            ########################################################################
            # payment for breaking a block
            Break:
                # block name/id (with optional sub-type)
                LOG:
                    # base income
                    income: 0.1
                    # base experience
                    experience: 0.1
                YELLOW_FLOWER:
                    income: 0.1
                    experience: 0.1
                RED_ROSE:
                    income: 0.1
                    experience: 0.1
                RED_MUSHROOM:
                    income: 0.5
                    experience: 0.5
                SAPLING:
                    income: -0.5
                    experience: 0
                CROPS:
                    income: -0.5
                    experience: 0
                STONE:
                    income: -0.25
                    experience: 0
    
            # payment for placing a block
            Place:
                SAPLING:
                    income: 0.5
                    experience: 0.5
                LOG:
                    income: -0.1
                    experience: 0
                YELLOW_FLOWER:
                    income: -0.1
                    experience: 0
                RED_ROSE:
                    income: -0.1
                    experience:
                RED_MUSHROOM:
                    income: -0.5
                    experience: 0
            # killing a mob
            Kill:
                # mob name
                Pig:
                    # base income
                    income: -0.5
                    # base experience
                    experience: 0
        Miner:
            fullname: Miner
            shortname: M
            ChatColour: DARK_GRAY
            chat-display: none
            #max-level: 10
            #slots: 10
            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:
                COAL_ORE:
                    income: 0.01
                    experience: 0.01
                REDSTONE_ORE:
                    income: 0.2
                    experience: 0.2
                IRON_ORE:
                    income: 0.2
                    experience: 0.2
                DIAMOND_ORE:
                    income: 4.0
                    experience: 4.0
                OBSIDIAN:
                    income: 2.0
                    experience: 2.0
                LOG:
                    income: -2.0
                    experience: 0
                CROPS:
                    income: -0.5
                    experience: 0
            Place:
                RAILS:
                    income: 0.1
                    experience: 0.1
                IRON_ORE:
                    income: -0.2
                    experience: 0
                COBBLESTONE:
                    income: -0.25
                    experience: 0
                OBSIDIAN:
                    income: -2.0
                    experience: 0
            Kill:
                Pig:
                    income: -1.0
                    experience: 0
                Zombie:
                    income: -5.0
                    experience: 0
        Builder:
            fullname: Builder
            shortname: B
            ChatColour: WHITE
            chat-display: none
            #max-level: 10
            #slots: 10
            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:
                COBBLESTONE:
                    income: -0.1
                    experience: 0
                STONE:
                    income: -1.0
                    experience: 0
                GLASS:
                    income: -1.0
                    experience: 0
                BRICK:
                    income: -2.0
                    experience: 0
                WOOD:
                    income: -0.1
                    experience: 0
                OBSIDIAN:
                    income: -3.0
                    experience: 0
            Place:
                COBBLESTONE:
                    income: 0.1
                    experience: 0.1
                STONE:
                    income: 1.0
                    experience: 1.0
                GLASS:
                    income: 1.0
                    experience: 1.0
                BRICK:
                    income: 2.0
                    experience: 2.0
                WOOD:
                    income: 0.1
                    experience: 0.1
                OBSIDIAN:
                    income: 3.0
                    experience: 3.0
            Kill:
                Pig:
                    income: -0.5
                    experience: 0
                Zombie:
                    income: -2.0
                    experience: 0
        Farmer:
            fullname: Digger
            shortname: D
            ChatColour: YELLOW
            chat-display: none
            #max-level: 10
            #slots: 10
            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:
                FENCE:
                    income: -0.25
                    experience: 0
                GRASS:
                    income: 0.1
                    experience: 0.1
                CROPS:
                    income: 0.1
                    experience: 0.1
                PUMPKIN:
                    income: 4.0
                    experience: 4.0
                SUGAR_CANE_BLOCK:
                    income: 0.1
                    experience: 0.1
                STONE:
                    income: -0.25
                    experience: 0
                LOG:
                    income: -0.5
                    experience: 0
            Place:
                FENCE:
                    income: 0.25
                    experience: 0
                PUMPKIN:
                    income: -4.0
                    experience: 0
                SUGAR_CANE_BLOCK:
                    income: -0.1
                    experience: 0
            Kill:
                Pig:
                    income: 0.25
                    experience: 0.25
                Cow:
                    income: 0.25
                    experience: 0.25
                Sheep:
                    income: 0.25
                    experience: 0.25
                Zombie:
                    income: -2.0
                    experience: 0
        Warrior:
            fullname: Farmer
            shortname: F
            ChatColour: DARK_RED
            chat-display: none
            #max-level: 10
            #slots: 10
            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:
                COBBLESTONE:
                    income: -0.05
                    experience: 0
                STONE:
                    income: -0.05
                    experience: 0
                LOGS:
                    income: -0.5
                    experience: 0
                CROPS:
                    income: -0.5
                    experience: 0
            Place:
                COBBLESTONE:
                    income: -0.05
                    experience: 0
                STONE:
                    income: -0.05
                    experience: 0
                DIRT:
                    income: -0.05
                    experience: 0
            Kill:
                Pig:
                    income: -0.5
                    experience: 0
                Creeper:
                    income: 3.0
                    experience: 3.0
                Skeleton:
                    income: 3.0
                    experience: 3.0
                Spider:
                    income: 3.0
                    experience: 3.0
                Zombie:
                    income: 3.0
                    experience: 3.0
                PigZombie:
                    income: 7.0
                    experience: 7.0
                Slime:
                    income: 7.0
                    experience: 7.0
    Shopkeeper:
            fullname: ShopKeeper
            shortname: S
            ChatColour: DARK_BLUE
            chat-display: none
            #max-level: 10
            #slots: 10
            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:
                LOG:
                    income: -2.0
                    experience: 0
                STONE:
                    income: -2.0
                    experience: 0
                CROPS:
                    income: -1.0
                    experience: 0
                IRON_ORE:
                    income: -3.0
                    experience: 0
                COAL_ORE:
                    income: -2.0
                    experience: 0
                OBSIDIAN:
                    income: -6.0
                    experience: 0
                REDSTONE_ORE:
                    income: -3.0
                    experience: 0
                LAPIS_ORE:
                    income: -3.0
                    experience:
                DIAMOND_ORE:
                    income: -10.0
                    experience:
                SUGAR_CANE_BLOCK:
                    income: -1.0
                    experience: 0
            Kill:
                Pig:
                    income: -2.0
                    experience: 0
                Cow:
                    income: -2.0
                    experience: 0
                Zombie:
                    income: -3.0
                    experience: 0
                Skeleton:
                    income: -3.0
                    experience: 0
                Zombie:
                    income: -2.0
                    experience: 0
    
    But still getting this error

    Code:
    2011-06-04 11:07:13 [INFO] [Jobs] - Job Woodsman is missing the max-level property. defaulting to no limits !
    2011-06-04 11:07:13 [INFO] [Jobs] - Job Woodsman is missing the slots property. defaulting to no limits !
    2011-06-04 11:07:13 [SEVERE] Error occurred while enabling Jobs v2.0.0 (Is it up to date?): null
    java.lang.NullPointerException
        at me.alex.jobs.config.JobsConfiguration.loadJobSettings(JobsConfiguration.java:637)
        at me.alex.jobs.config.JobsConfiguration.<init>(JobsConfiguration.java:76)
        at me.alex.jobs.config.JobsConfiguration.getInstance(JobsConfiguration.java:990)
        at me.alex.jobs.Jobs.onEnable(Jobs.java:82)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:750)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:134)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:112)
        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:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    thanks for the help so far any other suggestions?
     
  7. Offline

    flametornado

    strange. would you mind upgrading to 2.0.1 please?

    It makes it easier for me (line numbers changed)
     
  8. Offline

    Taien

    Flame, I take back what I said before - EssentialsChat isn't the only problem. EssentialsChat was preventing the tags from showing up in chat, but I'm still having users who lose their jobs.

    For comparison, my server runs 50 users at a time, and jobs is a big part of our economy. Users are starting to get pretty pissed at me because I can't track down the problem :( I'm going to try removing some plugins and seeing if it helps. I wish I had an error message for you for when the jobs get lost, but there isn't one really...not that I have seen anyway. It's definitely a plugin conflict I think though, since you are not having problems on your server...and you run a lot less plugins than we do. I'm going to try running the server without Essentials for a while - maybe that will help. Not sure. Anyway, I'll also be updating to 2.0.1 at the same time I do this. I'll let you know how it goes.

    Flame, would you be able to install Essentials and see if you get the jobs data loss error? It has something to do with doing /jobs commands and then relogging and or restarting the server...

    I tried removing Essentials just now but that removed so many things that people take for granted around here...I couldn't leave it off :( And it was never a problem with 1.3.3...

    Also, I installed the newest LogBlock today and it instantly broke Jobs, and I think that maybe LogBlock's older version may have been causing problems for a while too. I immediately removed LogBlock, but now we're without griefer protection, which is a major problem on big servers. We'll see what happens over the course of the day as people use their jobs...hopefully no more are lost and I can just convince you to work with LogBlock :p Or convince LogBlock's creator to work with Jobs :p

    You should stop in and see what I mean. Here's my server info:

    173.208.58.92

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

    xbladee

    Hello. I have problem! In game i write /jobs browse but it dont show me jobs. Any ideas?
     
  10. Offline

    PasinduDj

    I am Admins so i can Join the jobs but the low ranked players are complaining that there are no Jobs when they type /jobs browse i already configured GroupManager Permissions but why it doesnt work for Others?
     
  11. Offline

    HadrienM

    Improvement idea :

    Make the /jobs info <job> <break,place,kill> with pages system, because if the list is long, we can't read the upper items of the list.
     
  12. Offline

    Tagz

    Having the same issue as Taien.
    Random members seem to be randomly loosing a job. They don't loose all of their jobs, just one most of the time.
     
  13. Offline

    Taien

    What other plugins are you running? I'll compare to my list and Flame's and see if we can't track down a culprit...

    Unless it really is a bug in Jobs that Flame hasn't seen on his server :(
     
  14. Offline

    ValBGaming

  15. Offline

    flametornado

    permissions set up properly?

    i will look into doing that in an update.

    i'm not sure if it is a plugin conflict. Tell me if both of you have large servers, and if people are reporting experience or levels missing.

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

    RaccoonLand

    Flame, Do u no what the end of line character is for windows?
     
  17. Offline

    flametornado

    both. Use notepad++ to edit your config files. if you're using windows.
     
  18. Offline

    RaccoonLand

    is notepad++ the name of the program or is ++ the end of line character?
     
  19. Offline

    flametornado

    name of the program

    http://notepad-plus-plus.org/
     
  20. Offline

    RaccoonLand

    thnx

    one more thing... sorry that i keep asking u question but what is the end of line character,,, u havent told me yet

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

    flametornado

    it's a special character that doesn't get shown. On windows it's carriage return line feed. If you press the button that looks like a reverse P in notepad++, it'll show you those characters.
     
  22. Offline

    XSaracen

    heres my permissions setup and its in groupmanager
    Code:
        permissions:
        - essentials.back
        - essentials.signs.balance.use
        - essentials.signs.buy.use
        - essentials.signs.disposal.use
        - essentials.signs.heal.use
        - essentials.signs.sell.use
        - essentials.signs.warp.use
        - factions.create
        - falsebook.blocks.gate
        - jobs.join.Builder
        - jobs.join.Digger
        - jobs.join.Miner
        - jobs.join.Woodcutter
        - jobs.world.world
        - mcmmo.ability.axes
        - mcmmo.ability.excavation
        - mcmmo.ability.herbalism
        - mcmmo.ability.mining
        - mcmmo.ability.swords
        - mcmmo.ability.unarmed
        - mcmmo.ability.woodcutting
        - mcmmo.commands.ability
        - mcmmo.regeneration
        inheritance:
     
  23. Offline

    Schulzi

    Thanks for the update! ;D
    In version 2.0.0 the CROPS-7 thing didn't work, but now in Version 2.0.1 it seems to work! :D
    Thank you!
     
  24. Offline

    Taien

    My server is 50 players, and lots of people are losing one or both jobs. This was happening in 2.0.0 RC2 as well, but not in 1.3.3. Should help you narrow down where the issue is.

    Couple of suggestions for ya Flame :)
    1. Make the variables in the message config usable by any message instead of the specific ones they're included in.
    2. I've noticed that to do the jobs titles stuff displaying in chat, you made them part of the player's 'nickname' or in iChat +displayname. The problem with this is since it's part of the displayname, the formatting prefix and suffix are applied before the beginning of the job title and after the end of the name respectively. Since your job titles have their own formatting (for colors), it cancels out the prefix and suffix I set myself. Maybe there's a way you can fix this, but I'm not sure how...you probably won't be able to put the prefix in between the end of the job title and the beginning of the player name, since that will break the iChat formatting. Hmmmmms....
    3. Add another option for chat-display: short. It would display just the short title and short job name even if they only have one job. I noticed currently that on full you only get the short names if they have two jobs...I'd like an option to keep it uniform (short names for one job too).

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

    Tagz

    Not a very big server. Around 15 ppl.
    Plugins:

    AfkKick
    Backup
    craftscripts
    Essentials
    GroupManager
    HeroChat
    HeroicDeath
    iConomy
    iConomyChestShop
    Jobs
    LWC
    MCDocs
    mcMMO
    MinecartMania
    MobileAdmin
    MultiVerse
    RealAdminTools
    SimpleTips
    Spyer
    Stargate
    WeatherRestrictions
    WorldEdit
    WorldGuard
     
  26. Offline

    ledhead900

    Issue with MySQL

    Sure it works but when I open up workbench to edit it the created jobs table has nothing in it but a warning msg saying its not editable coz of some thing is missing or something.
     
  27. Offline

    Optical

    I have a problem if i type /jobs browse it says there are no jobs you can join.
    And i left jobsconfig as i download
    and if i want join a job i says it dont exist
    Pls help
     
  28. Offline

    flametornado

    That looks like it should work. I have no idea why it doesn't sadly :(

    1. I can do that for some not for others (e.g. oldjob, newjob ...)
    2. i only modify the display name. I didn't think that should mess with iChat formatting unless the people who made iChat didn't take changing display names into account, which i doubt.
    3. AWESOME IDEA, will def do it in the next update.

    any reports of people losing experience or levels?

    i can modify my table fine. Might be a problem with your mysql database.

    did you set up your permissions properly?
     
  29. Offline

    ledhead900

    I am using root user but thats only cose im the sole person using it and its not online in anyway.
    It generated the table fine but then when i click the table it says.

    Code:
    Action
    
    select * from `minecraft`.`jobs`
    LIMIT 0, 1000
    
    Message
    
    Error: `minecraft`.`jobs`: table data is not editable because there is no primary key defined for the table
    My table is InnoDB if that matters ?

    Every other SQL plugin has worked fine with my database until this one.
     
  30. Offline

    PasinduDj

    I set my permissions like this
    - jobs.join.<jobname> - jobs.world.<worldname>

    but the players can open this browse thing but only there are no jobs
     
  31. Offline

    Shanev

    It seems like I don't get any money and experience when I kill something with my wolves :(
     
Thread Status:
Not open for further replies.

Share This Page