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

    ripzeus

    I wonder what is causing the problem.
    Like i have stated, i have TRIED EVERYTHING in the config file.
    It works when in flatfile, but i want mysql lol
    gah, lol.
    (hair pull)
     
  3. Offline

    flametornado

    There's something wrong with your mysql setup. It def works for me right now.
    And i run x64 too. both windows and linux.
     
  4. Offline

    ripzeus

    Can you PM me your MySQL setup? what engine you running? What versions you running?
    MySQL works fine for everything else, but jobs is the only plugin i have come across that doesn't even talk to mysql.
     
  5. Offline

    flametornado

    on windows i use stock wamp and on linux stock mysql.

    no modifications done to them whatsoever.

    Logging in as root with no password.
     
  6. Offline

    ripzeus

    Hmmmmmm what version? 5.5?
    And i'm doing a password. Hmmm
     
  7. Offline

    c97hristian

    Wont work :(
     
  8. Offline

    Anakis

    Ok but * what are the permissions of the plugin except : jobs.job.NAMEOFJOB?
    * I can give a permission for a group but not for only a person, it's normally ?
    (please can you answer my two questions? )
     
  9. Offline

    seaturtle

    i'm on ubuntu and i can't un-rar things.
     
  10. Offline

    ripzeus

    Here are some links to an RAR for linux you ass.
    Do some googling next time.
    http://www.rarlab.com/download.htm
    http://packages.debian.org/sid/p7zip-full

    I got it working... It seems it has to do with the password, you put in a password it gets all stupid.
    remove the password, boom chicka chicka it works. Wrote the table and everything.
    Tested this creating two new accounts in MySQL.
    Jobs with no PW = worked
    Test with password = failed.
    Switched them around and Jobs failed and test worked.
    I wonder if something is wrong with the plugin for the PW.

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

    TheBeast808

    I can only get this semi-working. It lets people join jobs and use the commands, but it never actually pays them or gives them experience for their jobs. Can anyone tell me the problem? I have iConomy 5.0
    Code:
    # storage method, can be MySQL, sqlite, flatfile
    storage-method: flatfile
    # 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: 10
    
    # money you get paid for any block placed or destroyed not in the list for your job
    flat-rate-payout: 0.0
    
    # Create Jobs
    # All jobs must follow this framework, <...> means optional
    #
    # Jobs:
    #     [NAME]
    #         ChatColour: [COLOUR]
    #         levelingProgressionRate: [double]
    #         incomeProgressionRate: [double]
    #         Break:
    #             <object_name: [price]>
    #             ...
    #             <object_name: [price]>
    #         Place:
    #             <object_name: [price]>
    #             ...
    #             <object_name: [price]>
    #         Kill:
    #             <creature_name: [price]>
    #             ...
    #             <creature_name: [price]>
    #
    # * In the break section they users will be given or subtracted money on breaking the object.
    # * In the place section they users will be given or subtracted money on placing the object.
    # * In the kill section they users will be given or subtracted money on killing a creature.
    # * levelingProgressionRate is the rate at which the experience required to get to the next
    # level increases between levels.
    # * incomeProgressionRate is the rate at which the money gained per item.
    # * ChatColour is the colour of the title.
    #
    # NOTE: the object name must be exactly what the material is in the code. e.g:
    # cobblestone      -> COBBLESTONE
    # diamond ore      -> DIAMOND_ORE
    # tree trunks(any) -> LOG
    # wooden boards    -> WOOD
    #
    Jobs:
        Woodcutter:
            ChatColour: GREEN
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                LOG: .2
            Place:
                SAPLING: .2
        Miner:
            ChatColour: DARK_GRAY
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                STONE: .1
                COAL_ORE: 1.0
                REDSTONE_ORE: 3.0
                IRON_ORE: 4.0
                GOLD_ORE: 5.0
                LAPIS_ORE: 5.0
                DIAMOND_ORE: 6.0
                OBSIDIAN: 4.5
            Place:
                RAILS: 2.0
                IRON_ORE: -5.0
                GOLD_ORE: -6.0
        Digger:
            ChatColour: YELLOW
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                DIRT: .1
                GRASS: .1
                GRAVEL: .1
                SAND: .1
        Slayer:
            ChatColour: BLACK
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Kill:
                Wolf: 5
                Creeper: 10
                Skeleton: 10
                Spider: 10
                Zombie: 10
                Slime: 10
        Hunter:
            ChatColour: BLACK
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Kill:
                Chicken: 2
                Cow: 2
                Pig: 2
                Sheep: 2
                Squid: 2
    # 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
     
  12. Offline

    Anakis

    I think that my problem is : My server has 3 maps, and maybe the plugin doesn't support.
     
  13. Offline

    JellySquirrel

    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
        Terrorist:
            ChatColour: WHITE
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                CHEST: 2.0
            Place:
                TNT: 5.5
            Kill:
                Erikoisjoukot: 0.50
                SG-Team 0.40:
                Citizen 0.60:
        SG-Team:
            Chatcolour: DARK-GRAY
            levelingProgressionRate: 0.40
            incomeProgressuionRate: 0.10
            Break:
                OBSIDIAN: 0.50
            Place:
                OBSIDIAN: 1.0
                SIGN: 0.30
            Kill:
                Terrorist: 1.0
                Zombie: 0.30
                Creeper: 0.60
                Skeleton: 0.40
                Spider: 0.50
        Specialforces:
            Chatcolour: BLUE
            levelingProgressionRate: 0.40
            incomeProgressionrate: 0.10
            Break:
                TNT: 3.0
            Kill:
                Terrorist: 1.0
                Zombie: 0.30
                Creeper: 0.60
                Skeleton: 0.40
                Spider:0.50
        Slayer:
            Chatcolour: BLACK
            levelingProgressionRate: 0.50
            incomeProgressionrate: 0.50
            Kill:
                Zombie: 0.50
                Pig: 0.20
                Creeper: 0.90
                Skeleton: 0.50
                Slime: 10.00
                Ghast: 0.50
                PigZombie: 0.20
                Cow 0.10:
                Spider: 0.20
                Giant: 0.40
        Farmer:
            ChatColour: PINK
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                CROPS: 3.0
                SUGAR_CANE_BLOCK: 2.0
            Place:
                SEEDS: 2.0
                SUGER_CANE_BLOCK: 1.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
    
    Why doesn't this work :eek:
    Added 5 more jobs
     
  14. Offline

    Rando Paas

    How can I increase peoples jobs levels? Somehow people lost their jobs lvls when I added a "grandmaster" rank for lvl 100
     
  15. Offline

    Windows_i7_920

    No reason to be rude, maybe he's new to Ubuntu?

    Also, Ubuntu has a software center, go into that and search for an archive manager. Typing in RAR, ZIP, etc into the search should do it. Then just install it. Easiest way with Ubuntu. Also, I thought Ubuntu had an archive manager that comes with it that supports RARs?
     
  16. Offline

    flametornado


    Those permissions are the only ones.

    You can give permissions for a group and for one person. (permissions supports both)



    @ripzeus, be nice.
    @seaturtle https://help.ubuntu.com/community/File Roller
    do "sudo apt-get intsall unrar-free" and you should get the rar package for the defualt archive manager.



    I changed mine to a simple password of pass and it works fine. Did you have any weird characters in your password? Yml has issues with some characters (it's been giving me problems with german characters)



    That is an invalid configuration file. the killing animals tags need decimal points.


    "Cow 0.10:" - needs fixing
    "Spider:0.50" - needs space
    "Erikoisjoukot: 0.50" - doesn't exist as a monster class and can't set kill tags on custom classes yet.
    "SG-Team 0.40:" - needs fixing and same problem as above/
    "Citizen 0.60:" - same as above
    "Terorist: 1.0" - same as above
    "DARK-GRAY" - needs to be DARK_GRAY
    "PINK" - doesn't exist as a colour to minecraft
     
  17. Offline

    ripzeus

    Nope just numbers as my PW, wanted to make it quick and easy. I donno, it's just odd. Either way i made a new account with no pw and put it in it's own schema so it didn't conflict with LWC.
    All is working, both iConomy 4.6 and 5.0 with Jobs 1.3.3 and 1.3.2
    I will do more testing a little later to see what is causing this hiccup.
     
  18. Offline

    Ross Gosling

    When will the next major update take place and what new features are you planning?
     
  19. Offline

    flametornado

    The next update will be in a week or two. probably after the next bukkit update. I'm re-writing everything from the ground up with a better design and including most of the feature request if not all.

    I might have a WIP version up for people who want to see the new version as it's being developed (and help me find bugs :p)
     
  20. Offline

    jlu

    Someone can help me please..? No jobs appear with /jobs browse; Where is my fault?

    Thx for helping guise. :)

     
  21. Offline

    WindTag

    Your config file is so insanely disorganized that I can't edit it without squinting. Trying to organize it results in it becomming unreadable.

    It's supposed to look like this:

    # 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
    # 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

    But instead, when I first open the file, it doesn't have any spaces or enter keys. I couldn't even copy it into this window the way it appears in my config file, and trying to edit it, even copying the one you provide, causes it to become unreadable and make the plugin not load.

    Trying to edit it in anything but Notepad (I.E. WordPerfect) won't let me save it without altering the filetype.
     
  22. Offline

    flametornado

    use notepad++ for editing.

    The config file is getting split into 4 in the next update and the config file needs to be complicated sadly :(. That's the downside of the flexibility it offers.
     
  23. Offline

    WindTag

    Thank you for the reply, I didn't expect it to be so fast. ^^
     
  24. Offline

    Aiquen

    hello again, Flametornado
    we're using
    Code:
    increaseExperience((int)(income/Math.abs(income)) * xpMultiplyer);
    at getXXXincome() functions

    and
    Code:
    maxExp = (int)(baseXp * Math.pow(level, increaseExpPerLevel));
    at increaseExperience() funcion (incraseExpPerLevel is set on 1.xx values, of course)..

    That's giving better results of leveling setting imo... just for thinking :)
     
  25. Offline

    Ross Gosling

    ok, so pretty much every request in a few weeks, good good
     
  26. Offline

    flametornado

    Thanks,
    In the next version, there'll be a section in each job for you to put in an equation for leveling, income (both exp and money)

    Exp and income have also been separated in the next version so each block will have an income section and an exp section.
     
  27. Offline

    Rando Paas

    Hello mr. flametornado,

    As my previous inquiry was ignored I shall attempt another one which I will present in a more adult fashion.
    There seems to be some sort of problem with your plug-in on my server. Every time I alter the config.yml with, I dare say not Notepad++, but with Notepad, all the levels of jobs will be reset to zero and players have to rejoin a said job. Other then that, everything works just fine. The real question here is - how do I alter job levels of players ?
    I am looking forward to your answer.

    Yours sincerely,
    R. Paas
     
  28. Offline

    flametornado

    Sorry, must of missed your message. To alter the jobs of players, you have to do it manually when they are not in the server right now. From the next version on, admins will be able to grant levels to players.

    Also, changing the config should in no way reset the player levels to 0. I've done it many times and it's fine. What i assume has happened is that you have changed the name of the job, and because the linking between person and job is done on the job name, the database does not find a job that is valid (e.g. in the config file) and does not give the person that job.

    If this isn't the case, please upload two configurations, one pre and one post and i'll see what the problem could be.
     
  29. Offline

    Rando Paas

    I'll quickly add this here, what part of these numbers do I change in order to change the level?

     
  30. Offline

    flametornado

    Player:jobExp:jobLevel:jobName
     
  31. Offline

    Rando Paas

    That did the trick! Thank you!
     
Thread Status:
Not open for further replies.

Share This Page