So, I recently started a Towny server, it's still in development and everything is going good and fine. One thing I can't overcome though, is why I can't get jobs to work. The plugin itself is working, like, /jobs brings up the menu and all, but, when you go to join a job, for example /jobs join Hunter, it just brings up the menu as if all you did was type /jobs. It really confuses me cuz I've looked at the code and I could not find anything wrong that could be causing this. Here is the template I am using for my jobs plugin atm: # Jobs configuration. # # Stores information about each job. # # For example configurations, visit http://dev.bukkit.org/server-mods/jobs/. Jobs: Lumberjack: fullname: Lumberjack shortname: L description: Earns money felling and planting trees ChatColour: GREEN chat-display: full 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: LOG: income: 5.0 experience: 5.0 Place: SAPLING: income: 1.0 experience: 1.0 WOOD: income: 2.0 experience: 2.0 Kill: Player: income: 7.5 experience: 7.5 permissions: aaaaaatest.node: value: true level: 0 aaaaaatest.node2: value: true level: 10 Miner: fullname: Miner shortname: M description: Earns money mining minerals and ores. ChatColour: DARK_GRAY chat-display: full 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: 2.0 experience: 2.0 COAL_ORE: income: 3.0 experience: 3.0 GLOWING_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 OBSIDIAN: income: 7.5 experience: 7.5 MOSSY_COBBLESTONE: 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 Kill: Player: income: 7.5 experience: 7.5 Builder: fullname: Builder shortname: B description: Earns money for building structures. ChatColour: WHITE chat-display: full 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: 5.0 experience: 5.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 Digger: fullname: Digger shortname: D description: Earns money for terraforming the world. ChatColour: GOLD chat-display: full 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: 2.0 experience: 2.0 GRASS: income: 2.0 experience: 2.0 GRAVEL: income: 2.0 experience: 2.0 SAND: income: 2.0 experience: 2.0 CLAY: income: 2.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 description: Earns money farming crops. ChatColour: BLUE chat-display: full 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: CROPS-0: income: 3.0 experience: 3.0 SUGAR_CANE_BLOCK: income: 1.0 experience: 1.0 Kill: Player: income: 7.5 experience: 7.5 Hunter: fullname: Hunter shortname: H description: Earns money killing animals and monsters. ChatColour: RED chat-display: full 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: 2.5 experience: 2.5 Cow: income: 2.5 experience: 2.5 Pig: income: 2.5 experience: 2.5 Sheep: income: 2.5 experience: 2.5 Wolf: income: 5.0 experience: 5.0 Creeper: income: 10.0 experience: 10.0 Skeleton: income: 10.0 experience: 10.0 Spider: income: 10.0 experience: 10.0 Zombie: income: 10.0 experience: 10.0 Player: income: 7.5 experience: 7.5 Fisherman: fullname: Fisherman shortname: Fi description: Earns money from fishing. ChatColour: AQUA chat-display: full 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: 4.0 experience: 4.0 Kill: Player: income: 7.5 experience: 7.5 Weaponsmith: fullname: Weaponsmith shortname: W description: Earns money from crafting and repairing weapons. ChatColour: DARK_PURPLE chat-display: full 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)) Craft: WOOD_SWORD: income: 1.0 experience: 1.0 IRON_SWORD: income: 2.0 experience: 2.0 GOLD_SWORD: income: 3.0 experience: 3.0 DIAMOND_SWORD: income: 4.0 experience: 4.0 Repair: WOOD_SWORD: income: 1.0 experience: 1.0 IRON_SWORD: income: 2.0 experience: 2.0 GOLD_SWORD: income: 3.0 experience: 3.0 DIAMOND_SWORD: income: 4.0 experience: 4.0 Smelt: IRON_INGOT: income: 2.0 experience: 2.0 GOLD_INGOT: income: 2.0 experience: 2.0 Brewer: fullname: Brewer shortname: Br description: Earns money brewing potions. ChatColour: LIGHT_PURPLE chat-display: full 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)) Brew: NETHER_STALK: income: 1.0 experience: 1.0 REDSTONE: income: 2.0 experience: 2.0 GLOWSTONE_DUST: income: 2.0 experience: 2.0 SPIDER_EYE: income: 2.0 experience: 2.0 FERMENTED_SPIDER_EYE: income: 2.0 experience: 2.0 BLAZE_POWDER: income: 2.0 experience: 2.0 SUGAR: income: 2.0 experience: 2.0 SPECKLED_MELON: income: 4.0 experience: 4.0 MAGMA_CREAM: income: 4.0 experience: 4.0 GHAST_TEAR: income: 4.0 experience: 4.0 Enchanter: fullname: Enchanter shortname: E description: Earns money enchanting weapons. ChatColour: DARK_BLUE chat-display: full 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)) Enchant: WOOD_SWORD: income: 4.0 experience: 4.0 IRON_SWORD: income: 6.0 experience: 6.0 GOLD_SWORD: income: 8.0 experience: 8.0 DIAMOND_SWORD: income: 10.0 experience: 10.0 None: fullname: None shortname: N ChatColour: WHITE chat-display: none 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 and my generalConfig incase it also is needed: # 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. # Default language. Use your languages two digit ISO 639-1 code, and optionally followed by the ISO-3166-1 country code. # Example: en, en_US locale-language: en # storage method, can be MySQL, sqlite storage-method: sqlite # Requires Mysql. mysql-username: root mysql-password: '' mysql-hostname: localhost:3306 mysql-database: minecraft mysql-table-prefix: jobs_ # How often in minutes you want it to save. This must be a non-zero number save-period: 10 # Should player data be saved on disconnect? # Player data is always periodically auto-saved and autosaved during a clean shutdown. # Only enable this if you have a multi-server setup, or have a really good reason for enabling this. # Turning this on will decrease database performance. save-on-disconnect: true # Do all players get a message when somone goes up a skill level? broadcast-on-skill-up: false # Do all players get a message when somone goes up a level? broadcast-on-level-up: false # Maximum number of jobs a player can join. # Use 0 for no maximum max-jobs: 3 # Hide jobs from player if they lack the permission to join the job hide-jobs-without-permission: false # option to allow payment to be made when killing mobs from a spawner enable-pay-near-spawner: false # option to allow payment to be made in creative mode enable-pay-creative: false # Adds the Jobs xp recieved to the player's Minecraft XP bar add-xp-player: false # Modifys chat to add chat titles. If you're using a chat manager, you may add the tag {jobs} to your chat format and disable this. modify-chat: false # Changes how often, in seconds, players are paid out. Default is 5 seconds. # Setting this too low may cause tick lag. Increase this to improve economy performance (at the cost of delays in payment) economy-batch-delay: 5 # Enable async economy calls. # Only enable if your economy plugin is thread safe, use with EXTREME caution. economy-async: false as another note, I also found this in console: [19:40:32] [Server thread/WARN]: java.lang.reflect.InvocationTargetException [19:40:32] [Server thread/WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [19:40:32] [Server thread/WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [19:40:32] [Server thread/WARN]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [19:40:32] [Server thread/WARN]: at java.lang.reflect.Method.invoke(Unknown Source) [19:40:32] [Server thread/WARN]: at me.zford.jobs.commands.JobsCommands.onCommand(JobsCommands.java:70) [19:40:32] [Server thread/WARN]: at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [19:40:32] [Server thread/WARN]: at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:140) [19:40:32] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_10_R1.CraftServer.dispatchCommand(CraftServer.java:626) [19:40:32] [Server thread/WARN]: at net.minecraft.server.v1_10_R1.PlayerConnection.handleCommand(PlayerConnection.java:1299) [19:40:32] [Server thread/WARN]: at net.minecraft.server.v1_10_R1.PlayerConnection.a(PlayerConnection.java:1159) [19:40:32] [Server thread/WARN]: at net.minecraft.server.v1_10_R1.PacketPlayInChat.a(SourceFile:37) [19:40:32] [Server thread/WARN]: at net.minecraft.server.v1_10_R1.PacketPlayInChat.a(SourceFile:9) [19:40:32] [Server thread/WARN]: at net.minecraft.server.v1_10_R1.PlayerConnectionUtils$1.run(SourceFile:13) [19:40:32] [Server thread/WARN]: at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [19:40:32] [Server thread/WARN]: at java.util.concurrent.FutureTask.run(Unknown Source) [19:40:32] [Server thread/WARN]: at net.minecraft.server.v1_10_R1.SystemUtils.a(SourceFile:45) [19:40:32] [Server thread/WARN]: at net.minecraft.server.v1_10_R1.MinecraftServer.D(MinecraftServer.java:688) [19:40:32] [Server thread/WARN]: at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:361) [19:40:32] [Server thread/WARN]: at net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:643) [19:40:32] [Server thread/WARN]: at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:547) [19:40:32] [Server thread/WARN]: at java.lang.Thread.run(Unknown Source) [19:40:32] [Server thread/WARN]: Caused by: java.lang.NullPointerException [19:40:32] [Server thread/WARN]: at me.zford.jobs.commands.JobsCommands.join(JobsCommands.java:172) [19:40:32] [Server thread/WARN]: ... 21 more
Since this is not your plguin, but someone else's, this should be moved to General Help. There is something null at line 172 of the JobsComands class. Please create a ticket on the Towny's Bukkit-dev page.