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
    https://paste.gg/p/anonymous/dd3d97efd4574e0e9a381d9d2dba8dcb
    Configuration class
    https://paste.gg/p/anonymous/9333d42244c94bceb478c88ef6bec3b6
    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(BansGroup.java:17) ~[?:?]
    at it.midnighthouse.pgui.Pgui.onEnable(Pgui.java:20) ~[?:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[paperspigot.jar:git-Spigot-dcd1643-e60fc34]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337) [paperspigot.jar:git-Spigot-dcd1643-e60fc34]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:403) [paperspigot.jar:git-Spigot-dcd1643-e60fc34]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:381) [paperspigot.jar:git-Spigot-dcd1643-e60fc34]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:330) [paperspigot.jar:git-Spigot-dcd1643-e60fc34]
    at net.minecraft.server.v1_12_R1.MinecraftServer.t(MinecraftServer.java:422) [paperspigot.jar:git-Spigot-dcd1643-e60fc34]
    at net.minecraft.server.v1_12_R1.MinecraftServer.l(MinecraftServer.java:383) [paperspigot.jar:git-Spigot-dcd1643-e60fc34]
    at net.minecraft.server.v1_12_R1.MinecraftServer.a(MinecraftServer.java:338) [paperspigot.jar:git-Spigot-dcd1643-e60fc34]
    at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:272) [paperspigot.jar:git-Spigot-dcd1643-e60fc34]
    at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:545) [paperspigot.jar:git-Spigot-dcd1643-e60fc34]
    at java.lang.Thread.run(Thread.java:748) [?: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