[ECON] Jobs - The Job plugin for minecraft [BukkitDev]

Discussion in 'Archived: Plugin Releases' started by phrstbrn, Jun 27, 2011.

  1. Offline

    phrstbrn

    Are you using Spout 1.2?
     
  2. Offline

    NinjaGrinch

    1.2? No. 1.0.5.227 is the Spout version my server is running.
     
  3. Offline

    phrstbrn

    I meant 1.0.2...

    Anyways I tested this against 1.0.5.227 with the default I can't replicate it, post your configs and give more details how to replicate it.

    In the default configs, I tried crafting diamond swords at a crafting table, crafting table in my inventory and in a crating table, sticks in both inventory and crafting table.. I get XP and money from the sword, and the other things don't throw NPEs.
     
  4. Offline

    NinjaGrinch

    Alrighty, let me regenerate the config and and get back to you if the issue still persists.

    My issue is gone now, sorry for the inconvenience.

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

    unrealpancake

    This is like the millionth time I have posted this and I want a n answer please:
    Code:
    2011-08-30 18:57:27 [SEVERE] Could not pass event BLOCK_BREAK to Jobs
    java.lang.NullPointerException
        at com.zford.jobs.config.container.PlayerJobInfo.broke(Unknown Source)
        at com.zford.jobs.listener.JobsBlockPaymentListener.onBlockBreak(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader$37.execute(JavaPluginLoader.java:497)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at net.minecraft.server.ItemInWorldManager.c(ItemInWorldManager.java:157)
        at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:121)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:481)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:140)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:478)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  6. Offline

    Darcion

    is it possible that the errors "custon_event" comes from an old "messageconfig" ?

    i replaced it and tested without any error, i will wait a bit if the error comes back or not.
     
  7. Offline

    KubiPL

    Can help me??
    Please this is important.
     
  8. Offline

    ClJlB

    it does work without i have been using it for a while without permissions of any kind
     
  9. Offline

    matekso

    Hi. I have a problem with this plugin which causes that the XP and money for job doesn't go up. Thats what I've found in server log: http://pastebin.com/61Uc1irB

    Don't know how to fix it, so I'm asking you for help. Thanks.
     
  10. OK, so I am going to suggest something slightly off the wall here but I really just wanted to know if it is at all possible...

    I would like to designate worldguard regions where specific jobs are available (say a portion of forest for a woodcutter), and only in these regions does he/she receive xp/gold. Conceivably, the user could be required to deposit the fruits of their labor into a chest within that region in order to earn the gold (preventing resale for further gold) but the experience could be remembered outside the region in order to allow the user to chop wood faster etc etc (but only to level up in the designated regions). Further to this (if it could be possible), perhaps job information (i.e. levels etc) could be saved for that user/region. This way, users could mine, cut wood etc etc without loosing their xp but be restricted to working these jobs (i.e. earning xp/gold in them) in certain areas alone to prevent griefing (continuous mining/placing). This would also allow users to build freely without suffering xp/gold penalties when placing blocks related to their professions or having to change professions just to build their log-house (it could also tie into economies such that building in regions owned by that specific user would earn them experience/gold in a builder profession).

    As I say, quite convoluted, if I could program I would do it myself as I don't know how difficult this would be for your plugin to achieve. Just thought it would be worth discussing here.
     
  11. Offline

    Hemlas

    Could you add a feature so the money can be withdrawn from a certain bank account (with iConomy), like a town bank? I want a limited amount of money on my server
     
  12. Offline

    phrstbrn

    How would that work? Would you specify a single bank in the config where all the withdrawls are made from?

    Update bukkit to at least 1000

    You could accomplish half of this with something like ChestChop and creating admin shops. Change the base money for all jobs to 0.

    The part about restricted worldguard regions is another story, I'm not sure of a good way of handling that.

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

    TTlabambaTT

    Suggestion: Forgery?
    could create forger/blacksmith
    |
    Or will it work by using the craft option and putting "iron_bar" or somthing?
     
  14. Offline

    unrealpancake

    are you going to answer my
    are you going to answer my question? ive posted the error about 50 times now...
     
  15. Offline

    phrstbrn

    Uninstall everything except Jobs and Permissions and the problem should go away. Some other plugin is behaving badly and causing NPEs in Jobs.
     
  16. Offline

    Hemlas

    Yes, or an account.
     
  17. Offline

    CoolMan035

    The plugin dont see jobs!!!! When i type "/jobs browse" it says "there are no jobs you can join in"
    I dont known whats wrong...
     
  18. Offline

    DaLeberkasPepi

    we always get this warning
    Code:
    2011-09-03 11:50:52 [SEVERE] Could not pass event CUSTOM_EVENT to Jobs
    java.lang.NullPointerException
        at com.zford.jobs.config.container.Job.getItemActionIncome(Unknown Source)
        at com.zford.jobs.config.container.Job.getCraftIncome(Unknown Source)
        at com.zford.jobs.config.container.PlayerJobInfo.crafted(Unknown Source)
        at com.zford.jobs.listener.JobsCraftPaymentListener.onInventoryCraft(Unknown Source)
        at org.getspout.spoutapi.event.inventory.InventoryListener.onCustomEvent(InventoryListener.java:57)
        at org.bukkit.plugin.java.JavaPluginLoader$88.execute(JavaPluginLoader.java:862)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:307)
        at net.minecraft.server.Packet102WindowClick.a(SourceFile:28)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:478)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    CB RB1060
    Jobs 2.5.0
    Spout 1.0.5 RB227
     
  19. Offline

    phrstbrn

    Should be fixed in the next release on Bukkit Dev (2.5.1). Should be up soon, waiting for it to get approved.
     
  20. Offline

    thernztrom

    Also getting this error:
    (Latest Stable Spout, RB1060, 2.5.0)
    Code:
    2011-09-03 21:23:41 [SEVERE] Could not pass event CUSTOM_EVENT to Jobs
    java.lang.NullPointerException
        at com.zford.jobs.config.container.Job.getItemActionIncome(Unknown Source)
        at com.zford.jobs.config.container.Job.getCraftIncome(Unknown Source)
        at com.zford.jobs.config.container.PlayerJobInfo.crafted(Unknown Source)
        at com.zford.jobs.listener.JobsCraftPaymentListener.onInventoryCraft(Unknown Source)
        at org.getspout.spoutapi.event.inventory.InventoryListener.onCustomEvent(InventoryListener.java:57)
        at org.bukkit.plugin.java.JavaPluginLoader$88.execute(JavaPluginLoader.java:862)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:307)
        at net.minecraft.server.Packet102WindowClick.a(SourceFile:28)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:478)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Wating for 2.5.1 then :) So a Mod needs to accept your plugin update @ BukkitDev? :confused:

    Edit: Dropbox acc, then upload the releases instant while waiting for BukkitDev to accept the new versions? ;)
     
  21. Offline

    Draycos

    having this issue:
    14:31:54 [SEVERE] Error occurred while enabling Jobs v2.5.0 (Is it up to date?): while parsing a block mapping; expected <block end>, but found BlockMappingStart
    while parsing a block mapping
    in "<reader>", line 15, column 5:
    Woodcutter:
    ^
    expected <block end>, but found BlockMappingStart
    in "<reader>", line 404, column 6:
    Guard:
    ^
    in the terminal.... Guard is my own job... based on hunter but gets only aggressive mobs/ hunter only gets passive mobs...
     
  22. Offline

    Burns1

    po
    post or uplod your jobconfig plz.
    i think you made some mistakes.
    Preaty easy to fix ;)
     
  23. Offline

    KubiPL

    Anserw my question...
     
  24. Offline

    Hemlas

    Or actually, perhaps specify an account in game. I'm using towny, and I want something like you get your money from the town your a resident of.
     
  25. Offline

    Nexans

  26. Offline

    Draycos

    how do i do this?

    Jobs:
    # must be one word
    Woodcutter:
    # full name of the job (displayed when browsing a job, used when joining and leaving)
    # also can be used as a prefix for the user's name if the option is enabled.
    # Shown as a prefix only when the user has 1 job.
    #
    # NOTE: Must be 1 word
    fullname: Woodcutter
    # Shortened version of the name of the job. Used as a prefix when the user has more
    # than 1 job
    shortname: W
     
  27. Offline

    Rsccman

    can you list what custom events would work like all of them cuz i tried many and some dont work
     
  28. Offline

    RugRats

    2011-09-05 10:09:21 [SEVERE] Could not pass event ENTITY_DEATH to Jobs
    java.lang.NullPointerException
    at com.zford.jobs.listener.JobsKillPaymentListener.onEntityDeath(JobsKillPaymentListener.java:79)
    at org.bukkit.plugin.java.JavaPluginLoader$60.execute(JavaPluginLoader.java:663)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    at net.minecraft.server.EntityLiving.q(EntityLiving.java:467)
    at net.minecraft.server.EntityLiving.die(EntityLiving.java:447)
    at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:391)
    at net.minecraft.server.EntityMonster.damageEntity(EntityMonster.java:43)
    at net.minecraft.server.EntityWolf.a(EntityWolf.java:346)
    at net.minecraft.server.EntityCreature.c_(EntityCreature.java:64)
    at net.minecraft.server.EntityWolf.c_(EntityWolf.java:92)
    at net.minecraft.server.EntityLiving.v(EntityLiving.java:685)
    at net.minecraft.server.EntityWolf.v(EntityWolf.java:133)
    at net.minecraft.server.EntityLiving.m_(EntityLiving.java:218)
    at net.minecraft.server.EntityWolf.m_(EntityWolf.java:161)
    at net.minecraft.server.World.entityJoinedWorld(World.java:1212)
    at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:48)
    at net.minecraft.server.World.playerJoinedWorld(World.java:1194)
    at net.minecraft.server.World.cleanUp(World.java:1110)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:450)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  29. Offline

    Burns1

    hm...
    you need to add blockbreak and blockplace or kill, whatever this job cant work cause it cant do anything.
    also you need slots and max-level
     
  30. Offline

    KubiPL


    Code:
    com.zford.jobs.listener.JobsPlayerListener.onPlayerQuit(Unknown Source)
    06.09 16:07:22 [Server] INFO  at com.zford.jobs.Jobs.removePlayer(Unknown Source)
    06.09 16:07:22 [Server] INFO  at com.zford.jobs.Jobs.save(Unknown Source)
    06.09 16:07:22 [Server] INFO  at com.zford.jobs.dao.JobsDAOH2.save(Unknown Source)
    06.09 16:07:22 [Server] INFO java.lang.NullPointerException
    06.09 16:07:22 [Server] SEVERE Could not pass event PLAYER_QUIT to Jobs
    06.09 16:07:22 [Server] INFO [Jobs v2.5.0] has been disabled succesfully.
    06.09 16:07:10 [Server] SEVERE [Jobs - database connection error. Disabling jobs!]
    06.09 16:07:10 [Server] SEVERE  ... 30 more
    06.09 16:07:10 [Server] SEVERE  at org.h2.store.FileLock.sleep(FileLock.java:432)
    06.09 16:07:10 [Server] SEVERE  at java.lang.Thread.sleep(Native Method)
    06.09 16:07:10 [Server] SEVERE Caused by: java.lang.InterruptedException: sleep interrupted
    06.09 16:07:10 [Server] SEVERE  at java.lang.Thread.run(Thread.java:662)
    06.09 16:07:10 [Server] SEVERE  at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    06.09 16:07:10 [Server] SEVERE  at de.fgtech.pomo4ka.AuthMe.LoginTimeout.LoginTimer$LoginTimerTask.run(LoginTimer.java:32)
    06.09 16:07:10 [Server] SEVERE  at org.bukkit.craftbukkit.entity.CraftPlayer.kickPlayer(CraftPlayer.java:139)
    06.09 16:07:10 [Server] SEVERE  at net.minecraft.server.NetServerHandler.disconnect(NetServerHandler.java:121)
    06.09 16:07:10 [Server] SEVERE  at net.minecraft.server.ServerConfigurationManager.disconnect(ServerConfigurationManager.java:146)
    06.09 16:07:10 [Server] SEVERE  at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    06.09 16:07:10 [Server] SEVERE  at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    06.09 16:07:10 [Server] SEVERE  at org.bukkit.plugin.java.JavaPluginLoader$2.execute(JavaPluginLoader.java:251)
    06.09 16:07:10 [Server] SEVERE  at com.zford.jobs.listener.JobsPlayerListener.onPlayerQuit(Unknown Source)
    06.09 16:07:10 [Server] SEVERE  at com.zford.jobs.Jobs.removePlayer(Unknown Source)
    06.09 16:07:10 [Server] SEVERE  at com.zford.jobs.Jobs.save(Unknown Source)
    06.09 16:07:10 [Server] SEVERE  at com.zford.jobs.dao.JobsDAOH2.save(Unknown Source)
    06.09 16:07:10 [Server] SEVERE  at com.zford.jobs.dao.JobsDAOH2.getConnection(Unknown Source)
    06.09 16:07:10 [Server] SEVERE  at java.sql.DriverManager.getConnection(DriverManager.java:185)
    06.09 16:07:10 [Server] SEVERE  at java.sql.DriverManager.getConnection(DriverManager.java:582)
    06.09 16:07:10 [Server] SEVERE  at org.h2.Driver.connect(Driver.java:72)
    06.09 16:07:10 [Server] SEVERE  at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:94)
    06.09 16:07:10 [Server] SEVERE  at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:110)
    06.09 16:07:10 [Server] SEVERE  at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:285)
    06.09 16:07:10 [Server] SEVERE  at org.h2.engine.Engine.createSession(Engine.java:28)
    06.09 16:07:10 [Server] SEVERE  at org.h2.engine.Engine.createSession(Engine.java:121)
    06.09 16:07:10 [Server] SEVERE  at org.h2.engine.Engine.createSessionAndValidate(Engine.java:138)
    06.09 16:07:10 [Server] SEVERE  at org.h2.engine.Engine.openSession(Engine.java:159)
    06.09 16:07:10 [Server] SEVERE  at org.h2.engine.Engine.openSession(Engine.java:56)
    06.09 16:07:10 [Server] SEVERE  at org.h2.engine.Database.<init>(Database.java:215)
    06.09 16:07:10 [Server] SEVERE  at org.h2.engine.Database.openDatabase(Database.java:220)
    06.09 16:07:10 [Server] SEVERE  at org.h2.engine.Database.open(Database.java:541)
    06.09 16:07:10 [Server] SEVERE  at org.h2.store.FileLock.lock(FileLock.java:134)
    06.09 16:07:10 [Server] SEVERE  at org.h2.store.FileLock.lockFile(FileLock.java:346)
    06.09 16:07:10 [Server] SEVERE  at org.h2.store.FileLock.sleep(FileLock.java:434)
    06.09 16:07:10 [Server] SEVERE  at org.h2.store.FileLock.getExceptionFatal(FileLock.java:439)
    06.09 16:07:10 [Server] SEVERE  at org.h2.message.DbException.get(DbException.java:156)
    06.09 16:07:10 [Server] SEVERE  at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
    06.09 16:07:10 [Server] SEVERE org.h2.jdbc.JdbcSQLException: Error opening database: "Sleep interrupted" [8000-157]
    16:10:58
    06.09 16:07:10 [Server] SEVERE [Jobs - database connection error. Disabling jobs!]
     

Share This Page