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

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

  1. Offline

    Rsccman

    tthe command is jobs anyways
     
  2. Offline

    oleg

    Theres any way to disable item drop and display every brake the leveling exp
     
  3. Offline

    Rsccman

    yes...
    its called not using that one or removing it off
     
  4. Offline

    ray0911

    === start ===
    Bukkit Version: Build 1000
    Jobs Version: 2.4.3 and also tried 2.4.6
    Using Permissions: yes
    Economy Plugin: iConomy version 5
    Plugins Installed: All other remove besides multiverse, iconomy,jobs,worldedit
    Did you try disabling plugins? yes
    What troubleshooting steps did you try:
    • Step1 Reset jobsconfig
    • Step2 reset database (delete)
    • Step3 remove all restricted areas
    Steps to Reproduce:
    • Step1 break dirt with shovel
    • Step2 break dirt by hand
    • Step3 ??
    Expected Behavior:
    Exp gain
    ===stop===

    Build:1000
    Jobs:2.4.3
    Problem: When I break dirt I should be getting EXP. However, I get the NullPointerException error below.

    console data
    Code:
    2011-07-23 00:32:32 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-945-g73697a4-b1000jnks (MC: 1.7.3)
    
    2011-07-23 00:32:45 [INFO] [Jobs] - max-jobs property not found. Defaulting to unlimited!
    
    2011-07-23 00:32:45 [INFO] [Jobs] - Job Survivalist is missing the slots property. defaulting to no limits !
    
    2011-07-23 00:32:49 [INFO] [Jobs v2.4.3] has been enabled succesfully.
    
    2011-07-23 00:45:38 [SEVERE] Could not pass event BLOCK_BREAK to Jobs
    java.lang.NullPointerException
        at com.zford.jobs.config.container.RestrictedArea.inRestrictedArea(Unknown Source)
        at com.zford.jobs.config.container.RestrictedArea.isRestricted(Unknown Source)
        at com.zford.jobs.config.container.RestrictedArea.isRestricted(Unknown Source)
        at com.zford.jobs.listener.JobsBlockPaymentListener.onBlockBreak(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader$36.execute(JavaPluginLoader.java:490)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
        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:461)
        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:85)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    jobConfig.yml
    Code:
    # Jobs configuration.
    #
    # Stores information about each job.
    #
    # NOTE: When having multiple jobs, both jobs will give the income payout to the player
    # even if they give the pay for one action (make the configurations with this in mind)
    # and each job will get the respective experience.
    #
    # e.g If player has 2 jobs where job1 gives 10 income and experience for killing a player
    # and job2 gives 5 income and experience for killing a player. When the user kills a player
    # they will get 15 income and job1 will gain 10 experience and job2 will gain 5 experience.
    Jobs:
        Survivalist:
            fullname: Survivalist
            shortname: A
            ChatColour: DARK_RED
            chat-display: shorttitle
            max-level: 100
            slots: 10000
            leveling-progression-equation: 350*((1.13+(0.01*(1)))^(joblevel-1))
            income-progression-equation: baseincome*((1.05)^(joblevel-1))
            experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
            Break:
                LOG:
                    income: 0.01
                    experience: 1
                DIRT:
                    income: 0.01
                    experience: 1
                GRASS:
                    income: 0.01
                    experience: 1
                GRAVEL:
                    income: 0.01
                    experience: 1
                SAND:
                    income: 0.01
                    experience: 1
                CLAY:
                    income: 0.01
                    experience: 1
                SUGAR_CANE_BLOCK:
                    income: 0.01
                    experience: 1
                STONE:
                    income: 0.01
                    experience: 1
                COAL_ORE:
                    income: 0.01
                    experience: 2
                REDSTONE_ORE:
                    income: 0.01
                    experience: 2
                IRON_ORE:
                    income: 0.01
                    experience: 2
                GOLD_ORE:
                    income: 0.01
                    experience: 2
                LAPIS_ORE:
                    income: 0.01
                    experience: 2
                DIAMOND_ORE:
                    income: 0.01
                    experience: 2
                OBSIDIAN:
                    income: 0.01
                    experience: 2
                SAPLING:
                    income: -0.01
                    experience: -1
                SEEDS:
                    income: -0.01
                    experience: -1
                MOSSY_COBBLESTONE:
                    income: 0.01
                    experience: 1
            Place:
                LOG:
                    income: 0
                    experience: -1
                DIRT:
                    income: 0
                    experience: -1
                GRASS:
                    income: 0
                    experience: -1
                STONE:
                    income: 0
                    experience: -1
                CLAY:
                    income: 0
                    experience: -1
                SAPLING:
                    income: 0
                    experience: 1
                IRON_ORE:
                    income: 0
                    experience: -2
                GOLD_ORE:
                    income: 0
                    experience: -2
                SEEDS:
                    income: 0
                    experience: 1
                MOSSY_COBBLESTONE:
                    income: 0
                    experience: -1
            Fish:
                RAW_FISH:
                    income: 0
                    experience: 4
            Kill:
                Chicken:
                    income: 0.01
                    experience: 2
                Cow:
                    income: 0.01
                    experience: 2
                Pig:
                    income: 0.01
                    experience: 2
                Sheep:
                    income: 0.01
                    experience: 2
                Wolf:
                    income: 0.01
                    experience: 2
                Creeper:
                    income: 0.01
                    experience: 2
                Skeleton:
                    income: 0.01
                    experience: 2
                Spider:
                    income: 0.01
                    experience: 2
                Zombie:
                    income: 0.01
                    experience: 2
                Player:
                    income: 0.01
                    experience: 2
            custom-kill:
                Survivalist:
                    income: 2.0
                    experience: 2
    restrictedAreas.yml
    Code:
    # Restricted area configuration
    
    # Configures restricted areas where you cannot get experience or money
    # when performing a job.
    
    # Uncomment below to enable restricted names.  There is no limit to the number
    # of restricted areas.
    
    restrictedareas:
        area1:
            world: 'world'
            point1:
                x: 8000
                y: 0
                z: 8000
            point2:
                x: -8000
                y: 130
                z: -8000
        area2:
            world: 'BattleWorld'
            point1:
                x: 2000
                y: 0
                z: 2000
            point2:
                x: -2000
                y: 130
                z: -2000
        area4:
            world: 'golf'
            point1:
                x: 1000
                y: 0
                z: 1000
            point2:
                x: -1000
                y: 130
                z: -1000
        area5:
            world: 'jail'
            point1:
                x: 1000
                y: 0
                z: 1000
            point2:
                x: -1000
                y: 130
                z: -1000
        area6:
            world: 'Left4Dead'
            point1:
                x: 1000
                y: 0
                z: 1000
            point2:
                x: -1000
                y: 130
                z: -1000
        area8:
            world: 'world_nether'
            point1:
                x: 600
                y: 0
                z: 600
            point2:
                x: -600
                y: 130
                z: -600
        area9:
            world: 'redvsblue'
            point1:
                x: 600
                y: 0
                z: 600
            point2:
                x: -600
                y: 130
                z: -600
        area10:
            world: 'RedvsBlueNether'
            point1:
                x: 600
                y: 0
                z: 600
            point2:
                x: -600
                y: 130
                z: -600
    titleConfig.yml
    Code:
    # Title configuration
    #
    # Stores the titles people gain at certain levels.
    # Each title requres to have a name, short name (used when the player has more than
    # 1 job) the colour of the title and the level requrirement to attain the title.
    #
    # It is recommended but not required to have a title at level 0.
    #
    # Titles are completely optional.
    Titles:
    Peasant:
    Name: Peasant
    ShortName: P
    ChatColour: DARK_RED
    levelReq: 0
    Berserker:
    Name: Berserker
    ShortName: BE
    ChatColour: DARK_RED
    levelReq: 11
    Bloodknight:
    Name: Bloodknight
    ShortName: BL
    ChatColour: DARK_RED
    levelReq: 22
    Conqueror:
    Name: Conqueror
    ShortName: CO
    ChatColour: DARK_RED
    levelReq: 33
    Legionnaire:
    Name: Legionnaire
    ShortName: L
    ChatColour: DARK_RED
    levelReq: 44
    Centurion:
    Name: Centurion
    ShortName: C
    ChatColour: DARK_RED
    levelReq: 55
    Psychopath:
    Name: Psychopath
    ShortName: P
    ChatColour: DARK_RED
    levelReq: 66
    Gladiator:
    Name: Gladiator
    ShortName: G
    ChatColour: DARK_RED
    levelReq: 77
    Warlord:
    Name: Warlord
    ShortName: W
    ChatColour: DARK_RED
    levelReq: 88
    High Warlord:
    Name: High Warlord
    ShortName: HW
    ChatColour: DARK_RED
    levelReq: 100
    
    
     
  5. Offline

    slater96

    Hi, could you make the jobs Hunter be set in certain places. I have the plugin MobArena and want me and my mates to earn money when you kill mobs in the arena but not anywhere else. Thanks, I hope you understand what i mean :)
     
  6. Offline

    Syntaxlb

    Hi, i have iConomy AND BOSEconomy on my server. How i can do for job works only with BOSEconomy please ?
     
  7. Offline

    ray0911



    Fixed! lol.. I recently remove a mutliverse world called 'RedvsBlueNether' but did not remove it in the restrictedAreas.yml file.
     
  8. Offline

    nico2111

    I've a problem when peopole speak the job and the title not appear behind the name.
    How I can add they?
    note: my chat_display are full

    probleme resolved essentials block it

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

    thehutch

    I'm having a major bug where it won't let me leave my job, /jobs leave won't work, /jobs fire .... won't work and even though I used the console and said it had been performed it clearly hadn't and it won't let me leave.

    Here is a screenshot:

    http://imageshack.us/photo/my-images/594/20110723233747.png/
     
  10. Offline

    oleg

    What could it mean to me what you saye,
    i mean what i need to type in jobs properties?
     
  11. Offline

    Syntaxlb

     
  12. Offline

    Enraged

    i think i found another bug:

    when leaving a job the jobtitle is still shown.
    So e.g. i become a farmer then i get the chat tag [Farmer]:
    [Farmer] XYZ: message

    When leaving the job as a farmer and e.g. becoming a Miner then this happens:

    [Miner][Farmer]XYZ: message

    So the Farmer-Tag is still shown :(
    The only way i found to solve this is relogging. After relogging the old tag is not shown anymore.

    Is this a known bug?
     
  13. Hi,
    I have a small problem with your plugin.

    Following predefined:

    Until now, all players on my server jobs join / leave and get
    EXP and money.

    But when a player does not work.
    Name: Blo0dy_Isaac

    May be due to the name?

    Lg, Blackmutzi
     
  14. Offline

    Daolin1

    Is it possible to put shearing sheep into the mix? I don't know if it's a command that can already be added or something that needs to be implemented.
     
  15. Offline

    Luk

    Same here.
     
  16. Offline

    chisox8

    I am having a problem where if I want to change anything in the jobConfig.yml the entire plugin just stops or starts giving me all kinds of errors. I am on Bukkit Build 1000, and the most recent Jobs (just downloaded it). I have used jobs before, but this has always happened to me. I have only tried editing the job Farmer, but say I wanted to add this under Break:
    86:
    income: 7.0
    experience: 7.0

    that would be for Pumkin. Is that correct (I know its not in YML Formating at the moment.) and also, do negative numbers work? (eg. income: -3.0 ?)

    Thanks in advance!
     
  17. Offline

    Rsccman

    you need to state it as PUMPKIN'
    NOT NUMBER
     
  18. Offline

    chisox8

    Actually, I read in the config that you could state it as the number and even if I do pumpkin (which I already tried) it doesn't work... Any other thoughts?

    I'll try it again when I get home, but I don't want to screw it up and have to reconfigure it all over again... again. Lol!
     
  19. Offline

    Luk

    17:53:55 [SEVERE] Could not pass event PLAYER_DROP_ITEM to Jobs
    java.lang.NullPointerException
    at org.bukkit.material.SimpleAttachableMaterialData.getFacing(SimpleAttachableMaterialData.java:38)
    at org.bukkit.material.SimpleAttachableMaterialData.toString(SimpleAttachableMaterialData.java:43)
    at java.lang.String.valueOf(String.java:2826)
    at java.lang.StringBuilder.append(StringBuilder.java:115)
    at com.zford.jobs.config.container.Job.getFishIncome(Unknown Source)
    at com.zford.jobs.config.container.PlayerJobInfo.dropped(Unknown Source)
    at com.zford.jobs.listener.JobsFishPaymentListener.onPlayerDropItem(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader$18.execute(JavaPluginLoader.java:363)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
    at net.minecraft.server.EntityHuman.a(EntityHuman.java:293)
    at net.minecraft.server.EntityHuman.F(EntityHuman.java:253)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:415)
    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:84)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  20. Offline

    Daxiongmao87

    Suggestion: This is the primary plugin on my server, and I love its customizeability. Unfortunately, however, it doesn't have the ability to add perks when leveling up your jobs. I wish you could implement this some how. Something to add "crits" or double drops or insta-breaks would be great! That way i don't have to couple it with another plugin like MCMMO
     
  21. Offline

    Rsccman

    i
    i get this error all the time
     
  22. Offline

    Live or Die

    why dont you make it like Paid2Mine?
    when the player put somthing on the groud and brake it, it dosent pay him.
     
  23. Offline

    Angelus1992

    @phrstbrn
    I've got a suggestion for this plugin (I am not a developer and I have no idea about programming, so it's just an idea what I bring), you could make the following two functions (I mean, like the PLACE, KILL, BREAK, FISH):
    Craft: For each time an item is created
    Smelt: For each time an item is smelted.
    Also, that only players with a job can realize the actions the job pays for. Example of this: only miners can mine, only farmers can farm, etc. This forces the players to exchange items, and makes a better economy.

    It's just an idea and I don't have any ideas of how to make them work.

    Excellent plugin by the way, and sorry for my (possible) bad english
     
  24. Offline

    TheShadow777

    hey what is better: mysql or h2 ? because i believe mysql makes laggs :confused:
     
  25. Offline

    flametornado

    Because what they've done there can result in a colossal mess and it's not really foolproof. After a quick glance over Paid2Mine code, they just store whatever block is placed into memory. Meaning that whenever the server restarts it'll lose that and anyone can break whatever they want. Not only that but on larger servers, the hash map they use can result in a large amount of memory usage and lag.

    As far as i can see, there is no definite realistic measure that you can do to stop this exploit.
     
  26. Offline

    Shooty

    @phrstbrn Hey, can you add multiworld support ? Beacause i have a Pixelart map and players can be given blocks and make money easy :(
     
  27. Offline

    phrstbrn

    You can already do that with permissions
     
  28. Offline

    Shooty

    Sorry i'v just see that... :p
     
  29. Offline

    Live or Die

    ty for explaning :)
    anyway i forgot to say ty, its working great.
     
  30. I suddenly get this Error:
    Can anyone tell me where the Error lies? Iam not good with Java
     

Share This Page