gods bugs out on CB2358 #65


  • Defect
  • Accepted
Open
  • Forge_User_62803785 created this issue Sep 5, 2012

    Gods 0.5.0 and CB2358:

    2012-09-05 17:19:01 [SEVERE] Error occurred while enabling Gods v0.5.0 (Is it up to date?)
    java.lang.NullPointerException
        at com.dogonfire.gods.Gods.loadSettings(Gods.java:225)
        at com.dogonfire.gods.Gods.onEnable(Gods.java:329)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:374)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:265)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:247)
        at net.minecraft.server.MinecraftServer.i(MinecraftServer.java:296)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:275)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:225)
        at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:140)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:378)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)

  • Forge_User_62803785 added the tags New Defect Sep 5, 2012
  • Forge_User_09714816 posted a comment Sep 5, 2012

    This is caused by a missing Quest.RewardValues section in your config.yml.

    The Quest config section should look something like:

    Quests:
      Enabled: true
      Frequency: 1
      RewardValues:
        YELLOW_FLOWER: 1
        SUGAR_CANE: 25
        RED_ROSE: 1
        GOLD_INGOT: 50
        BOOK: 30
        MELON_SEEDS: 5
        PUMPKIN_SEEDS: 5
        DIAMOND: 100
        COAL: 5
        PAPER: 20
        IRON_INGOT: 10
        COMPASS: 50
        SEEDS: 1
    


    You can copy and paste from the above to fix your config now and i will make 0.5.1 write out a default quest reward section when this section is missing.

  • Forge_User_09714816 removed a tag New Sep 5, 2012
  • Forge_User_09714816 added a tag Accepted Sep 5, 2012
  • Forge_User_62803785 posted a comment Sep 6, 2012

    Unfortunatly 0.5.0 didnt create the folder or files. I did the changes to the code and recompiled. Now its working.

  • Forge_User_09714816 posted a comment Sep 6, 2012

    @VariousArtist: Go

    You mean the plugin did not create the Gods folder including config.yml?

  • Forge_User_62803785 posted a comment Sep 6, 2012

    Yes exactly. Ive removed my old folder, installed 0.5.0, started the server and got the error Ive posted here. No "Gods"-folder nor files.

  • Forge_User_09714816 posted a comment Sep 7, 2012

    I made some changes regarding these config settings in 0.5.1: Could you test if you get error with 0.5.1?

  • Forge_User_62803785 posted a comment Sep 17, 2012

    Not encountered any longer. I would consider this fixed.


To post a comment, please login or register a new account.