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

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

  1. Offline

    phrstbrn

    Jobs
    The Job plugin for Minecraft is a fully configurable plugin that allows you to get paid for breaking, placing, killing, fishing, and crafting. Class based (experience increases as you perform your job).


    >> Get the latest release @ Dev Bukkit <<


    Original Plugin:

    The original Jobs plugin was written by Flametornado. The original thread can be found here.
     
  2. Offline

    kahlilnc

    The other one isnt inactive is it?
     
    Telanis likes this.
  3. Offline

    phrstbrn

    Flametornado has stopped developing the Jobs plugin and has asked me to take over development.

    See his post
     
    IstominHero, DeathNOES and kahlilnc like this.
  4. Offline

    kahlilnc

    Nice
     
  5. Good ole phrstbrn.
    This plugin is goin places!
     
  6. Offline

    lammiboy

    I get this
    I got it with the original jobs aswell, Help?
    [​IMG]
     
  7. Offline

    jlu


    --> Jobconfig.yml; define a max level for each job; ?????; PROFIT.
    However, it's not an error, define max-lvl is optionnal.
     
  8. Offline

    lammiboy

    I tried that before, I changed the slot number and job level to my choice yet even though it does not get this exact error thing it doesnt show any jobs in-game.
     
  9. Offline

    TheBeast808

    Please tell me you don't need permissions 3.x.
     
  10. Offline

    phrstbrn

    Add these two permission nodes:

    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.

    ex
    Code:
    jobs.join.*
    jobs.browse.*
    


    I've tested it against both Permissions 2.7.4 and Permissions 3.1.6, however it should work without Permissions. I haven't tested much without Permissions before taking over for flametornado, however it should work without it, it was working after I did some light testing.

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

    Gilbertamie

    Thanks for the 935 update, I was freaking out :p
     
  12. @lammiboy

    Make sure you uncomment the max level/slots line in the config.
    By this I mean remove the # before both lines.
     
  13. Offline

    Darcion

    link is down...

    edit
    after some tries its back
     
  14. Offline

    Kitzur

    I cant see my job. but i hsave Permission and i had make /jobs join Miner. Job title is job. I NEED HELP
     
    XxDawnsusxX likes this.
  15. Offline

    crysis992

    Bug: It doesnt give EXP or money for Playerkills.
     
  16. Offline

    phrstbrn

    I'll look into that, I don't use that feature on my server, so it might not be working. Do you happen to know if this works in the flametornado version, 2.0.2?
     
  17. Offline

    DooBLER

    when i have in jobConfig.yml something like:
    Code:
    Break:
                RAILS:
                    income: -2.0
                    experience: -2.1
                27:
                    income: -6.0
                    experience: -6.2
                28:
                    income: -6.0
                    experience: -6.2
    I get an error:
    Code:
    2011-06-28 20:21:07 [SEVERE] Error occurred while disabling Jobs v2.1.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.onDisable(Unknown Source)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:128)
        at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:878)
        at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:280)
        at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:273)
        at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:146)
        at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:312)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:391)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Where can I find all the names of items?
     
  18. Offline

    phrstbrn

    http://jd.bukkit.org/apidocs/org/bukkit/Material.html
     
  19. Offline

    DooBLER

    Thank you for your very quick reply :*
     
  20. Offline

    TheBeast808

    Everytime I try to reload or start up the server with jobs it gives this error:

    Code:
    2011-06-28 19:15:57 [SEVERE] Error occurred while enabling Jobs v2.1.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)
    The config is set up right, and I'm running an up to date bukkit with an up to date iConomy and permissions 2.7.4. Why is this happening? I really want to get jobs to work.
     
  21. Offline

    phrstbrn

    You're doing the same thing DooBLER was doing.
     
  22. Offline

    DooBLER

    I have another strange issue
    fresh installation of craftbukkit 935 and jobs 2.1.1 (default settings)

    Players lose their jobs when they disconnect from server

    Test on one player:
    - jobs.data 0B
    - user join to job - jobs.data 24B
    - user leave server - jobs.data 0B
     
  23. Offline

    olimoli123

    Is the money duping fixed?
     
  24. Offline

    Grimmy777

    Hopefully I can keep my job now. Thanks for the update!
     
  25. Offline

    4z3rty

    Hi,
    I have a little problem with this plugin (2.0.1), I use iConomy but not MySQL :
    Code:
    01:15:16 [SEVERE] Error occurred while disabling Jobs v2.0.1 (Is it up to date?): null
    java.lang.NullPointerException
            at me.alex.jobs.config.JobsConfiguration.loadGeneralSettings(JobsConfiguration.java:110)
            at me.alex.jobs.config.JobsConfiguration.<init>(JobsConfiguration.java:76)
            at me.alex.jobs.config.JobsConfiguration.getInstance(JobsConfiguration.java:1007)
            at me.alex.jobs.Jobs.onDisable(Jobs.java:62)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
            at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:820)
            at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:269)
            at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:262)
            at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:129)
            at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:260)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:339)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    and generalConfig.yml :
    Code:
    # General configuration.
    #
    #   The general configuration for the jobs plugin mostly includes how often the plugin
    # saves user data (when the user is in the game), the storage method, whether
    # to broadcast a message to the server when a user goes up a skill level.
    #   It also allows admins to set the maximum number of jobs a player can have at
    # any one time.
    
    # storage method, can be MySQL, flatfile
    #storage-method: flatfile
    
    # Requires Mysql.
    #mysql-username: root
    #mysql-password:
    #mysql-database: minecraft
    #mysql-url: jdbc:mysql://localhost:3306/
    #mysql-table-prefix:
    
    # How often in minutes you want it to save, 0 disables periodic saving and
    # the system will only save on logout
    save-period: 10
    
    # Do all players get a message when somone goes up a skill level?
    broadcast-on-skill-up: true
    
    # maximum number of jobs a player can join
    max-jobs: 1
    
    # option to enable the stats and achievements plugin.
    #enable-stats: true
    
    # option to allow payment to be made when near a spawner
    #enable-pay-near-spawner: true
    Thank you for helping me.

    (I'm french, I don't speak very good English ^^)
     
  26. Offline

    phrstbrn

    Update to 2.1.1, flametornado wrote the 2.0.1 plugin and I'm not supporting the jobs plugin before 2.1.0.

    I've stated my position on this behavior, and why I have no plans to change it in the original post. I have posted a workaround several times in different threads which fixes the issue by changing your configuration.

    I just got some friends together to make sure this is still working, it's working in 2.1.1. Tested against Bukkit 935, iConomy 5.0.1, and Jobs 2.1.1

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

    4z3rty

    The solution was very sample.
    Thank lot.

    (I have download there for the first one)
     
  28. Offline

    DooBLER

    Does anyone else have this problem?
    Or I missed something?

    Do I need to provide more information?
    Not getting any errors in the console.
     
  29. Offline

    Missnostalgia

    Any reason when I set Max jobs to 1, and players can still join multiple jobs?
     
  30. Offline

    Pim1234

    cb 935:
    starting up:

    Code:
    14:04:08 [SEVERE] Error occurred while enabling Jobs v2.0.1 (Is it up to date?): null
    java.lang.NullPointerException
        at me.alex.jobs.config.JobsConfiguration.loadTitleSettings(JobsConfiguration.java:856)
        at me.alex.jobs.config.JobsConfiguration.<init>(JobsConfiguration.java:80)
        at me.alex.jobs.config.JobsConfiguration.getInstance(JobsConfiguration.java:1007)
        at me.alex.jobs.Jobs.onEnable(Jobs.java:82)
        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)
    
    shutting down:

    Code:
    16:02:44 [SEVERE] Error occurred while disabling Jobs v2.0.1 (Is it up to date?): null
    java.lang.NullPointerException
        at me.alex.jobs.config.JobsConfiguration.loadTitleSettings(JobsConfiguration.java:856)
        at me.alex.jobs.config.JobsConfiguration.<init>(JobsConfiguration.java:80)
        at me.alex.jobs.config.JobsConfiguration.getInstance(JobsConfiguration.java:1007)
        at me.alex.jobs.Jobs.onDisable(Jobs.java:62)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:128)
        at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:878)
        at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:280)
        at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:273)
        at org.bukkit.plugin.SimplePluginManager.clearPlugins(SimplePluginManager.java:301)
        at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:329)
        at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:281)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:290)
        at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:480)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:465)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
     

Share This Page