Solved I can't load a custom config file help

Discussion in 'Spigot Help' started by Midnighrrr, Jul 10, 2021.

  1. Hi i'm trying to load a config file but i just can't here is my code.

    Main class
    Configuration class
    Error i get :
    [10:47:47 ERROR]: Error occurred while enabling punishmentMenu v1.0 (Is it up to date?)
    java.lang.NullPointerException: null
    at it.midnighthouse.pgui.BansGroup.SetUp( ~[?:?]
    at it.midnighthouse.pgui.Pgui.onEnable( ~[?:?]
    at ~[paperspigot.jar:git-Spigot-dcd1643-e60fc34]
    at [paperspigot.jar:git-Spigot-dcd1643-e60fc34]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin( [paperspigot.jar:git-Spigot-dcd1643-e60fc34]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin( [paperspigot.jar:git-Spigot-dcd1643-e60fc34]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins( [paperspigot.jar:git-Spigot-dcd1643-e60fc34]
    at net.minecraft.server.v1_12_R1.MinecraftServer.t( [paperspigot.jar:git-Spigot-dcd1643-e60fc34]
    at net.minecraft.server.v1_12_R1.MinecraftServer.l( [paperspigot.jar:git-Spigot-dcd1643-e60fc34]
    at net.minecraft.server.v1_12_R1.MinecraftServer.a( [paperspigot.jar:git-Spigot-dcd1643-e60fc34]
    at net.minecraft.server.v1_12_R1.DedicatedServer.init( [paperspigot.jar:git-Spigot-dcd1643-e60fc34]
    at [paperspigot.jar:git-Spigot-dcd1643-e60fc34]
    at [?:1.8.0_292]
  2. Pace

    Pace Previously Pace1337

    You can watch this to get help on how to make an actual proper configuration.
  3. 1. Post here please plugin.yml file from your project (it also must be included in plugin jar file)
    2. Check the property name in plugin.yml. You should use the same name in getPlugin("Pgui")
  4. Thank you the 2 helped me i through i had to put the name of the main class
    • Friendly Friendly x 1