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

    TheBeast808

    Quick question, do they still get paid if they place the block and break it themselves?
     
  3. Offline

    Yoman987

    Another question: can other plugins read the saved data of player's jobs? For example a /whois command.
     
  4. Offline

    l3arry

    please help me this is my configuration and i made 2 jobs (farmer and hunter) but i cant get them work
    Code:
    # storage method, can be MySQL, sqlite, flatfile
    storage-method: flatfile
    
    # Requires Mysql.
    mysql-username: root
    mysql-password:
    mysql-database: minecraft
    mysql-url: jdbc:mysql://localhost:3306/
    sqlite-url: jdbc:sqlite:test.db
    
    # base experience needed to level up from level 1 to 2
    # experience to level up is base-exp*(1+levelingProgressionRate)^level
    base-exp: 100
    
    # mutiplier for xp. xp-multiplyer*jobPay = experience
    xp-multiplyer: 1.1
    
    # choose the prefix in chat- full = job and skill level, skill = skill level only,
    # job = job level only, none = no prefix
    chat-display: full
    
    # choose to broadcast when the user goes up a skill rank to everyone
    broadcast-skill-up: true
    
    # How often in minutes you want it to save, 0 disables periodic saving and
    # the system will only save on logout
    save-period: 10
    
    # money you get paid for any block placed or destroyed not in the list for your job
    flat-rate-payout: 0.0
    
    # Create Jobs
    # All jobs must follow this framework, <...> means optional
    #
    # Jobs:
    #     [NAME]
    #         ChatColour: [COLOUR]
    #         levelingProgressionRate: [double]
    #         incomeProgressionRate: [double]
    #         Break:
    #             <object_name: [price]>
    #             ...
    #             <object_name: [price]>
    #         Place:
    #             <object_name: [price]>
    #             ...
    #             <object_name: [price]>
    #         Kill:
    #             <creature_name: [price]>
    #             ...
    #             <creature_name: [price]>
    #
    # * In the break section they users will be given or subtracted money on breaking the object.
    # * In the place section they users will be given or subtracted money on placing the object.
    # * In the kill section they users will be given or subtracted money on killing a creature.
    # * levelingProgressionRate is the rate at which the experience required to get to the next
    # level increases between levels.
    # * incomeProgressionRate is the rate at which the money gained per item.
    # * ChatColour is the colour of the title.
    #
    # NOTE: the object name must be exactly what the material is in the code. e.g:
    # cobblestone      -> COBBLESTONE
    # diamond ore      -> DIAMOND_ORE
    # tree trunks(any) -> LOG
    # wooden boards    -> WOOD
    #
    Jobs:
        Woodcutter:
            ChatColour: GREEN
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                LOG: 5.0
            Place:
                SAPLING: 1.0
                WOOD: 2.0
        Miner:
            ChatColour: DARK_GRAY
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                STONE: 2.0
                COAL_ORE: 3.0
                REDSTONE_ORE: 3.0
                IRON_ORE: 4.0
                GOLD_ORE: 5.0
                LAPIS_ORE: 5.0
                DIAMOND_ORE: 6.0
                OBSIDIAN: 7.5
            Place:
                RAILS: 2.0
                IRON_ORE: -5.0
                GOLD_ORE: -6.0
        Builder:
            ChatColour: WHITE
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Place:
                COBBLESTONE: 2.0
                STONE: 3.0
                GLASS: 5.0
                BRICK: 7.0
        Digger:
            ChatColour: YELLOW
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                DIRT: 2.0
                GRASS: 2.0
                GRAVEL: 2.0
                SAND: 2.0
        Farmer:
            ChatColour: BLUE
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                WHEAT: 3.0
                SUGAR_CANE: 2.0
            Place:
                SEEDS: 2.0
                SUGER_CANE: 1.0
        Hunter:
            ChatColour: RED
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Kill:
                Chicken: 5.0
                Cow: 5.0
                Pig: 5.0
                Sheep: 5.0
                Wolf: 5.0
                Creeper 10.0
                Giant: 10.0
                Skeleton: 10.0
                Spider: 10.0
                Zombie: 10.0
    # Create titles
    # to create a title, they must follow this patter.
    # Titles:
    #     [Title Name]:
    #         ChatColour: [ChatColor]
    #         levelReq : [Integer]
    #
    # NOTE: levelReq must be the lowest level you can be to gain this title. It is recommended
    # but not neccessary to have a title at 0.
    Titles:
        Apprentice:
            ChatColour: WHITE
            levelReq: 0
        Novice:
            ChatColour: GRAY
            levelReq: 30
        Journeyman:
            ChatColour: GOLD
            levelReq: 60
        Master:
            ChatColour: BLACK
            levelReq: 90
     
  5. Offline

    Fritz7000

    finally it works!!!
    GREAT man

    edit 1:eek:k still not perfect. The money isnt getting payed...
    know why?
    the jobs are also not shown in the chat. its just written you joined the jobs etc. But you dont get money and if you write something there is just standing the name and not the title

    edit2: strange. sometimes it works sometimes not. at another player its working.
    Code:
    # storage method, can be MySQL, sqlite, flatfile
    storage-method: flatfile
    
    # Requires Mysql.
    mysql-username: root
    mysql-password:
    mysql-database: minecraft
    mysql-url: jdbc:mysql://localhost:3306/
    sqlite-url: jdbc:sqlite:test.db
    
    # base experience needed to level up from level 1 to 2
    # experience to level up is base-exp*(1+levelingProgressionRate)^level
    base-exp: 100
    
    # mutiplier for xp. xp-multiplyer*jobPay = experience
    xp-multiplyer: 1.0
    
    # choose the prefix in chat- full = job and skill level, skill = skill level only,
    # job = job level only, none = no prefix
    chat-display: full
    
    # choose to broadcast when the user goes up a skill rank to everyone
    broadcast-skill-up: true
    
    # How often in minutes you want it to save, 0 disables periodic saving and
    # the system will only save on logout
    save-period: 10
    
    # money you get paid for any block placed or destroyed not in the list for your job
    flat-rate-payout: 0.0
    
    # Create Jobs
    # All jobs must follow this framework, <...> means optional
    #
    # Jobs:
    #     [NAME]
    #         ChatColour: [COLOUR]
    #         levelingProgressionRate: [double]
    #         incomeProgressionRate: [double]
    #         Break:
    #             <object_name: [price]>
    #             ...
    #             <object_name: [price]>
    #         Place:
    #             <object_name: [price]>
    #             ...
    #             <object_name: [price]>
    #         Kill:
    #             <creature_name: [price]>
    #             ...
    #             <creature_name: [price]>
    #
    # * In the break section they users will be given or subtracted money on breaking the object.
    # * In the place section they users will be given or subtracted money on placing the object.
    # * In the kill section they users will be given or subtracted money on killing a creature.
    # * levelingProgressionRate is the rate at which the experience required to get to the next
    # level increases between levels.
    # * incomeProgressionRate is the rate at which the money gained per item.
    # * ChatColour is the colour of the title.
    #
    # NOTE: the object name must be exactly what the material is in the code. e.g:
    # cobblestone      -> COBBLESTONE
    # diamond ore      -> DIAMOND_ORE
    # tree trunks(any) -> LOG
    # wooden boards    -> WOOD
    #
    Jobs:
        Woodcutter:
            ChatColour: GREEN
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                LOG: 5.0
            Place:
                SAPLING: 1.0
                WOOD: 2.0
        Miner:
            ChatColour: DARK_GRAY
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                STONE: 2.0
                COAL_ORE: 3.0
                REDSTONE_ORE: 3.0
                IRON_ORE: 4.0
                GOLD_ORE: 5.0
                LAPIS_ORE: 5.0
                DIAMOND_ORE: 6.0
                OBSIDIAN: 7.5
            Place:
                RAILS: 2.0
                IRON_ORE: -5.0
                GOLD_ORE: -6.0
        Builder:
            ChatColour: WHITE
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Place:
                COBBLESTONE: 2.0
                STONE: 3.0
                GLASS: 5.0
                BRICK: 7.0
        Digger:
            ChatColour: YELLOW
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                DIRT: 2.0
                GRASS: 2.0
                GRAVEL: 2.0
                SAND: 2.0
        Farmer:
            ChatColour: GREEN
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                CROPS: 10.0
                SUGAR_CANE_BLOCK: 10.0
                SOIL: 2.0
            Place:
                SUGAR_CANE_BLOCK: -10.0
        Assasin:
            ChatColour: BLACK
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Kill:
                Player: 100.0
        Hunter:
            ChatColour: GREEN
            levelingProgressionRate: 0.15
            incomeProgressionrate: 0.05
            Kill:
                Pig: 5.0
                Cow: 5.0
                Chicken: 3.0
                Sheep: 3.0
        Knight:
            ChatColour: YELLOW
            levelingProgressionRate: 0.15
            incomeProgressionrate: 0.05
            Kill:
                Slime: 10.0
                Zombie: 5.0
                Skeleton: 7.0
                Spider: 6.0
                Ghast: 50.0
                PigZombie: 10.0
                Creeper: 7.0
        HARZ4:
            ChatColour: GRAY
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                BED_BLOCK: -10.0
            Place:
                BED_BLOCK: 10.0
        Gardener:
            ChatColour: GREEN
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                RED_ROSE: -2.0
                YELLOW_FLOWER: -2.0
                SAPLING: -2.0
            Place:
                SAPLING: 2.0
                RED_ROSE: 3.0
                YELLOW_FLOWER: 3.0
    # Create titles
    # to create a title, they must follow this patter.
    # Titles:
    #     [Title Name]:
    #         ChatColour: [ChatColor]
    #         levelReq : [Integer]
    #
    # NOTE: levelReq must be the lowest level you can be to gain this title. It is recommended
    # but not neccessary to have a title at 0.
    Titles:
        0-30:
            ChatColour: WHITE
            levelReq: 0
        30-60:
            ChatColour: GRAY
            levelReq: 30
        60-90:
            ChatColour: GOLD
            levelReq: 60
        Master:
            ChatColour: BLACK
            levelReq: 90

    thx if you can help
     
  6. Offline

    Noffletoff

    I too am having a problem with not being paid for the job I have selected, I get this error.

    Code:
    2011-05-06 17:32:27 [SEVERE] java.lang.NullPointerException
    2011-05-06 17:32:27 [SEVERE]     at me.alex.jobs.Jobs.onEnable(Jobs.java:195)
    2011-05-06 17:32:27 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    2011-05-06 17:32:27 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:632)
    2011-05-06 17:32:27 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
    2011-05-06 17:32:27 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
    2011-05-06 17:32:27 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
    2011-05-06 17:32:27 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
    2011-05-06 17:32:27 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
    2011-05-06 17:32:27 [SEVERE]     at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
    2011-05-06 17:32:27 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
    2011-05-06 17:32:27 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    2011-05-06 17:32:27 [INFO] Jobs not started, there's an error with the configuration
    
    Here's my Config, I am running Iconomy 4.65, Jobs 1.3.2b Bukkit 740

    Show Spoiler
    Code:
    # storage method, can be MySQL, sqlite, flatfile
    storage-method: MySQL
    
    # Requires Mysql.
    mysql-username: root
    mysql-password: hmAL1uan0Q
    mysql-database: minecraft
    mysql-url: jdbc:mysql://localhost:3306/
    sqlite-url: jdbc:sqlite:test.db
    
    # base experience needed to level up from level 1 to 2
    # experience to level up is base-exp*(1+levelingProgressionRate)^level
    base-exp: 100
    
    # mutiplier for xp. xp-multiplyer*jobPay = experience
    xp-multiplyer: 1.0
    
    # choose the prefix in chat- full = job and skill level, skill = skill level only,
    # job = job level only, none = no prefix
    chat-display: none
    
    # choose to broadcast when the user goes up a skill rank to everyone
    broadcast-skill-up: false
    
    # How often in minutes you want it to save, 0 disables periodic saving and 
    # the system will only save on logout
    save-period: 10
    
    # money you get paid for any block placed or destroyed not in the list for your job
    flat-rate-payout: 0.0
    
    # Create Jobs
    # All jobs must follow this framework, <...> means optional
    #
    # Jobs:
    #     [NAME]
    #         ChatColour: [COLOUR]
    #         levelingProgressionRate: [double]
    #         incomeProgressionRate: [double]
    #         Break:
    #             <object_name: [price]>
    #             ...
    #             <object_name: [price]>
    #         Place:
    #             <object_name: [price]>
    #             ...
    #             <object_name: [price]>
    #         Kill:
    #             <creature_name: [price]>
    #             ...
    #             <creature_name: [price]>
    #
    # * In the break section they users will be given or subtracted money on breaking the object.
    # * In the place section they users will be given or subtracted money on placing the object.
    # * In the kill section they users will be given or subtracted money on killing a creature.
    # * levelingProgressionRate is the rate at which the experience required to get to the next
    # level increases between levels.
    # * incomeProgressionRate is the rate at which the money gained per item.
    # * ChatColour is the colour of the title.
    #
    # NOTE: the object name must be exactly what the material is in the code. e.g:
    # cobblestone      -> COBBLESTONE
    # diamond ore      -> DIAMOND_ORE
    # tree trunks(any) -> LOG
    # wooden boards    -> WOOD
    #
    Jobs:
        Lumberjack:
            ChatColour: WHITE
            levelingProgressionRate: 0.13
            incomeProgressionRate: 0.05
            Break:
                LOG: 2.0
                SAPLING: -1.0
            Place:
                SAPLING: 1.0
                WOOD: 0.5
        Miner:
            ChatColour: WHITE
            levelingProgressionRate: 0.13
            incomeProgressionRate: 0.05
            Break:
                STONE: 1.0
                COAL_ORE: 2.5
                REDSTONE_ORE: 4.0
                IRON_ORE: 3.0
                GOLD_ORE: 5.0
                LAPIS_ORE: 5.0
                DIAMOND_ORE: 6.0
                OBSIDIAN: 7.5
            Place:
                IRON_ORE: -5.0
                GOLD_ORE: -6.0
        Builder:
            ChatColour: WHITE
            levelingProgressionRate: 0.13
            incomeProgressionRate: 0.05
            Place:
                COBBLESTONE: 1.0
                STONE: 3.0
                GLASS: 2.5
                BRICK: 5.0
                POWERED_RAIL: 7.5
                DETECTOR_RAIL: 5.0
                RAILS: 2.0
                SANDSTONE: 2.0
        Digger:
            ChatColour: WHITE
            levelingProgressionRate: 0.13
            incomeProgressionRate: 0.05
            Break:
                DIRT: 1.0
                GRASS: 1.0
                GRAVEL: 1.0
                SAND: 1.0
        Farmer:
            ChatColour: WHITE
            levelingProgressionRate: 0.13
            incomeProgressionRate: 0.05
            Break:
                YELLOW_FLOWER: 0.5
                RED_ROSE: 0.5
                BROWN_MUSHROOM: 2.0
                RED_MUSHROOM: 2.0
                CROPS: 0.5
                PUMPKIN: 3.0
                CACTUS: 1.0
                SUGAR_CANE_BLOCK: 1.0
            Place:
                CROPS: 0.5
                YELLOW_FLOWER: -1.0
                RED_ROSE: -1.0
                BROWN_MUSHROOM: -2.0
                RED_MUSHROOM: -2.0
                CACTUS: 1.0
                SUGAR_CANE_BLOCK: 1.0
        Hunter:
            ChatColour: WHITE
            levelingProgressionRate: 0.13
            incomeProgressionRate: 0.05
            Kill:
                Chicken: 25.0
                Cow: 30.0
                Sheep: 25.0
                Pig: 20.0
                Squid: 10.0
        Slayer:
            ChatColour: WHITE
            levelingProgressionRate: 0.13
            incomeProgressionRate: 0.05
            Kill:
                Creeper: 35.0
                Skeleton: 25.0
                Spider: 20.0
                Zombie: 20.0
                PigZombie: 10.0
                Ghast: 75.0
    
     
  7. Offline

    TheBeast808

    In my sever, everyone can join jobs/browse them/get info perfectly. However, when they try to actually do their job, such as breaking wood, they never get paid or gain xp. Can anyone help me? Idk why it's not working. I'm running v1.3.3 and I have iConomy 5.0
     
  8. Offline

    HadrienM

    Hunter who hunt mobs and kill them with a bow don't get paid :/
     
  9. Offline

    Crimsonfox

    Love the plugin, good fun and adds another dimension to the game.

    I do have a feature request (which I guess I'll post on SourceForge as well). It would be nice if players could setup a job (Something like /job create p;<id>:<amount>,<id2>:<amount> b: k:) and for the money rather than be simply granted to the player from the server, come from the player that setup the job. Possibly with options to set such as limits to the amount of money that one person can earn, the amount of material that can be gathered or whether the job creator has to be online or not. The only problem I forsee in that is how to get the materials from the gatherer to the payer, maybe to a specialised chest, straight to their inventory or possibly using a /transfer command to end the job.

    It's a fairly big request but it would definitely be interesting to see in a plugin. =)
     
  10. Offline

    Galaxy

    @flametornado

    Code:
    2011-05-06 16:06:21 [SEVERE] Could not pass event PLUGIN_ENABLE to Jobs
    java.lang.NoClassDefFoundError: com/nijiko/coelho/iConomy/iConomy
    at me.alex.jobs.PluginListener.onPluginEnable(PluginListener.java:25)
    at org.bukkit.plugin.java.JavaPluginLoader$34.execute(JavaPluginLoader.java:408)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:633)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    What is this and how do I fix it?
     
  11. Offline

    Theotherguyyyyy

    Whenever I try to use a /jobs join /jobs stats /jobs info it only shows the help message but /jobs browse works fine.

    Maybe something is wrong with my config

    Code:
    # storage method, can be MySQL, sqlite, flatfile[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]storage-method: flatfile[/FONT][/COLOR]
    
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]# Requires Mysql.[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]mysql-username: root[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]mysql-password:[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]mysql-database: minecraft[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]mysql-url: jdbc:mysql://localhost:3306/[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]sqlite-url: jdbc:sqlite:test.db[/FONT][/COLOR]
    
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]# base experience needed to level up from level 1 to 2[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]# experience to level up is base-exp*(1+levelingProgressionRate)^level[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]base-exp: 100[/FONT][/COLOR]
    
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]# mutiplier for xp. xp-multiplyer*jobPay = experience[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]xp-multiplyer: 1.0[/FONT][/COLOR]
    
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]# choose the prefix in chat- full = job and skill level, skill = skill level only,[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]# job = job level only, none = no prefix[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]chat-display: full[/FONT][/COLOR]
    
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]# choose to broadcast when the user goes up a skill rank to everyone[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]broadcast-skill-up: true[/FONT][/COLOR]
    
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]# How often in minutes you want it to save, 0 disables periodic saving and[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]# the system will only save on logout[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]save-period: 5[/FONT][/COLOR]
    
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]# money you get paid for any block placed or destroyed not in the list for your job[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]flat-rate-payout: 0.0[/FONT][/COLOR]
    
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]# Create Jobs[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]# All jobs must follow this framework, <...> means optional[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]#[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]# Jobs:[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]#    [NAME][/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]#        ChatColour: [COLOUR][/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]#        levelingProgressionRate: [double][/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]#        incomeProgressionRate: [double][/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]#        Break:[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]#            <object_name: [price]>[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]#            ...[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]#            <object_name: [price]>[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]#        Place:[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]#            <object_name: [price]>[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]#            ...[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]#            <object_name: [price]>[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]#        Kill:[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]#            <creature_name: [price]>[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]#            ...[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]#            <creature_name: [price]>[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]#[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]# * In the break section they users will be given or subtracted money on breaking the object.[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]# * In the place section they users will be given or subtracted money on placing the object.[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]# * In the kill section they users will be given or subtracted money on killing a creature.[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]# * levelingProgressionRate is the rate at which the experience required to get to the next[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]# level increases between levels.[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]# * incomeProgressionRate is the rate at which the money gained per item.[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]# * ChatColour is the colour of the title.[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]#[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]# NOTE: the object name must be exactly what the material is in the code. e.g:[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]# cobblestone      -> COBBLESTONE[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]# diamond ore      -> DIAMOND_ORE[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]# tree trunks(any) -> LOG[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]# wooden boards    -> WOOD[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]#[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]Jobs:[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]    Woodcutter:[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]        ChatColour: GREEN[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]        levelingProgressionRate: 0.15[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]        incomeProgressionRate: 0.05[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]        Break:[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            LOG: 4.5[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]        Place:[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            SAPLING: 1.0[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]    Miner:[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]        ChatColour: DARK_GRAY[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]        levelingProgressionRate: 0.15[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]        incomeProgressionRate: 0.05[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]        Break:[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            STONE: 1.0[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            COAL_ORE: 4.0[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            REDSTONE_ORE: 7.0[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            IRON_ORE: 6.0[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            GOLD_ORE: 8.0[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            LAPIS_ORE: 10.0[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            DIAMOND_ORE: 14.0[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            OBSIDIAN: 10.0[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]        Place:[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            RAILS: 0.5[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            IRON_ORE: -7.0[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            GOLD_ORE: -9.0[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]    Builder:[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]        ChatColour: WHITE[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]        levelingProgressionRate: 0.15[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]        incomeProgressionRate: 0.05[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]        Place:[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            COBBLESTONE: 1.0[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            STONE: 2.0[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            GLASS: 5.0[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            BRICK: 7.0[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            LOG: 1.0[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            WOOD: 0.5[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]    Digger:[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]        ChatColour: YELLOW[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]        levelingProgressionRate: 0.15[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]        incomeProgressionRate: 0.05[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]        Break:[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            DIRT: 1.0[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            GRASS: 1.0[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            GRAVEL: 2.0[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            SAND: 2.0[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]    Hunter:[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]        ChatColour: RED[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]        levelingProgressionRate: 0.15[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]        incomeProgressionRate: 0.05[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]        Kill:[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            Chicken: 0.5[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            Cow: 1.0[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            Pig: 1.5[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            Wolf: -2.0[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            Creeper: 4.0[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            Skeleton: 3.0[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            Spider: 2.5[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            Zombie: 2.0[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            PigZombie: 5.0[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            Squid: 1.0[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            Ghast: 50.0[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]            Slime: 1.5[/FONT][/COLOR]
    
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]# Create titles[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]# to create a title, they must follow this patter.[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]# Titles:[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]#    [Title Name]:[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]#        ChatColour: [ChatColor][/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]#        levelReq : [Integer][/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]#[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]# NOTE: levelReq must be the lowest level you can be to gain this title. It is recommended[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]# but not neccessary to have a title at 0.[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]Titles:[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]    Apprentice:[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]        ChatColour: WHITE[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]        levelReq: 0[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]    Novice:[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]        ChatColour: GRAY[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]        levelReq: 30[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]    Journeyman:[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]        ChatColour: GOLD[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]        levelReq: 60[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]    Master:[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]        ChatColour: BLACK[/FONT][/COLOR]
    [COLOR=rgb(20, 20, 20)][FONT=Georgia]        levelReq: 90


    Do you know what is wrong[/CODE][/FONT][/COLOR]
     
  12. Offline

    flametornado

    Yes, but grinding like that gets very boring very quick.

    all of the saved data is either in a file or in the database, anyone could read the data if they wanted to.

    Creeper is missing a ':' sugar cane has to be sugar cane block and wheat has to be crops

    It's possible, but due to the balancing required, and the complexity of the configuration, it'd be better if the server creates the jobs and if people want jobs to make a request to the server admins.

    Wrong iConomy, jobs combination. make sure you have the right combination.

    You have no titles. sadly it can't handle no titles yet.

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

    Galaxy

    @flametornado

    please explain I am confused which version of your jobs do I use I am using iConomy 5.0
     
  14. Offline

    flametornado

    1.3.3b
     
  15. Offline

    Galaxy

    @flametornado I am though that is the thing :/ I will reinstall it really quick but if it still does not work then I will ask for some thing else to try,
     
  16. Offline

    RustyDagger

    @Flame I had a very Bright idea last night You know how you said you did not want to log every block change to prevent Cheating Well there's a way to Prevent cheating with out you doing all the hard work.

    You see there are already plugins around that log every block change to prevent greifing. You could simpaly interface with their DB and run a check to see if they recently placed that block.

    I personally Use Log Block with a MYSQL Database And Would love for this to be added It would mean I Could prevent Cheating with out punishing those doing the right thing. (with say -money for placing)

    Please consider adding this :)
     
  17. Offline

    flametornado

    The problem with doing something like this isn't how much effort it'd take to implement it's how much overhead it's going to cause. Let me give you some examples

    Option 1: blocks stored until server resets - problem with this is that the blocks will get reset when the server resets (which is usually pretty often, I reset my server once a day). Also during that day, thousands if not tens or hundreds of thousands of blocks could be placed (esp on a large server). This would mean that every time a block is broken, my plugin would have to go through all those blocks to see if someone's farming.

    Option 2: keep player placed blocks somewhere - has all of the performance problems for option 1 and on top of that, it'll take a large amount of storage space to store the block information.

    I really don't want to kill performance and i want to make it as light as possible.

    Also, i had a look at log block. All it does is stores the blocks changed over a period of time (which would add a little bit of overhead) but it doesn't do the check every time a break event occurs.

    In conclusion, If you wanted something like this. You would have to go through thousands of blocks to make sure you didn't pay out a player placed block and this would cause considerable lag on medium servers and unplayable block lag on large servers.
     
  18. Offline

    RustyDagger

    My MYSQL Is not on my Minecraft server So you can Check that as much as You need with out effecting my server
    Yes your plugin would use some more CPU or W/E but thats what you make it a setting Not Force every one to use it.

    The connection from my Mysql to my server is insanly fast and LogBlock has about 1/4 second to write to it and then me question the DB its not Slow in any way In short My server could handle it cake.

    Ontop of what i just said Logblock Cleans its self every day So that the DB is kept Small But still Effeciant To catch greifers.

    Yes logblock dose not check the whole DB every time because it is adding to the data not searching it But it can search it very fast with its tools (stick and bedrock)
     
  19. Offline

    ripzeus

    Hello,
    I'm kinda new to this and i got everything working for jobs.
    But i am having this one problem, and it's only when people log in.
    I am running Bukkit 740 iConomy 4.6 along with Levelcraft and AuthMe all running MySQL in there own DB's. Please show me what could be wrong.
    Thank you
    EDIT: I have come across something odd, in the config file, if the DB selection is MySQL it does not work, if it set to mysql, it does work but still breaks at the "when people login" part.
    Also It does not matter what version i use, be it 4.6 or 5, the error is the same.
    EDIT: I have also come across another issue, or rather "fix" I guess. If i put the config file in to flatfile and not MySQL, jobs works flawlessly. So it seems there is a MySQL disconnect. My brain hurts now lol
    .
    22:05:02 [SEVERE] Could not pass event PLAYER_JOIN to Jobs
    java.lang.NullPointerException
    at me.alex.jobs.Jobs.addPlayer(Jobs.java:353)
    at me.alex.jobs.JobsPlayerListener.onPlayerJoin(JobsPlayerListener.java:
    15)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:206)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:257)
    at net.minecraft.server.ServerConfigurationManager.a(ServerConfiguration
    Manager.java:94)
    at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:95)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:74)
    at net.minecraft.server.Packet1Login.a(SourceFile:43)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:40)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:87)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    .
    EDIT: This is when the server starts.
    .
    22:12:14 [INFO] [iConomy] Logging is currently disabled.
    22:12:14 [INFO] [iConomy] v4.65 (Kenzi) loaded.
    22:12:14 [INFO] [iConomy] Developed by: [Nijikokun, Coelho]
    22:12:14 [INFO] [BankAccount] Running interest every 5 minutes by 0.1%
    22:12:14 [INFO] [BankAccount] Established connection with iConomy!
    22:12:14 [INFO] Jobs started
    22:12:14 [INFO] [Jobs] Successfully linked with iConomy.
     
  20. Offline

    flametornado

    The option of MySQL does work. I can guarantee that, since I uses it all the time. My best bet is that there's some problem in the setup of the database and it has problems.
     
  21. Offline

    Ross Gosling

    If source forge is now Development and Bugs is this now just sorting out peoples problems??
     
  22. Offline

    flametornado

    That and discussions I guess. I'll probe also do progress reports here too.
     
  23. Offline

    Ross Gosling

    oh ok
     
  24. Offline

    thernztrom

    Hello!

    After I added a new job, assassain, it says on console there is something wrong with the config file, and the job wont show up in-game.
    I checked it in a yml parser, but it shows that nothing is wrong.
    I use mysql, and it and all other functions in the plugins works as usual, just that the job I added wont show.
    The config looks like this:
    Code:
    # storage method, can be MySQL, sqlite, flatfile
    storage-method: MySQL
    
    # Requires Mysql.
    mysql-username: *****
    mysql-password: *****
    mysql-database: *****
    mysql-url: jdbc:mysql://*****:3306/
    sqlite-url: jdbc:sqlite:test.db
    
    # base experience needed to level up from level 1 to 2
    # experience to level up is base-exp*(1+levelingProgressionRate)^level
    base-exp: 100
    
    # mutiplier for xp. xp-multiplyer*jobPay = experience
    xp-multiplyer: 1.0
    
    # choose the prefix in chat- full = job and skill level, skill = skill level only,
    # job = job level only, none = no prefix
    chat-display: none
    
    # choose to broadcast when the user goes up a skill rank to everyone
    broadcast-skill-up: true
    
    # How often in minutes you want it to save, 0 disables periodic saving and
    # the system will only save on logout
    save-period: 15
    
    # money you get paid for any block placed or destroyed not in the list for your job
    flat-rate-payout: 0.0
    
    # Create Jobs
    # All jobs must follow this framework, <...> means optional
    #
    # Jobs:
    #     [NAME]
    #         ChatColour: [COLOUR]
    #         levelingProgressionRate: [double]
    #         incomeProgressionRate: [double]
    #         Break:
    #             <object_name: [price]>
    #             ...
    #             <object_name: [price]>
    #         Place:
    #             <object_name: [price]>
    #             ...
    #             <object_name: [price]>
    #         Kill:
    #             <creature_name: [price]>
    #             ...
    #             <creature_name: [price]>
    #
    # * In the break section they users will be given or subtracted money on breaking the object.
    # * In the place section they users will be given or subtracted money on placing the object.
    # * In the kill section they users will be given or subtracted money on killing a creature.
    # * levelingProgressionRate is the rate at which the experience required to get to the next
    # level increases between levels.
    # * incomeProgressionRate is the rate at which the money gained per item.
    # * ChatColour is the colour of the title.
    #
    # NOTE: the object name must be exactly what the material is in the code. e.g:
    # cobblestone      -> COBBLESTONE
    # diamond ore      -> DIAMOND_ORE
    # tree trunks(any) -> LOG
    # wooden boards    -> WOOD
    #
    Jobs:
        Woodcutter:
            ChatColour: GREEN
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                LOG: 3.0
            Place:
                SAPLING: 1.0
                WOOD: 2.0
        Miner:
            ChatColour: DARK_GRAY
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                STONE: 2.0
                COAL_ORE: 3.0
                REDSTONE_ORE: 3.0
                IRON_ORE: 4.0
                GOLD_ORE: 5.0
                LAPIS_ORE: 5.0
                DIAMOND_ORE: 6.0
                OBSIDIAN: 7.5
                MOSSY_COBBLESTONE: 4.0
            Place:
                RAILS: 1.0
                IRON_ORE: -5.0
                GOLD_ORE: -6.0
        Builder:
            ChatColour: WHITE
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Place:
                COBBLESTONE: 1.0
                STONE: 2.0
                GLASS: 3.0
                BRICK: 5.0
                GLOWSTONE: 4.0
        Digger:
            ChatColour: YELLOW
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                DIRT: 2.0
                GRASS: 2.0
                GRAVEL: 2.0
                SAND: 2.0
        Assassin:
            ChatColour: BLUE
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                MOSSY_COBBLESTONE: 3.0
            Kill:
                Creeper: 4.0
                Skeleton: 4.0
                Spider: 4.0
                Zombie: 5.0
                Ghast: 5.0
                Pigzombie: 7.0
    # Create titles
    # to create a title, they must follow this patter.
    # Titles:
    #     [Title Name]:
    #         ChatColour: [ChatColor]
    #         levelReq : [Integer]
    #
    # NOTE: levelReq must be the lowest level you can be to gain this title. It is recommended
    # but not neccessary to have a title at 0.
    Titles:
        Newb:
            ChatColour: WHITE
            levelReq: 0
        Novice:
            ChatColour: GRAY
            levelReq: 30
        Professional:
            ChatColour: GOLD
            levelReq: 60
        Master:
            ChatColour: BLACK
            levelReq: 90
    Thanks!
     
  25. Offline

    GmK

    I recommend checking the CaSe-Sensitivity of those mobs in the Asassin entry - you'll find your reason ;)

    @flametornado

    Am getting this huge stack when trying to do /jobs join <xy> - all other MySQL plugins work fine:

    What tables is it using/creating? Maybe it conflicts with another plugin. Appreciated!

    Code:
    2011-05-07 18:23:04 [SEVERE] com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'username' in 'field list'
    2011-05-07 18:23:04 [SEVERE] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2011-05-07 18:23:04 [SEVERE] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    2011-05-07 18:23:04 [SEVERE] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    2011-05-07 18:23:04 [SEVERE] at java.lang.reflect.Constructor.newInstance(Constructor.java:530)
    2011-05-07 18:23:04 [SEVERE] at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
    2011-05-07 18:23:04 [SEVERE] at com.mysql.jdbc.Util.getInstance(Util.java:381)
    2011-05-07 18:23:04 [SEVERE] at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1030)
    2011-05-07 18:23:04 [SEVERE] at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
    2011-05-07 18:23:04 [SEVERE] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3491)
    2011-05-07 18:23:04 [SEVERE] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3423)
    2011-05-07 18:23:04 [SEVERE] at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1936)
    2011-05-07 18:23:04 [SEVERE] at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2060)
    2011-05-07 18:23:04 [SEVERE] at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2542)
    2011-05-07 18:23:04 [SEVERE] at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1734)
    2011-05-07 18:23:04 [SEVERE] at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2019)
    2011-05-07 18:23:04 [SEVERE] at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1937)
    2011-05-07 18:23:04 [SEVERE] at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1922)
    2011-05-07 18:23:04 [SEVERE] at me.alex.jobs.dao.MySQLJobsDAO.changeJob(MySQLJobsDAO.java:120)
    2011-05-07 18:23:04 [SEVERE] at me.alex.jobs.Jobs.onCommand(Jobs.java:289)
    2011-05-07 18:23:04 [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    2011-05-07 18:23:04 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
    2011-05-07 18:23:04 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:278)
    2011-05-07 18:23:04 [SEVERE] at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:677)
    2011-05-07 18:23:04 [SEVERE] at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:640)
    2011-05-07 18:23:04 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:634)
    2011-05-07 18:23:04 [SEVERE] at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    2011-05-07 18:23:04 [SEVERE] at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
    2011-05-07 18:23:04 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
    2011-05-07 18:23:04 [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    2011-05-07 18:23:04 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
    2011-05-07 18:23:04 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    2011-05-07 18:23:04 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  26. Offline

    ripzeus

    ^^ I wish i had your problem, hehehe, Jobs for me doesn't even create tables, it only creates the Schema, and say FU after that lol.

    Ok, I am scratching my head here heheh.
    I did this for shits and giggles, I changed the config to sqlite, and in the load of server it says
    [INFO] Jobs started.
    [INFO] [Jobs] Successfully linked with iConomy.
    .
    This happens no matter what put in the storage-method, and kick me in the nuts silly, if i put in MySQL or MySql anything other than mysql, it errors out.
    Everything else on the MySQL server works flawlessly, and I am running an IM service, 4 websites, and every other minecraft mysql attached plugin that can run mysql, there is something wrong with the plugin, and I can't seem to find where.

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

    minimanmaxi

    hi there
    its not working for me, the jobs dont show up or allow me to join them.
    i just installed it and dont know what to do can someone help

    also how do i make more classes once these are working [fire]
     
  28. Offline

    Brooksie

    Sorry for this really noob question, but is it possible to quit a job?
     
  29. Offline

    pla031

    Is it possible to leave some job?
     
  30. Offline

    AndyP

    Hell0!
    Cool Mod!
    But I do have a problem:


    As you can see,I created 2 more Jobs.
    But if I enter the game ,only the 2 unchanged Jobs show up(Miner,Woodcutter)
    What did I wrong? =(

    AndyP
     
  31. Offline

    gumball3000

    A few things should be added to this plugin: A setting to change the color of the name in chat, setting to only allow users to change their job at level 2 or 3
     
Thread Status:
Not open for further replies.

Share This Page