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

    drats666

    the default config file looks nothing like the provided config file on the site. changing the config file to match it makes the system not work. the config file only looks like that if opened with microsoft word, but when you save it with microsoft word, it messes it up. -.- this needs to be fixed to make editing jobs easily. otherwise it comes out as several massive runon lines in notepad.
     
  3. Offline

    GmK

    Uh....you should know that you should *always* use Notepad++ when editing .yml files on windows? Thats like the very basic most important knowledge about Bukkit.
     
  4. Offline

    drats666

    than it looks nothing like the config file on this site. there was more to the post than using office, suggest you read it again.

    also seems,
    • /jobs fire [playername] [job]
    • /jobs employ [playername] [job]
    • /jobs promote [playername] [job] [levels]
    • /jobs demote [playername] [job] [levels]
    • /jobs grantxp [playername] [job] [experience]
    • /jobs removexp [playername] [job] [experience]
    • /jobs transfer [playername] [oldjob] [newjob]
    dont work. i'm op on my server with no permissions plugin (since there is none that is compatable with all plugins and bukkit has yet to freaking impliment one like heymod had -.-
    anyways, entering /jobs promote playername Carpenter 19 fails to work, it just displays the same thing that you see when you enter /jobs
     
  5. Offline

    GmK

    Ah lol, you are trying the 2.0 WIP Version which is NOT to be used on live servers...I havent tried that yet, I just use the normal, working 1.3.3

    Also check your tone please. Using Word for .yml editing is the biggest error you can do and a sure path to failing.
     
  6. Offline

    drats666

    actually i'm using http://dl.dropbox.com/u/729332/Jobs/1.3.3b/jobs.rar
    and as i said, i used both notepad and word to edit them, in notepad, they dont look like they do on this site. only in word. and when using notepad. if you copy and paste the config file the site, it saves but doesn't read the jobs because the config file is different. -.- seems you didn't read that part, your too hung up on office. i appreciate your attempt to help though. I ended up fixing the issue myself making a application in vb to adjust jobs and ranks. now if only i could get the color codes to work >.< some work, but i noticed BROWN doesn't work :( was trying to use it for diggers. I edited my config file to include 3 new jobs. Farmer, Electrician and Railroad Worker. Also modified Woodcutter to be Carpenter and handle fences and wooden stairs and wooden doors. the builder handles cobble stone stairs, mossy cobblestone, and iron doors.
     
  7. Offline

    ValBGaming

    Great plugin, but I have a question about the jobs on my server.
    Code:
    Jobs:
        Woodcutter:
            ChatColour: GREEN
            levelingProgressionRate: 0.08
            incomeProgressionRate: 0.06
            Break:
                LOG: 0.20
            Place:
                SAPLING: 0.40
        Miner:
            ChatColour: GREEN
            levelingProgressionRate: 0.12
            incomeProgressionRate: 0.04
            Break:
                STONE: 0.05
                COAL_ORE: 2.00
                REDSTONE_ORE: 0.20
                IRON_ORE: 15.00
                GOLD_ORE: 60.00
                LAPIS_ORE: 10.00
                DIAMOND_ORE: 480.00
                OBSIDIAN: 10.00
        Digger:
            ChatColour: GREEN
            levelingProgressionRate: 0.08
            incomeProgressionRate: 0.06
            Break:
                DIRT: 0.10
                GRASS: 0.10
                GRAVEL: 0.10
                SAND: 0.10
                CLAY: 0.10
        BeastSlayer:
            ChatColour: GREEN
            levelingProgressionRate: 0.10
            incomeProgressionRate: 0.05
            Kill:
                Chicken: 0.15
                Cow: 0.25
                Pig: 0.25
                Sheep: 0.25
                Wolf: 0.50
                Creeper: 0.75
                Skeleton: 0.75
                Spider: 0.65
                Zombie: 0.65
                PigZombie: 0.65
                Squid: 0.25
                Slime: 0.65
        TreasureHunter:
            ChatColour: GREEN
            levelingProgressionRate: 0.10
            incomeProgressionRate: 0.05
            Break:
                MOSSY_COBBLESTONE: 1.00
                MOB_SPAWNER: 50.00
        Herbalist:
            ChatColour: GREEN
            levelingProgressionRate: 0.08
            incomeProgressionRate: 0.06
            Break:
                YELLOW_FLOWER: 0.20
                RED_ROSE: 0.30
                BROWN_MUSHROOM: 0.20
                RED_MUSHROOM: 2.00
                CROPS: 0.10
    Would the calculations used to determine level, exp, income, etc. be friendly with this? The reason I am wondering is due to all of the double decimals. (Primarily all the double decimals under 1, like 0.10.)
     
  8. Offline

    finisher90

    Yeah i have essentialschat cuz i use prefixes like [Admin] and [Owner] but is there anyway to have both? like i would like to have just the title or just the job show up( i know how to do that in the config) like it would be: Apprentice Digger [Owner]finisher90 or Apprentice [Owner]finisher90 or [Owner] Apprentice finisher90 so on and so forth...
     
  9. Offline

    Danthok

    Version 2.0.0 looks amazing! Looking forward to a stable build for my server. Any chance for /jobs stats formatting in the config file or a separate command for just level? My users are complaining they cant see their level because it overflows the screen. Thanks for your efforts.
     
  10. Offline

    flametornado

    The plugin config packaged should work regardless if it's different from the OP. If you're seeing it on 3 lines it's because of the way windows, linux and mac all have different character combinations for line endings. I would recommend you use notepad++ . That's a very different program from notepad. Office adds random autocorrect things and makes a mess of things too.

    Your other problem is that you're using 2.0 WIP commands on 1.3.3.

    With the new version, You can modify the equation so the money goes up at a smaller rate and giving 0.01 works properly now, so you can give people 0.01 per reed :D.

    I plan on eventually making all of he messages customisable. That way people don't have to play in english :p. I might even make the commands customisable.
     
  11. Offline

    Atond

    Hi,

    I use this plugin and it's work perfectly for me the only OP on this server. But for normal users, it's doesn't work :/. When they tape /jobs join Miner, the plugin say " You do not have sufficient .... blabla". I put in permission : - 'jobs.join.*' but nothing :/.

    I use Craftbukkit 766 and 1.3.3b jobs because i have Iconomy 5.0.1 and i havn't touch the config file of jobs.

    Sorr for my bad english ^^'

    Thx a lot :)

    p.s : and notepadd ++ of course
     
  12. Offline

    flametornado

    wrong permissions nodes. Those are for 2.0.
    1.3.3 nodes are jobs.job.*
     
  13. Offline

    Atond

    Oyeah ! Thx very very very much ! <3
     
  14. Offline

    flametornado

    The new WIP version has flatfile, for those who want to test it out :D

    And it's stable enough for use (but missing some information commands)
     
  15. Offline

    Reptile00Seven

    I have attempted to revise this over and over again, In-game the only jobs that show up are Miner and Woodcutter.

    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: DARK_GREEN
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                LOG: 0.10
            Place:
                SAPLING: 0.05
                LOG: -0.10
        Miner:
            ChatColour: DARK_GRAY
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                STONE: 0.01
                COAL_ORE: 0.50
                REDSTONE_ORE: 1.50
                IRON_ORE: 1.0
                GOLD_ORE: 5.0
                LAPIS_ORE: 3.50
                DIAMOND_ORE: 10.0
                OBSIDIAN: 2.5
            Place:
                GOLD_ORE: -5.0
                IRON_ORE: -1.0
        Warrior:
            ChatColour: VIOLET
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                MOSSY_COBBLESTONE: 15.0
            Kill:
                Creeper: 2.50
                Skeleton: 1.0
                Spider: 1.0
                Zombie: 0.75
        Terraformer:
            ChatColour: YELLOW
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                DIRT: 0.05
                GRASS: 0.05
                GRAVEL: 0.05
                SAND: 0.05
            Place:
    
        Botanist:
            ChatColour: BLUE
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                LAPIS_ORE: 3.5
                RED_FLOWER: 0.25
                YELLOW_FLOWER: 0.25
                BROWN_MUSHROOM: 0.75
                RED_MUSHROOM: 0.75
                CACTUS: 0.05
                PUMPKIN: 1.00
            Place:
                LAPIS_ORE: -3.5
                RED_FLOWER: -0.25
                YELLOW_FLOWER: -0.25
                BROWN_MUSHROOM: -0.75
                RED_MUSHROOM: -0.75
                CACTUS: -0.05
                PUMPKIN: -1.00
            Kill:
                Squid: 1.0
        Farmer:
            ChatColour: BROWN
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                CROPS: 0.5
            Place:
                SAPLING: 0.05
            Kill:
                Sheep: 0.1
                Chicken: 0.1
                Squid: 0.1
                Pig: 0.1
                Cow: 0.1
        Engineer:
            ChatColour: WHITE
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
    
            Place:
                COBBLESTONE: 0.02
                GLASS: 0.1
                LADDER: 0.1
                BOOKSHELF: 0.8
                BRICK: 0.15
    # 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
    
     
  16. Offline

    flametornado

    Only certain colours are wokring in minecraft. Brown and Violet are not supported by minecraft

    most likely there's another error before that causing the plugin to disable itself.
    Most likely an error in the config file

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

    drats666

    wrong -.- i even redownloaded the 1.3.3 one. as i said, i fixed it myself. everyone stop saying i'm using 2.0 because i'm not. stop trying to pass the blame on me using the wrong version when i'm not using the wrong one -.-
     
  18. Offline

    GmK

    The commands you mentioned that dont work are 2.0 commands - and @flametornado *only* mentioned that you tried to use 2.0 commands, he didnt imply you using the 2.0 version.
     
  19. Offline

    flametornado

    You were using wip commands. That's all I said. 1.3.3 Has no admin commands.

    What was the problem and how did you fix it?
     
    drats666 likes this.
  20. Offline

    matan7890

    No I just wrote "jobs" in the console, as you can see..
    And when do you think that 2.0 will become stable? I really Waitnig for this! :D
     
  21. Hi flametornado!

    I programmed a Web-based tool for admins and users to watch and analyse the server-statistics of Minecraft.
    It's based on "Stats and Achievements" and i designed a module for your great "Jobs"-plugin.
    At the moment it only shows the number of each job, a player-job-lvl table and in the player-statistics the informtions, too.
    We really love your plugin and i hope my webstatistic will help some other players and admins, too!

    As soon as version 2.0 comes stable, i will redesign my jobs-module to fit the new situation!
    Here's the Link to my Web-Tool
    And Here an example!
     
  22. Offline

    oz_revulsion

    I love this mod. Just installed it but i think I might love it a bit much. I spent ages setting up break, place and kill prices before I realised I did way to much and they wouldn't fit on the screen! What this meant is that when my players used /jobs stats they couldn't see their profession or xp or anything just the bottom of their job prices. Would it be possible to have commands that would show the stats separately from the prices and also possible a command to show just the break, just the place and just kill prices for jobs that way I could have a longer list for each and my players could still their stats and the prices!

    Thanks for the effort.

    Oz
     
  23. Offline

    LIO Lampe

    Hey again,
    every time i add "Kill:" to the code its not working anymore...
    i this code right?

    Hunter:
    ChatColour: GREEN
    levelingProgressionRate: 0.20
    incomeProgressionRate: 0.10

    Kill:
    SHEEP: 1.0
     
  24. Offline

    GmK

    Make sure to also add the Break: and Place: Sections in front of it, even if empty!
     
  25. Offline

    LIO Lampe

    dear lord i try it since f*cking sunday but its won't work please help me!

    Hunter:
    ChatColour: GREEN
    levelingProgressionRate: 0.15
    incomeProgressionRate: 0.05
    Break:
    LOG: 5.0
    Place:
    SAPLING: 3.0
    Kill:
    COW: 5.0

    now it shows all jobs on the top of it... i'am done please help


    its working now fixed it
     
  26. Offline

    oz_revulsion

    I only just worked this out with my server so I thought I would let you know. Try typing Sheep instead of SHEEP. It seems this might be a case sensitivity problem. The block need to be in uppercase and the targets like Sheep and Pig need to be in proper english the way they are written in the original post.

    Cheers
    Oz
     
  27. Offline

    Racha

    Why /jobs leave is not working for me ? ;(

    Maybe you can add this - if a player leaves job, he need to pay money for it..

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

    LanToaster

    I wanted to Try out the WIP version, because the 1.3.3 doesnt have the Admin Features i need. But it gives me this Error:
    EDIT:
    It seems he doesnt like Empty Job Targets.

    Had server kills and customkills empty. Deleted thos and i got another Error because i spellt some Blocks wrong.

    EDIT:
    Got it working.
     
  29. Offline

    Racha

    Code:
    20:27:44 [SEVERE] java.lang.NullPointerException
    20:27:44 [SEVERE]       at me.alex.jobs.Jobs.getLevelingRate(Jobs.java:451)
    20:27:44 [SEVERE]       at me.alex.jobs.Job.<init>(Job.java:39)
    20:27:44 [SEVERE]       at me.alex.jobs.dao.FlatFileJobsDAO.findPlayer(FlatFileJ
    obsDAO.java:38)
    20:27:44 [SEVERE]       at me.alex.jobs.Jobs.addPlayer(Jobs.java:353)
    20:27:44 [SEVERE]       at me.alex.jobs.JobsPlayerListener.onPlayerJoin(JobsPlay
    erListener.java:15)
    20:27:44 [SEVERE]       at org.bukkit.plugin.java.JavaPluginLoader$1.execute(Jav
    aPluginLoader.java:232)
    20:27:44 [SEVERE]       at org.bukkit.plugin.RegisteredListener.callEvent(Regist
    eredListener.java:59)
    20:27:44 [SEVERE]       at org.bukkit.plugin.SimplePluginManager.callEvent(Simpl
    ePluginManager.java:289)
    20:27:44 [SEVERE]       at net.minecraft.server.ServerConfigurationManager.a(Ser
    verConfigurationManager.java:94)
    20:27:44 [SEVERE]       at net.minecraft.server.NetLoginHandler.b(NetLoginHandle
    r.java:95)
    20:27:44 [SEVERE]       at net.minecraft.server.NetLoginHandler.a(NetLoginHandle
    r.java:74)
    20:27:44 [SEVERE]       at net.minecraft.server.Packet1Login.a(SourceFile:43)
    20:27:44 [SEVERE]       at net.minecraft.server.NetworkManager.a(NetworkManager.
    java:196)
    20:27:44 [SEVERE]       at net.minecraft.server.NetLoginHandler.a(NetLoginHandle
    r.java:40)
    20:27:44 [SEVERE]       at net.minecraft.server.NetworkListenThread.a(SourceFile
    :87)
    20:27:44 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:372)
    20:27:44 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:287)
    20:27:44 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:394)
    What to do with this ? :D
     
  30. Offline

    flametornado

    It is stable enough for play, it's just missing a few features and some messages.

    2.0 is fairly stable (just missing info commands and a few other customizations like giving jobs slots so only a certain number of people can join a job and a limiter to how many jobs people can join).

    working on exactly that in 2.0.

    leave only works in 2.0

    anyone can make a plugin that hooks into the jobs event with the onJobJoin/onJobLeave and withdraw money from their account (if they don't have enough, just cancel the event if you want)

    not sure :( the code i have now is for 2.0 so i can only see that. That code is also far different from the old code.
     
  31. Offline

    Racha

    Can you add that if they leave job, they get like -100 money.. ?

    And everything is okay with that error :)
     
Thread Status:
Not open for further replies.

Share This Page