Inactive Jobs v2.0.1 - Jobs plugin for Minecraft (iConomy 4/5 & BOSEconomy, Permissions) [860]

Discussion in 'Inactive/Unsupported Plugins' started by flametornado, Apr 17, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    flametornado

    NOTE: THIS PLUGIN IS NO LONGER BEING DEVELOPED \ SUPPORTED BY ME.

    phrstbrn HAS TAKEN UP THE DEVELOPMENT \ SUPPORT AND ALL QUERIES SHOULD GO TO HIM ON HIS POST. (http://forums.bukkit.org/threads/ec...t-935-iconomy-5-boseconomy-permissions.23429/)


    Jobs - The Job plugin for Minecraft:
    Version: 2.0.1

    Requires:
    • iConomy 4/5 / BOSEconomy
    Optional

    • Stats and Achievements
    • Permissions
    • MySQL
    A fully configurable plugin that allows you to get paid for breaking, placing and killing. Class based (experience increases as you perform your job).


    NOTE: Please read the comments in the configuration file thoroughly and check the console errors before posting here for help.

    [fire]IMPORTANT [fire]: If you want to upload your config for help, please do so using the forum's upload functionality.

    If you like this plugin, please donate.

    [​IMG]

    Video



    Thanks Samkio for the plugin tutorial video.

    Downloads
    Previous Versions (open)



    Features:
    • Create your own custom jobs and choose what they get paid for and how much.
    • Leveling mechanic where higher level jobs will give higher incomes. Income earnt = experience gained.
    • Equation determining maximum experience, experience gained and income gained is customizable.
    • Customizable skill levels in the game to mark leveling milestones (fully customizable in the configuration file).
    • Your profession and skill level is part of your display name and whenever you talk everyone will know what you do and how good you are. (optional)
    • Stats of your maximum level in a job is saved if you have the stats and achievements plugin. ( for bragging rights) (optional)
    • Does periodic saving and save on player exiting the server.
    • Leaving a job resets your job level and experience to 0.
    • Permissions support.
    • Admin commands work even when the players are offline.
    Source:


    I made a sourceforge account for this. It will allow you to report bugs and feature requests. It'll help me a lot to make sense of this.

    The link is https://sourceforge.net/projects/flametornadjobs/.

    Some rules before you go there:
    1. Please look through the bugs that have already been reported to see if someone else has already reported that bug. If you have any extra information, post it on the bug's comments. The more information I have, the easier it is for me to fix it and test it.
    2. Same as above for feature requests.


    Commands:
    Code:
    Player:
    /jobs browse -  View a list of the available jobs.
    /jobs join [job name] - Join the job.
    /jobs leave [job name] - Leave the job.
    /jobs info [job name] [break, place, kill] - view information about that job.
    /jobs stats - view your job level and experience needed to level up.
    
    Admins:
    /jobs fire [playername] [job] - fire the player from the specified job.
    /jobs employ [playername] [job] - employ the player into the specified job.
    /jobs promote [playername] [job] [levels] - promote the player in their job X levels.
    /jobs demote [playername] [job] [levels] - demote the player in their job X levels.
    /jobs grantxp [playername] [job] [experience] - grant the player X experience in the selected job.
    /jobs removexp [playername] [job] [experience] - remove X experience from the player in the selected job.
    /jobs transfer [playername] [oldjob] [newjob] - transfer the player's job (keeps levels and experience)
    
    NOTE: All job names are case sensitive.
    
    Permissions Nodes:
    Code:
    jobs.join.<jobname> - allows the group to join the job. Where <jobname> is replaced with the job name (e.g. jobs.join.Woodcutter or jobs.join.* to join all jobs).
    jobs.world.<worldname> - allows players to get paid on selected world.
    
    jobs.admin.fire - enables the fire admin command.
    jobs.admin.employ - enables the employ admin command.
    jobs.admin.promote - enables the promote admin command.
    jobs.admin.demote - enables the demote admin command.
    jobs.admin.grantxp - enables the grant experience admin command.
    jobs.admin.removexp - enables the remove experience admin command.
    jobs.admin.transfer - enables the transfer admin command.
    Changelog:

    Version 2.0.2 WIP
    • Added more parameters to job level up (jobname, jobcolour, titlename, titlecolour, playername, playerdisplayname, joblevel)
    • Fixed promote and demote to correctly change the max exp.
    • job names are no longer case sensitive.
    • Changed the saving mechanism to be synchronous instead of asynchronous (may help with people losing jobs)
    • added config option of enable-pay-near-spawner in general config.
    • Fixed some NPE
    • Wolves killing things gives the player money and experience.
    • Fixed empty tags not resulting in errors.
    • fixed mysql password is all numbers.
    • fixed honorific error
    NOTE: This version is stable, but not fully tested. I will not release this version fully until i track down the jobs vanishing bug and destroy it for all the hassle it has cause me :p


    Version 2.0.1
    • Small bugfixes
    • Moved where the update stats command is called so it won't break anything if there's an error in it. Should also improve performance slightly
    • made the enabling of the stats and achievements plugin optional (configuration parameter in general settings
    • ChatColour can now be in any case and it'll still work.
    Version 2.o.0

    • Multiple jobs
    • Exposed equations
    • More customization
    • Can specify sub-class
    • Can specify job class kills.
    • Messages are customizable.
    • Kills with arrows works
    • Admin commands (work offline too)
    • Can disable payout on certain worlds (mainly for creative servers).
    • Can limit the number of jobs a player can have
    • Can limit the number of people that can have a certain job per server.
    • Better console error messages.
    • Plugin disables itself properly.
    Changelog (open)



    Version 1.3.3b and 1.3.2b
    • Killing works properly now. Drops seem to have gone back to normal levels and you can kill stuff and get paid for it all the time.
    • 1.3.3b is for iConomy 5 AND ONLY iConomy 5
    • 1.3.2b is for before iConomy 5 AND ONLY before iConomy 5
    Version 1.3.3

    • iConomy 5 support.
    Version 1.3.2

    • Removed annoying spam message which was for debugging and i forgot in for 1.3.1
    • Changed experience to be a double so people get experience for things less than 1. Saving mechanism still saves using integers, it would create waaaay too much fuss to change this since the database schema would need to be changed for everyone that used this plugin and it would render all previous saves incompatible. This seems like a decent compromise. People will lose a maximum of .99 exp when they log out.
    • Better method for checking when an animal's dead, should fix the weird animation problem and the lack of drops some people have been experiencing.
    Version 1.3.1

    • Killing near mob spawners will not give you money anymore.
    • Displays payment amount when you do /jobs info for killing now too.
    • Changed way that you create kill tags incode. Results in the system crashing and the plugin not being enabled if you got the wrong name (e.g. capitals or misspelt name)
    Version 1.3.0

    • Killing stuff should work now. This section is not as thoroughly tested, but should work fine.
    • No jobs have been made with killing stuff, you're on your own with the configuration for a while but the template section has been updated, it follows the same pattern as break and place.
    Version 1.2.3 - Bugfix update

    • changed priority to make sure it gets run last (to make the following points work properly)
    • checks if you can place a block or if the event is canceled by another plugin. Done to avoid people getting rick very easily by placing blocks in areas they are not allowed.
    • Fix for players not getting removed properly in the onDisable function which results in weird names when people reload their plugins.
    Version 1.2.2

    • The titles will now take into account any previous modifications to your display name by another plugin and simply tack on the title at the front (and when you change jobs, strip it from your title and tack a new title at the front).
    Version 1.2.1

    • Base experience is now configurable
    • experience multiplier is not configurable (for those who want lower economies). If you want to give 0.2 of your currency to per item, then set the multiplier to 10.
    Version 1.2.0

    • A little code cleanup.
    • Permissions support
    • customizable flat rate pay
    • customizable skill titles.
    Version 1.1.2

    • Cleaned up sql commands more to make them more specific and avoid errors as much as possible. Hard to test this since neither my testing server and my proper server have any problems seen by other people.
    • Fixed the system to work with /reloadall command. The experience was still being saved, you just needed to log out. I didn't even know that this command existed, so i never thought i'd have the plugin enable with people in the server. It now takes that into account and online users will not need to log out to see their stats and work on their jobs.
    Version 1.1.1 [fire] RECOMMENDED [fire]

    • Cleaned up SQL commands to be more exact, should result in less errors.
    • New configuration for what kind of prefix to add to the username (job, skill level, both or none).
    • New configuration to toggle the option of broadcasting messages when users reach the next skill level.
    • [Stats & Achievements] - further integration, this plugin now also adds the iConomy money amount to the stats table. (will always be 1 block behind)
    • URGENT FIX - tables were not getting cleared and players ended up having multiple jobs with multiple levels instead of one job and one set of levels. Code written to auto correct this.
    Version 1.1.0

    • Added BOSEconomy integration. This should be automatically detected.
    • Added flatfile functionality for server admins who don't want to use mysql.
    • EXPERIMENTAL : Added sqlite functionality, I sadly couldn't get sqlite to work properly on my testing machine so i haven't tested it. It should work though.
    Version 1.0.1

    • Small fix on /jobs stats command. It now rounds off the two decimal places and is less annoying to look at when it gives you the price for placing/destroying a block
    Version 1.0

    • Initial build, spent the weekend on it, pretty satisfied with it, added all mentioned functionality.
    [\SPOILER]

    TODO:



    See sourceforge for requested features and bugs.
     
  2. Offline

    flametornado

    Not yet, maybe never. There are a lot of plugins that handle permissions for building and to be compatible. I'd rather put my effort into new features than maintaining my plugin interoperability between a lot of plugins.
     
  3. Offline

    Fritz7000

    i downloaded the plugin yesterday when we updated our server. Everything is working, but if i try to browse for a job no job is there. I didnt touch the configeration.yml in the jobs directory so far. What shall i do then? and i have got another qeustion. you wrote the Monsternames to the plugin is it possible to get paid to kill Monsters? If yes how to create a job like this
     
  4. Offline

    flametornado

    1.3.0 works for killing monsters. How to do this is outlined in the configuration file. Basically the same as place or break. A list of all the monster names is posted on the front page.

    It probably doesn't work because it has errors reading the configuration file. I really should change the default configuration to flatfile.

    try changing the storage-method to flatfile or downloading 1.3.0 (again), i changed the configuration file to use flatfile by default.
     
  5. Offline

    darkwarriors

    so my report to this plugin is that it is fantastic.

    i'll need a anti farming protection like delay for placing or break, beacuse some players puts sapling in a stupid way.. like 600 sepling in just 10 minuts..
    i already put like beak log: 2.0 and place wooden or log : -2.0 for simple antifarming but we need someting best if u could!

    also i think alot a fix for worldguard but i dont find anithing to solve this problem!
     
  6. Offline

    Syrena

    How do you make it so you can add more than 90 or 10 50 coins for per block break or -50 per block placement

    if you still cant see jobs in list open config with notepad++ and make sure the flatfile is set and jobs and Miner and break and place all line up with each outher i noticed if you modify it the lines have to match up.

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

    link2110

    Is it possible to have the plugin not change your chat color or name color or have title? For my server Name color shows ranks and all chat is white :p
     
  8. Offline

    x1mrdonut1x

    Hi, i was wondering, could you do something about changing jobs, so i could (or couldn't) change my jobs every ex. 2 weeks?
     
  9. Offline

    Volumunox

    I really like the concept of this plugin, it adds a whole new level to ingame economy.
    However 2 things i'd like to see is:
    A job board, being able to create signs instead of the /join command, destroying the sign enables the job
    second thing is that when you're on a job that tells you to mine for example gold, it removes the gold when you find it and adds the money, so its not a double win situation for the user.
     
  10. Offline

    Aaron Flynn

    Okay so I don't know what I did, but I got the plugin working.

    However;

    whenever I do "/jobs info xxx" it just displays the jobs menu... How can I go about correcting this?
    Same goes with "/jobs join xxx".

    /jobs browse displays the current jobs correctly, and stats works, telling me I don't currently have a job.

    EDIT:
    So I realized that the jobs for info/join were case-sensitive. That helped.
    Still getting the jobs menu for a 'two-word job' i.e. "Monster Hunter"
    Any way around this? Or should I just make it one word and be done with it?


    ALSO:
    I know the whole "Kill" feature is new, and I like it. However, is there a way that you can make the list of rewards/penalties for "Kill" appear on the job info page?

    I have a job called the ranger, which is to deal with neutral mobs.. and its Break/Place for Fences shows up, but none of the mob info...

    So essentially, as it stands, based on provided info, if someone takes the Ranger job, they'll assume their only duties are to place fences. lol.
     
  11. Offline

    Tenebrion

    Kill does not work at all, no errors nothing. When i check the info on "Slayer" or "Hunter" it just says:
    "Base Salaries:" and nothing more and you don't get any money for killing mobs either.

    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: 30
    
    # 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: GREEN
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                LOG: 5.0
                LEAVES: 2.0
            Place:
                SAPLING: 1.0
                WOOD: 1.0
        Miner:
            ChatColour: WHITE
            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
                DIAMOND_ORE: -7.0
        Electrician:
            ChatColour: BLUE
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Place:
                REDSTONE_WIRE: 2.0
                REDSTONE_TORCH_ON: 3.0
                DIODE_BLOCK_ON: 3.0
                NETHERRACK: 1.0
                NOTE_BLOCK: 4.0
                JACK_O_LANTERN: 4.0
        Digger:
            ChatColour: WHITE
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Break:
                DIRT: 2.0
                GRASS: 2.0
                GRAVEL: 2.0
                SAND: 2.0
        Hunter:
            ChatColour: RED
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Kill:
                CHICKEN: 1.0
                PIG: 3.0
                COW: 4.0
                WOLF: 5.0
        Slayer:
            ChatColour: RED
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Kill:
                ZOMBIE: 1.0
                SKELETON: 3.0
                CREEPER: 4.0
                SPIDER: 4.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: YELLOW
            levelReq: 60
        Master:
            ChatColour: GOLD
            levelReq: 90
    But thanx for an awsome plugin!
     
  12. Offline

    ToitagL

    Love your plugin ! Made my server a lot more cool :)

    But could you add a kind of countdown ? Per job, if possible. I would like to prevent my Hunters to chainkills mobs from a mobspawner. Or maybe you could disable killing gains if you're near a mobspawner ?

    Anyway, thanks again, fantastic plugin :)

    Killing works perfectly. Just don't write mob names in CAPITALS. But as they are on OP.

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

    Tenebrion

    Same problem! I did try it as it said in the OP first but that didn't work so I tried with capitols just in case. I just tried again exactly as the OP states, same problem :(

    Code:
        Hunter:
            ChatColour: RED
            levelingProgressionRate: 0.15
            incomeProgressionRate: 0.05
            Kill:
                Chicken: 1.0
                Pig: 3.0
                Cow: 4.0
                Wolf: 5.0
     
  14. Offline

    flametornado

    it should work with wolrdguard. If you find people abusing the system and farming like that, put the price lower. In my economy, you would need hundreds of thousands of sapling placements to get a lot of money so the anti-farming protection is just how boring it is to get a high level and a lot of money.

    You can set any price for a block. If you want to you gave give 10000000 per block if you really really want.

    set chat-display area in the configuration to whatever you want (maybe none).

    Changing jobs resets your level to 0. It's far more profitable to stay with a job than constantly switch jobs.

    The jobs plugin does not do that at all. It just gives you money when you place and break blocks and kill creatures. You still get to keep anything that drops.

    Done in the next version.

    Killing should work. Make sure you don't use tabs but only spaces. What you displayed should work.

    I will implement no money around mob spawner.
     
  15. Offline

    mjhasbach

    I ran into trouble with this problem using both MySQL and SQLite...although it is probably just a configuration issue on my end. Help would be greatly appreciated. (CB733)

    Steps taken with MySQL:

    mysql-connector-java-5.1.6-bin.jar is located in /(Minecraft root directory)/lib

    For security reasons, I didn't want to use MySQL root with this plugin, so, from the terminal:


    Code:
    mysql -u root -p
    CREATE DATABASE jobs;
    CREATE USER 'jobs'@'localhost' IDENTIFIED BY '(omitted)';
    GRANT ALL PRIVILEGES ON jobs.* TO 'jobs'@'localhost' WITH GRANT OPTION;
    FLUSH PRIVILEGES;
    In the config file:

    Code:
    # storage method, can be MySQL, sqlite, flatfile
    storage-method: MySQL
    
    # Requires Mysql.
    mysql-username: jobs
    mysql-password: (omitted)
    mysql-database: jobs
    mysql-url: jdbc:mysql://localhost:3306/
    sqlite-url: jdbc:sqlite:test.db
    I also tried "mysql-url: localhost:3306/"


    server.log, when the plugin attempts to start:


    Code:
    2011-04-29 01:53:18 [SEVERE] java.sql.SQLException: invalid database address: localhost:3306/jobs
    2011-04-29 01:53:18 [SEVERE]     at org.sqlite.JDBC.createConnection(JDBC.java:74)
    2011-04-29 01:53:18 [SEVERE]     at org.sqlite.JDBC.connect(JDBC.java:64)
    2011-04-29 01:53:18 [SEVERE]     at java.sql.DriverManager.getConnection(DriverManager.java:620)
    2011-04-29 01:53:18 [SEVERE]     at java.sql.DriverManager.getConnection(DriverManager.java:200)
    2011-04-29 01:53:18 [SEVERE]     at me.alex.jobs.dao.MySQLJobsDAO.connect(MySQLJobsDAO.java:40)
    2011-04-29 01:53:18 [SEVERE]     at me.alex.jobs.dao.MySQLJobsDAO.setUp(MySQLJobsDAO.java:59)
    2011-04-29 01:53:18 [SEVERE]     at me.alex.jobs.dao.MySQLJobsDAO.<init>(MySQLJobsDAO.java:34)
    2011-04-29 01:53:18 [SEVERE]     at me.alex.jobs.Jobs.onEnable(Jobs.java:111)
    2011-04-29 01:53:18 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    2011-04-29 01:53:18 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:632)
    2011-04-29 01:53:18 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
    2011-04-29 01:53:18 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
    2011-04-29 01:53:18 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
    2011-04-29 01:53:18 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:287)
    2011-04-29 01:53:18 [SEVERE]     at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:201)
    2011-04-29 01:53:18 [SEVERE]     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
    2011-04-29 01:53:18 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:255)
    2011-04-29 01:53:18 [SEVERE]     at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:675)
    2011-04-29 01:53:18 [SEVERE]     at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:638)
    2011-04-29 01:53:18 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:632)
    2011-04-29 01:53:18 [SEVERE]     at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    2011-04-29 01:53:18 [SEVERE]     at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
    2011-04-29 01:53:18 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
    2011-04-29 01:53:18 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    2011-04-29 01:53:18 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
    2011-04-29 01:53:18 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    2011-04-29 01:53:18 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    2011-04-29 01:53:18 [SEVERE] java.lang.NullPointerException
    2011-04-29 01:53:18 [SEVERE]     at me.alex.jobs.dao.MySQLJobsDAO.setUp(MySQLJobsDAO.java:60)
    2011-04-29 01:53:18 [SEVERE]     at me.alex.jobs.dao.MySQLJobsDAO.<init>(MySQLJobsDAO.java:34)
    2011-04-29 01:53:18 [SEVERE]     at me.alex.jobs.Jobs.onEnable(Jobs.java:111)
    2011-04-29 01:53:18 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    2011-04-29 01:53:18 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:632)
    2011-04-29 01:53:18 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
    2011-04-29 01:53:18 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
    2011-04-29 01:53:18 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
    2011-04-29 01:53:18 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:287)
    2011-04-29 01:53:18 [SEVERE]     at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:201)
    2011-04-29 01:53:18 [SEVERE]     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
    2011-04-29 01:53:18 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:255)
    2011-04-29 01:53:18 [SEVERE]     at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:675)
    2011-04-29 01:53:18 [SEVERE]     at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:638)
    2011-04-29 01:53:18 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:632)
    2011-04-29 01:53:18 [SEVERE]     at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    2011-04-29 01:53:18 [SEVERE]     at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
    2011-04-29 01:53:18 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
    2011-04-29 01:53:18 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    2011-04-29 01:53:18 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
    2011-04-29 01:53:18 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    2011-04-29 01:53:18 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    2011-04-29 01:53:18 [INFO] Jobs not started, there's an error with the configuration
    Steps taken with SQLite:


    sqlitejdbc-v056.jar is located in the Minecraft root directory (one above /plugins).




    In the config file:

    Code:
    # storage method, can be MySQL, sqlite, flatfile
    storage-method: sqlite
    
    # Requires Mysql.
    mysql-username: jobs
    mysql-password: (omitted)
    mysql-database: jobs
    mysql-url: jdbc:mysql://localhost:3306/
    sqlite-url: jdbc:sqlite:test.db
    server.log, when I use /jobs join Miner

    Code:
    2011-04-29 01:58:42 [SEVERE] java.sql.SQLException: The url cannot be null
    2011-04-29 01:58:42 [SEVERE]     at java.sql.DriverManager.getConnection(DriverManager.java:592)
    2011-04-29 01:58:42 [SEVERE]     at java.sql.DriverManager.getConnection(DriverManager.java:222)
    2011-04-29 01:58:42 [SEVERE]     at me.alex.jobs.dao.SqliteJobsDAO.connect(SqliteJobsDAO.java:31)
    2011-04-29 01:58:42 [SEVERE]     at me.alex.jobs.dao.SqliteJobsDAO.changeJob(SqliteJobsDAO.java:83)
    2011-04-29 01:58:42 [SEVERE]     at me.alex.jobs.Jobs.onCommand(Jobs.java:289)
    2011-04-29 01:58:42 [SEVERE]     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    2011-04-29 01:58:42 [SEVERE]     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
    2011-04-29 01:58:42 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:255)
    2011-04-29 01:58:42 [SEVERE]     at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:675)
    2011-04-29 01:58:42 [SEVERE]     at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:638)
    2011-04-29 01:58:42 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:632)
    2011-04-29 01:58:42 [SEVERE]     at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    2011-04-29 01:58:42 [SEVERE]     at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
    2011-04-29 01:58:42 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
    2011-04-29 01:58:42 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    2011-04-29 01:58:42 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
    2011-04-29 01:58:42 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    2011-04-29 01:58:42 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    2011-04-29 01:58:42 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'jobs' in plugin Jobs v1.3.0
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:255)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:675)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:638)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:632)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        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)
    Caused by: java.lang.NullPointerException
        at me.alex.jobs.dao.SqliteJobsDAO.changeJob(SqliteJobsDAO.java:101)
        at me.alex.jobs.Jobs.onCommand(Jobs.java:289)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    2011-04-29 01:59:28 [INFO] <§c~Matt---mjhasbach§f> nvm, I was join to test the new jobs system (mining)
    2011-04-29 01:59:35 [INFO] <~Derek---Bisbosh> Oo
    2011-04-29 01:59:37 [INFO] <§c~Matt---mjhasbach§f> I ran into a problem tho
    2011-04-29 01:59:50 [INFO] mjhasbach issued server command: job join Miner
    2011-04-29 01:59:56 [INFO] 0. §c~Matt---mjhasbach§f
    2011-04-29 01:59:56 [SEVERE] java.sql.SQLException: The url cannot be null
    2011-04-29 01:59:56 [SEVERE]     at java.sql.DriverManager.getConnection(DriverManager.java:592)
    2011-04-29 01:59:56 [SEVERE]     at java.sql.DriverManager.getConnection(DriverManager.java:222)
    2011-04-29 01:59:56 [SEVERE]     at me.alex.jobs.dao.SqliteJobsDAO.connect(SqliteJobsDAO.java:31)
    2011-04-29 01:59:56 [SEVERE]     at me.alex.jobs.dao.SqliteJobsDAO.changeJob(SqliteJobsDAO.java:83)
    2011-04-29 01:59:56 [SEVERE]     at me.alex.jobs.Jobs.onCommand(Jobs.java:289)
    2011-04-29 01:59:56 [SEVERE]     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    2011-04-29 01:59:56 [SEVERE]     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
    2011-04-29 01:59:56 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:255)
    2011-04-29 01:59:56 [SEVERE]     at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:675)
    2011-04-29 01:59:56 [SEVERE]     at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:638)
    2011-04-29 01:59:56 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:632)
    2011-04-29 01:59:56 [SEVERE]     at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    2011-04-29 01:59:56 [SEVERE]     at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
    2011-04-29 01:59:56 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
    2011-04-29 01:59:56 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    2011-04-29 01:59:56 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
    2011-04-29 01:59:56 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    2011-04-29 01:59:56 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    2011-04-29 01:59:56 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'jobs' in plugin Jobs v1.3.0
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:255)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:675)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:638)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:632)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        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)
    Caused by: java.lang.NullPointerException
        at me.alex.jobs.dao.SqliteJobsDAO.changeJob(SqliteJobsDAO.java:101)
        at me.alex.jobs.Jobs.onCommand(Jobs.java:289)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    I can probably get flatfile working easily. That's what I'll try next...

    Late Edit: Flatfile is working fine...
     
  16. Offline

    Syrena

    it it possible to add a payday system to this that would be really great like a certain day you get payed you have the option too you it or no in the config at set day you get payed for all your earnings.
     
    Ross Gosling likes this.
  17. Offline

    Ross Gosling

    That sounds pretty cool
     
  18. Offline

    Syrena

    Yeah it would be great if you could add a payday module.
     
  19. Offline

    flametornado

    I'll put payday on my todo list
     
  20. Offline

    Ross Gosling

    Ideas i would like to be created:

    Woodcutter - get rid of placing wood for xp
    Miner - increase diamonds value
    Builder - fine as it is
    Digger - fine as it it
    Knight - various money from mobs e.g. spider 5.0 ghast 100.0
    Farmer - Harvest wheat 15.0 - Place a cake 15.0
    Fisherman - Catch a fish 10.0 (not sure how posible this one is)
     
  21. Offline

    flametornado

    You can change these yourself in the configuration file to suit your server. That's why i made my plugin this way.

    NOTE: fisherman doesn't work yet, since i don't know how to do this.
     
  22. Offline

    Ross Gosling

    i spent the last hour trying to make some but theye ended up not working so i reckoned it would be easier if the peron who made the plugin could do it so its got a much larger chance of not mucking up ;)
     
  23. Offline

    flametornado

    Did you use tabs or spaces?
    can you upload your config file and i'll tell you why it's not working.
     
  24. Offline

    Ross Gosling

    well i deleted it becuase i gave up but i'll try again and then if it doesn't work then i'll say

    And when i tested my modifaction the /jobs browse didnt work, does that usually happen or is that another thing that broke
     
  25. Offline

    flametornado

    You should check your server log. If the configuration isn't correct, the plugin will refuse to start up and it won't work.
     
  26. Offline

    Ross Gosling

    ok it doesnt show builder or knight in the /jobs browse and you cant select to take that job
     

    Attached Files:

  27. Offline

    flametornado

    First of all, Builders have too many spaces. Jobs have to be in line with eachother.

    Knight is all completely commented out and you still have <object_name ...

    EDIT:
    You also still have '>' and they're not lined up properly.

    EDIT2:
    Also, Mob_Spawner has to be MOB_SPAWNER

    EDIT3:

    You also need to make the colour all capitals. BLUE instead of Blue
     
  28. Offline

    Shooty

    OOOOOOOOOOH MY F*KING GODNESS, !

    This plugin is so amazing ! I love it ! You have my benediction !
     
  29. Offline

    Ross Gosling

    About EDIT1

    i asked about what program you used becuase i wanted to find out what to use that looks like everyones examples but all i have is notepad so i cant tell if they line up =/

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

    flametornado

    I use Notepad++ to edit the configuration file.
     
  31. Offline

    Ross Gosling

    oh ok thanks ALOT i hate the ordinary notepad

    i actually love notepad++ its making my life alot easier

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
Thread Status:
Not open for further replies.

Share This Page