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

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

  1. Offline

    Bhikku

    Really nice Plugin, so i got it right, i can change between 3 kinds of groups, like "break" "place" and "fish". Will be there sth like "craft"?

    I mean, for example you wanna more than the normal jobs, like an Alchemist, who collect mushrooms, using them to produce a soup. Or make some Torches/TNT. I think this would make the plugin more usefull on rpg/survival servers, just a request. Nice work till now.
     
  2. Offline

    Fob_Upset

    How do i convert the jobs from h2 to Mysql?
     
  3. Offline

    DooBLER

    What is the password and user to jobs.h2.db?
     
  4. Offline

    RADE

    This problem persists after upgrading to new version. Maybe you need to fix something in the config?
     
  5. Offline

    phrstbrn

    It's not a bug. Only full experience points are saved. There is nothing wrong with the stock config. YOU put a 0.005 at the end of your income-progression-equation, this modifier does not exist in the stock config. This isn't my problem. It's doing exactly what you told it to do when you changed the equation.

    If you caught 20 fish you would finally gain 1 full experience point, which would be saved to disk. This isn't a bug.

    sa/sa I believe. It's hard coded in the source.

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

    Syntaxlb

    Group 'use' and 'craft' would be awesome.

    And for block the exploit, you can add an option for have a limit money gained per 24h ?
     
  7. Offline

    phrstbrn

    Besides setting block income to negative on place, (with the "None" job I can't think how anybody can exploit anymore if you setup your config proper) somebody asked about the money gains before, and I do plan to implement an optional money/experience limiting system to discourage grinding.

    I posted an example exploit-free config in the OP since people keep asking about it.

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

    Syntaxlb

    Yes, but i don't want do negative income.

    It's would be nice :)

    My solution for this moment, it's for "placing", to set very low prices for the small level and a normal price for the high level, but with a very negative experience gain for "breaking". And i don't use negative income for "breaking".
     
  9. Offline

    Minnich

    19:58:29 [INFO] [Jobs v2.4.0] has been enabled succesfully.
    19:58:29 [SEVERE] Could not pass event PLUGIN_ENABLE to Jobs
    java.lang.NoClassDefFoundError: com/iConomy/iConomy
    at com.zford.jobs.Jobs$2.onPluginEnable(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader$41.execute(JavaPluginLoader.j
    ava:527)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:321)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:864)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:264)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136
    )
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ClassNotFoundException: com.iConomy.iConomy
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:36)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:24)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 13 more

    I get this when I load my server. Any help
     
  10. Offline

    RADE

    Experience should be considered in formula experience-progression-equation, and he is on income-progression-equation .
    In other work, everything is fine.
     
  11. Offline

    phrstbrn

    Bluhh dyslexia is a bitch. I see now.
     
  12. Offline

    ItsQ

    lol, yea i know:p

    but the 'none' will go away when you join a job?
    do you have jobs that you don't have to join but wil always stay?

    And the 'Craft' is a need!

    i made a job now:
    Fighter (for my pvp-arena)
    no money urn but you get xp but i only need to link it up to a /warp to arena only if you got the job, is this passble?
     
  13. Offline

    Syntaxlb

    One question, if the player has not the node "jobs.join.none", he is not in the job "None" ? (if he doesn't have job)
     
  14. Offline

    phrstbrn

    I'm almost certain the none job is not controlled by jobs.join.* since you don't "join" the None job, since "jobs.join" only affects if you can join the job, not if you can be in the job. jobs.world.* still has an effect.
     
  15. Offline

    Syntaxlb

    jobs.world.* solves my problem, thanks you ;)
     
  16. Offline

    ItsQ

    I don't get the titles to work,
    My player is lvl 3 and i have set the title lvl to 3 but no title...
    how do i fixs this?

    I'm useing EssentialsChat and i dont get the titles how do i fix that?

    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) how do i trun it ON ?

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

    Sharpie-o

    Somehow, the users in my server can't earn money or exp with almost all jobs. Only Hunter gives them exp and money. Idea? Which were the permissions for it?
     
  18. Offline

    ItsQ

    Set
    - jobs.world.*
    - jobs.use.*

    Somting like that, i dont realy know
     
  19. Offline

    cpalms

    Is there any way a player can automatically be added/transfered to a job upon entering a server or based on permission group?

    This would be awesome and help servers be more self-sustained
     
  20. Offline

    VoidingNixx

    I am gettin' a bunch of console errors since updating to build 953, with both the mod and the compatible version of the plugin.

     
  21. Offline

    robieman9

    I am using 2.4.1 and have had the plug in work before. I decided i would not want users to be able to build blocks then destroy them for pure profit. So i did what you said and put this into my configuration:
    [​IMG]
    [​IMG]
    and then this error comes up on my server, i thought it was very strange because it brings up the Jobs: as part of the error even though i never edited that and it does not say STONE: as part of the error even though i edited that too and it would be read before obsidian would
    [​IMG]
    I literally have no understanding of whats wrong and do not know what flatfile and most of the other stuff this forum has problems with even mean.
    Please help i have been having troubles with configuration for a while now and would appreciate it greatly
    also i do not have any other plugins installed but iconomy and iconomy death (latest versions too)
     
  22. Offline

    RADE

    Jobs Version: 2.4.1
    I do not know what caused the error. Here is the error code:
    Code:
    2011-07-14 08:54:28 [SEVERE] Could not pass event ENTITY_DEATH to Jobs
    java.lang.NullPointerException
            at com.zford.jobs.listener.JobsKillPaymentListener.nearMobSpawner(Unknown Source)
            at com.zford.jobs.listener.JobsKillPaymentListener.onEntityDeath(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader$56.execute(JavaPluginLoader.java:635)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
            at net.minecraft.server.EntityPlayer.a(EntityPlayer.java:146)
            at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:403)
            at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:441)
            at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:184)
            at net.minecraft.server.EntityWolf.a(EntityWolf.java:360)
            at net.minecraft.server.EntityCreature.c_(EntityCreature.java:68)
            at net.minecraft.server.EntityWolf.c_(EntityWolf.java:95)
            at net.minecraft.server.EntityLiving.u(EntityLiving.java:702)
            at net.minecraft.server.EntityWolf.u(EntityWolf.java:141)
            at net.minecraft.server.EntityLiving.o_(EntityLiving.java:232)
            at net.minecraft.server.EntityWolf.o_(EntityWolf.java:169)
            at net.minecraft.server.World.entityJoinedWorld(World.java:1142)
            at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:49)
            at net.minecraft.server.World.playerJoinedWorld(World.java:1124)
            at net.minecraft.server.World.cleanUp(World.java:1101)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:447)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  23. Offline

    Krieggman

    I had Jobs going for a while on my server, and it was running excellently, but then people started exploiting, so we took it out. Now, after I have changed a bit of the config (as shown below), I get "An internal error has occured." I assume it was something I did/typed, so I was wondering if you could possibly proof-read this, or help me out. Thank you in advance!

    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:
        # 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
            # The colour of the name, for a full list of supported colours, go to the message config.
            ChatColour: GREEN
            # Option to let you choose what kind of prefix this job adds to your name.
            # options are: full, title, job, shortfull, shorttitle, shortjob and none
            chat-display: none
            # [OPTIONAL] - the maximum level of this class
            max-level: 120
            # [OPTIONAL] - the maximum number of users on the server that can have this job at
            # any one time (includes offline players).
            #slots: 1
            # Equation used for calculating how much experience is needed to go to the next level.
            # Available parameters:
            #   numjobs - the number of jobs the player has
            #   joblevel - the level the player has attained in the job.
            # NOTE: Please take care of the brackets when modifying this equation.
            leveling-progression-equation: 100*((1.13 (0.01*(numjobs-1)))^(joblevel-1))
            # Equation used for calculating how much income is given per action for the job level.
            # Available parameters:
            #   baseincome - the income for the action at level 1 (as set in the configuration).
            #   joblevel - the level the player has attained in the job.
            # NOTE: Please take care of the brackets when modifying this equation.
            income-progression-equation: baseincome*((1.05)^(joblevel-1))
             # Equation used for calculating how much experience is given per action for the job level.
            # Available parameters:
            #   baseexperience - the experience for the action at level 1 (as set in the configuration).
            #   joblevel - the level the player has attained in the job.
            # NOTE: Please take care of the brackets when modifying this equation.
            experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
            ########################################################################
            # Section used to configure what items the job gets paid for, how much
            # they get paid and how much experience they gain.
            #
            # For break and place, the block name or id is used.
            # You can select a sub-type by using a '-' between the id and the bit
            # value for the sub-type. e.g LOG-0 = usual log, LOG-2 = birch log
            # 17-2 = birch log.
            #
            # If no sub-type is give, the payout will be for all sub-types.
            #
            # To get a list of all available block types, check the
            # bukkit JavaDocs for a complete list of block types
            # http://jd.bukkit.org/apidocs/org/bukkit/Material.html
            #
            # For kill tags (Kill and custom-kill), the name is the name of the
            # mob.
            # Available mobs:
            #   Chicken
            #   Cow
            #   Pig
            #   Sheep
            #   Wolf
            #   Creeper
            #   Giant
            #   Skeleton
            #   Spider
            #   Zombie
            #   PigZombie
            #   Squid
            #   Ghast
            #   Player
            #   Slime
            #
            # NOTE: mob names are case sensitive.
            #
            # For custom-kill, it is the name of the job (also case sensitive).
            #
            # NOTE: If a job has both the pay for killing a player and for killing a
            # specific class, they will get both payments.
            ########################################################################
            # payment for breaking a block
            Break:
                # block name/id (with optional sub-type)
                LOG:
                    # base income
                    income: 5.0
                    # base experience
                    experience: 5.0
            # payment for placing a block
                SAPLING:
                    income: -1.0
                    experience: -1.0
            Place:
                WOOD:
                    income: -5.0
                    experience: -5.0
            # killing a mob
            Kill:
                # mob name
                Player:
                    # base income
                    income: 7.5
                    # base experience
                    experience: 7.5
            # killing a jobs class
            custom-kill:
                # full name of the jobs class
                Woodcutter:
                    # base income
                    income: 10.0
                    # base experience
                    experience: 10.0
        Miner:
            fullname: Miner
            shortname: M
            ChatColour: DARK_GRAY
            chat-display: none
            max-level: 120
            #slots: 10
            leveling-progression-equation: 100*((1.13 (0.01*(numjobs-1)))^(joblevel-1))
            income-progression-equation: baseincome*((1.05)^(joblevel-1))
            experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
            Break:
                STONE:
                    income: 1.0
                    experience: 1.0
                COAL_ORE:
                    income: 2.0
                    experience: 2.0
                REDSTONE_ORE:
                    income: 3.0
                    experience: 3.0
                IRON_ORE:
                    income: 4.0
                    experience: 4.0
                GOLD_ORE:
                    income: 5.0
                    experience: 5.0
                LAPIS_ORE:
                    income: 5.0
                    experience: 5.0
                DIAMOND_ORE:
                    income: 6.0
                    experience: 6.0
            Place:
                RAILS:
                    income: 2.0
                    experience: 2.0
                IRON_ORE:
                    income: -5.0
                    experience: -5.0
                GOLD_ORE:
                    income: -6.0
                    experience: -6.0
                OBSIDIAN:
                    income: -7.5
                    experience: -7.5
                MOSSY_COBBLESTONE:
                    income: -3.0
                    experience: -3.0
            Kill:
                Player:
                    income: 7.5
                    experience: 7.5
            custom-kill:
                Miner:
                    income: 10.0
                    experience: 10.0
        Builder:
            fullname: Builder
            shortname: B
            ChatColour: WHITE
            chat-display: none
            max-level: 120
            #slots: 10
            leveling-progression-equation: 100*((1.13 (0.01*(numjobs-1)))^(joblevel-1))
            income-progression-equation: baseincome*((1.05)^(joblevel-1))
            experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
            Place:
                COBBLESTONE:
                    income: 1.0
                    experience: 1.0
                WOOD:
                    income: 1.5
                    experience: 1.5
                FENCE:
                    income: 1.5
                    experience: 1.5
                WOOL:
                    income: 1.5
                    experience: 1.5
                STONE:
                    income: 2.25
                    experience: 2.25
                GLOWSTONE:
                    income: 3.0
                    experience: 3.0
                SANDSTONE:
                    income: 2.0
                    experience: 2.0
                GLASS:
                    income: 3.0
                    experience: 3.0
                BRICK:
                    income: 4.0
                    experience: 4.0
                LAPIS_BLOCK:
                    income: 5.0
                    experience: 5.0
                DOUBLE_STEP:
                    income: 2.0
                    experience: 2.0
                STEP:
                    income: 2.0
                    experience: 2.0
                BOOKSHELF:
                    income: 3.0
                    experience: 3.0
                WOOD_STAIRS:
                    income: 2.0
                    experience: 2.0
                COBBLESTONE_STAIRS:
                    income: 2.0
                    experience: 2.0
                MOSSY_COBBLESTONE:
                    income: 6.0
                    experience: 6.0
                DIAMOND_BLOCK:
                    income: 5.0
                    experience: 5.0
                GOLD_BLOCK:
                    income: 5.0
                    experience: 5.0
            Break:
                COBBLESTONE:
                    income: -1.0
                    experience: -1.0
                WOOD:
                    income: -1.5
                    experience: -1.5
                FENCE:
                    income: -1.5
                    experience: -1.5
                WOOL:
                    income: -1.5
                    experience: -1.5
                STONE:
                    income: -2.25
                    experience: -2.25
                GLOWSTONE:
                    income: -3.0
                    experience: -3.0
                SANDSTONE:
                    income: -2.0
                    experience: -2.0
                GLASS:
                    income: -3.0
                    experience: -3.0
                BRICK:
                    income: -4.0
                    experience: -4.0
                LAPIS_BLOCK:
                    income: -5.0
                    experience: -5.0
                DOUBLE_STEP:
                    income: -2.0
                    experience: -2.0
                STEP:
                    income: -2.0
                    experience: -2.0
                BOOKSHELF:
                    income: -3.0
                    experience: 3.0
                WOOD_STAIRS:
                    income: -2.0
                    experience: -2.0
                COBBLESTONE_STAIRS:
                    income: -2.0
                    experience: -2.0
                MOSSY_COBBLESTONE:
                    income: -6.0
                    experience: -6.0
                DIAMOND_BLOCK:
                    income: -5.0
                    experience: -5.0
                GOLD_BLOCK:
                    income: -5.0
                    experience: -5.0
            Kill:
                Player:
                    income: 7.5
                    experience: 7.5
            custom-kill:
                Builder:
                    income: 10.0
                    experience: 10.0
        Digger:
            fullname: Digger
            shortname: D
            ChatColour: GOLD
            chat-display: none
            max-level: 120
            #slots: 10
            leveling-progression-equation: 100*((1.13 (0.01*(numjobs-1)))^(joblevel-1))
            income-progression-equation: baseincome*((1.05)^(joblevel-1))
            experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
            Break:
                DIRT:
                    income: 0.5
                    experience: 2.0
                GRASS:
                    income: 0.5
                    experience: 2.0
                GRAVEL:
                    income: 0.5
                    experience: 2.0
                SAND:
                    income: 0.5
                    experience: 2.0
                CLAY:
                    income: 1.0
                    experience: 2.0
            Kill:
                Player:
                    income: 7.5
                    experience: 7.5
            custom-kill:
                Digger:
                    income: 10.0
                    experience: 10.0
        Farmer:
            fullname: Farmer
            shortname: Fa
            ChatColour: BLUE
            chat-display: none
            max-level: 120
            #slots: 10
            leveling-progression-equation: 100*((1.13 (0.01*(numjobs-1)))^(joblevel-1))
            income-progression-equation: baseincome*((1.05)^(joblevel-1))
            experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
            Break:
                CROPS-7:
                    income: 4.0
                    experience: 4.0
                SUGAR_CANE_BLOCK:
                    income: 4.0
                    experience: 4.0
            Place:
                SEEDS:
                    income: 3.0
                    experience: 3.0
                SUGAR_CANE_BLOCK:
                    income: -4.0
                    experience: -4.0
            Kill:
                Player:
                    income: 7.5
                    experience: 7.5
            custom-kill:
                Farmer:
                    income: 10.0
                    experience: 10.0
        Hunter:
            fullname: Hunter
            shortname: H
            ChatColour: RED
            chat-display: none
             max-level: 120
            #slots: 10
            leveling-progression-equation: 100*((1.13 (0.01*(numjobs-1)))^(joblevel-1))
            income-progression-equation: baseincome*((1.05)^(joblevel-1))
            experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
            Kill:
                Chicken:
                    income: 0.5
                    experience: 2.5
                Cow:
                    income: 0.5
                    experience: 2.5
                Pig:
                    income: 0.5
                    experience: 2.5
                Sheep:
                    income: 0.5
                    experience: 2.5
                Wolf:
                    income: 20.0
                    experience: 5.0
                Creeper:
                    income: 50.0
                    experience: 10.0
                Skeleton:
                    income: 15.0
                    experience: 10.0
                Spider:
                    income: 30.0
                    experience: 10.0
                Zombie:
                    income: 25.0
                    experience: 10.0
                Player:
                    income: 15.0
                    experience: 7.5
            custom-kill:
                Woodcutter:
                    income: 25.0
                    experience: 10.0
                Miner:
                    income: 25.0
                    experience: 10.0
                Digger:
                    income: 25.0
                    experience: 10.0
                Farmer:
                    income: 25.0
                    experience: 10.0
                Builder:
                    income: 25.0
                    experience: 10.0
                Hunter:
                    income: 35.0
                    experience: 20.0
        Fisherman:
            fullname: Fisherman
            shortname: Fi
            ChatColour: AQUA
            chat-display: none
            max-level: 120
            #slots: 10
            leveling-progression-equation: 100*((1.13 (0.01*(numjobs-1)))^(joblevel-1))
            income-progression-equation: baseincome*((1.05)^(joblevel-1))
            experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
            Fish:
                RAW_FISH:
                    income: 10.0
                    experience: 10.0
            Kill:
                Player:
                    income: 7.5
                    experience: 7.5
            custom-kill:
                Fisherman:
                    income: 10.0
                    experience: 10.0
        None:
            fullname: None
            shortname: N
            ChatColour: WHITE
            chat-display: none
            #max-level: 10
            #slots: 10
            leveling-progression-equation: 100*((1.13 (0.01*(numjobs-1)))^(joblevel-1))
            income-progression-equation: baseincome*((1.05)^(joblevel-1))
            experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
            Kill:
                Player:
                    income: 7.5
     
  24. Offline

    McMicGera

    Hello, I'm using Bukkit 953 and Jobs 2.4.1. with iConomy 5.0.1 and some other plugins and get this error everytime I change the jobconfig.yml on my own. I do not use tabs or ä ö ü and the syntax is right! Does it not work with Item-IDs any more?

    Code:
    [SEVERE] Error occurred while enabling Jobs v2.4.1 (Is it up to date?): java.lang.Integer cannot be cast to java.lang.String
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
        at com.zford.jobs.config.JobsConfiguration.loadJobSettings(Unknown Source)
        at com.zford.jobs.config.JobsConfiguration.<init>(Unknown Source)
        at com.zford.jobs.config.JobsConfiguration.getInstance(Unknown Source)
        at com.zford.jobs.Jobs.onEnable(Unknown Source)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  25. Offline

    AriesT

    Good plugin.. but need some work with it..

    - Out of message "You have already joined too many jobs." in messageConfig.yml

    Thanks, keep it up!
     
  26. Offline

    zippolino

    Hey, your Plugin is awesome. Works great on my Server.
    BUT my job "Farmer" is broken. I dont get money for breaking "Seeds-7" and for placing "Seeds".

    This is the code for my farmer, as you can see i tried it with "Seeds-0" and "Seeds" but nothing happens.

    Code:
    Farmer:
            fullname: Farmer
            shortname: F
            ChatColour: BLUE
            chat-display: full
            max-level: 10
            slots: 20
            leveling-progression-equation: 100*(1.5^(joblevel-1))
            income-progression-equation: baseincome*((1.05)^(joblevel-1))
            experience-progression-equation: baseexperience*((1.1)^(joblevel-1))
            Break:
                Seeds-7:
                    income: 30.0
                    experience: 40.0
                SUGAR_CANE_BLOCK:
                    income: 0.5
                    experience: 1.0
                DIRT:
                    income: 0.6
                    experience: 0.6
                GRASS:
                    income: 0.6
                    experience: 0.6
            Place:
                Seeds-0:
                    income: 0.5
                    experience: 1.0
                Seeds:
                    income: 0.5
                    experience: 1.0
                SUGAR_CANE_BLOCK:
                    income: 1.0
                    experience: 1.0
            FISH:
                RAW_FISCH:
                    income: 20.0
                    experience: 30.0
            Kill:
                Player:
                    income: 7.5
                    experience: 7.5
                SQUID:
                    income: 10.0
                    experience: 10.0
                PIG:
                    income: 5.0
                    experience: 5.0
            custom-kill:
                Farmer:
                    income: 10.0
                    experience: 10.0
    
    I hope its my fault and you can help me.
    I use 2.4.0

    Thx
    Zippolino

    EDIT: ok i changed Break "Seeds-7" to "CROPS-7" and it worked! lol
    and i changed Place "Seeds" to "CROPS-0" and it worked, too!
     
  27. Offline

    jujub2o

    Awesome plugin !

    Can you add the support for EssentialsEco ?
    That should be very useful !

    Thanks !
     
  28. Offline

    robieman9

    Does jobs work with lists?
     
  29. Offline

    darkzersoo

    Hey i have a Problem starting your Plugin.

    Bukkit Version: Build 953
    Jobs Version: 2.4.1
    Using Permissions: yes
    Economy Plugin: iConomy version 5(newest)
    Plugins Installed: (output of /pl)

    Plugins:
    WorldGuard
    FLTDetector
    StealthLogin
    WorldEdit
    VanishNoPickup
    Jail
    mmcMMO
    Essentials
    GroupManager
    SecretDoors
    NoAFK
    MagicCarpet
    BukkitCompat
    FalseBookIC
    FalseBookBlock
    FalseBookExtra
    GravelClay
    BukkitContrib
    LogBlockQuestioner
    NSCommand
    PetitionPlugin
    ConomyChestShop
    mcbans
    Permissions
    Warning
    BorderGuard
    dynmap
    iConomy
    HeroChat
    FalseBookCore
    LogBlock
    LWC
    EssentialsSpawn
    AntiBuild
    Jobs
    NoCheat
    Did you try disabling plugins? no
    What troubleshooting steps did you try:

    After starting the Server i got the following Problem:

    Code:
    [SEVERE] Error occurred while enabling Jobs v2.4.1 (Is it up to date?): special characters are not allowed
    unacceptable character #FFFD special characters are not allowed
    in "<reader>", position 614
            at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.java:68)
            at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:159)
            at org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:117)
            at org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:106)
            at org.yaml.snakeyaml.scanner.ScannerImpl.scanToNextToken(ScannerImpl.java:964)
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:237)
            at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
            at org.yaml.snakeyaml.parser.ParserImpl$ParseImplicitDocumentStart.produce(ParserImpl.java:200)
            at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
            at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:104)
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
            at org.bukkit.util.config.Configuration.load(Configuration.java:82)
            at com.zford.jobs.config.JobsConfiguration.loadJobSettings(Unknown Source)
            at com.zford.jobs.config.JobsConfiguration.<init>(Unknown Source)
            at com.zford.jobs.config.JobsConfiguration.getInstance(Unknown Source)
            at com.zford.jobs.Jobs.onEnable(Unknown Source)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    if i type /jobs browse in i got:

    Code:
    [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'jobs' in plugin Jobs v2.4.1
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:711)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
            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)
    Caused by: unacceptable character #FFFD special characters are not allowed
    in "<reader>", position 614
            at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.java:68)
            at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:159)
            at org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:117)
            at org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:106)
            at org.yaml.snakeyaml.scanner.ScannerImpl.scanToNextToken(ScannerImpl.java:964)
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:237)
            at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
            at org.yaml.snakeyaml.parser.ParserImpl$ParseImplicitDocumentStart.produce(ParserImpl.java:200)
            at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
            at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:104)
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
            at org.bukkit.util.config.Configuration.load(Configuration.java:82)
            at com.zford.jobs.config.JobsConfiguration.loadJobSettings(Unknown Source)
            at com.zford.jobs.config.JobsConfiguration.<init>(Unknown Source)
            at com.zford.jobs.config.JobsConfiguration.getInstance(Unknown Source)
            at com.zford.jobs.Jobs.onCommand(Unknown Source)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    
    Hope you can help me out.
     
  30. Offline

    Tadas159

    I get these after starting my server.
    i use iConomy and BigBrother with H2
    Code:
    2011-07-15 03:55:10 [SEVERE] java.sql.SQLException: invalid database address: jdbc:h2:plugins/Jobs/jobs
    2011-07-15 03:55:10 [SEVERE]     at org.sqlite.JDBC.createConnection(JDBC.java:74)
    2011-07-15 03:55:10 [SEVERE]     at org.sqlite.JDBC.connect(JDBC.java:64)
    2011-07-15 03:55:10 [SEVERE]     at java.sql.DriverManager.getConnection(DriverManager.java:620)
    2011-07-15 03:55:10 [SEVERE]     at java.sql.DriverManager.getConnection(DriverManager.java:200)
    2011-07-15 03:55:10 [SEVERE]     at com.zford.jobs.dao.JobsDAOH2.getConnection(Unknown Source)
    2011-07-15 03:55:10 [SEVERE]     at com.zford.jobs.dao.JobsDAOH2.save(Unknown Source)
    2011-07-15 03:55:10 [SEVERE]     at com.zford.jobs.Jobs.save(Unknown Source)
    2011-07-15 03:55:10 [SEVERE]     at com.zford.jobs.Jobs.removePlayer(Unknown Source)
    2011-07-15 03:55:10 [SEVERE]     at com.zford.jobs.listener.JobsPlayerListener.onPlayerQuit(Unknown Source)
    2011-07-15 03:55:10 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader$2.execute(JavaPluginLoader.java:251)
    2011-07-15 03:55:10 [SEVERE]     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    2011-07-15 03:55:10 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
    2011-07-15 03:55:10 [SEVERE]     at net.minecraft.server.ServerConfigurationManager.disconnect(ServerConfigurationManager.java:146)
    2011-07-15 03:55:10 [SEVERE]     at net.minecraft.server.NetServerHandler.disconnect(NetServerHandler.java:116)
    2011-07-15 03:55:10 [SEVERE]     at org.bukkit.craftbukkit.entity.CraftPlayer.kickPlayer(CraftPlayer.java:131)
    2011-07-15 03:55:10 [SEVERE]     at com.cypherx.xauth.xAuth$1.run(xAuth.java:148)
    2011-07-15 03:55:10 [SEVERE]     at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    2011-07-15 03:55:10 [SEVERE]     at java.lang.Thread.run(Thread.java:636)
    2011-07-15 03:55:10 [SEVERE] [Jobs - database connection error. Disabling jobs!]
    2011-07-15 03:55:12 [INFO] Connection reset
    2011-07-15 03:55:14 [INFO] [Jobs v2.4.1] has been disabled succesfully.
    2011-07-15 03:55:14 [SEVERE] Could not pass event PLAYER_QUIT to Jobs
    java.lang.NullPointerException
        at com.zford.jobs.dao.JobsDAOH2.save(Unknown Source)
        at com.zford.jobs.Jobs.save(Unknown Source)
        at com.zford.jobs.Jobs.removePlayer(Unknown Source)
        at com.zford.jobs.listener.JobsPlayerListener.onPlayerQuit(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader$2.execute(JavaPluginLoader.java:251)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
        at net.minecraft.server.ServerConfigurationManager.disconnect(ServerConfigurationManager.java:146)
        at net.minecraft.server.NetServerHandler.disconnect(NetServerHandler.java:116)
        at org.bukkit.craftbukkit.entity.CraftPlayer.kickPlayer(CraftPlayer.java:131)
        at com.cypherx.xauth.xAuth$1.run(xAuth.java:148)
        at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
        at java.lang.Thread.run(Thread.java:636)
    2011-07-15 03:55:14 [SEVERE] Could not pass event PLAYER_ANIMATION to Jobs
    java.lang.NullPointerException
        at com.zford.jobs.listener.JobsFishPaymentListener.onPlayerAnimation(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader$15.execute(JavaPluginLoader.java:342)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:785)
        at net.minecraft.server.Packet18ArmAnimation.a(SourceFile:35)
        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)
     

Share This Page