When I start the plugin that comes
[13:53:49 ERROR]: Error occurred while enabling VillagerHelp v1.3 (Is it up to date?)
java.lang.NullPointerException
at net.doofimc.main.Main.onEnable (Main.java:25) ~ [?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled (JavaPlugin.java:321) ~ [spigot.jar: git-spigot-db6de12-18fbb24]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin (JavaPluginLoader.java:340) [spigot.jar: git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.SimplePluginManager.enablePlugin (SimplePluginManager.java:405) [spigot.jar: git-spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin (CraftServer.java:357) [spigot.jar: git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins (CraftServer.java:317) [spigot.jar: git-spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.reload (CraftServer.java:741) [spigot.jar: git-spigot-db6de12-18fbb24]
at org.bukkit.Bukkit.reload (Bukkit.java:535) [spigot.jar: git-spigot-db6de12-18fbb24]
at org.bukkit.command.defaults.ReloadCommand.execute (ReloadCommand.java:25) [spigot.jar: git-spigot-db6de12-18fbb24]
at org.bukkit.command.SimpleCommandMap.dispatch (SimpleCommandMap.java:141) [spigot.jar: git-spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand (CraftServer.java:641) [spigot.jar: git-spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchServerCommand (CraftServer.java:627) [spigot.jar: git-spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.DedicatedServer.aO (DedicatedServer.java:412) [spigot.jar: git-spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.DedicatedServer.B (DedicatedServer.java:375) [spigot.jar: git-spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.A (MinecraftServer.java:654) [spigot.jar: git-spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.run (MinecraftServer.java:557) [spigot.jar: git-spigot-db6de12-18fbb24]
at java.lang.Thread.run (Unknown Source) [?: 1.8.0_221]
Outdated version of the plugin.
I suspect he wrote the plugin himself. Evtl he has not deposited the right spigot version as library.
I would like to know what's in line 25 in the main class.
Package net.doofimc.main;
import org.bukkit.Bukkit;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;
import net.doofimc.villiger.VillagerHandlerRegel;
import net.doofimc.villiger.Villigerhandler;
public class Main extends JavaPlugin {
public static String prefix = ("§e§lDoofimc §7" ");
@Override
public void onEnable () {
Villigerhandler vh = new Villigerhandler ();
VillagerHandlerRule rh = new VillagerHandlerRegel ();
25: getCommand ("setv"). SetExecutor (vh);
. GetCommand ( "setr") setExecutor (rh);
. Bukkit.getConsoleSender () send message ( "§8§m ------------------------------");
Bukkit.getConsoleSender (). SendMessage ("§7product: §bVilligerhelp");
Bukkit.getConsoleSender (). SendMessage ("§7Developer: §bMrDoofiKopf");
Bukkit.getConsoleSender (). SendMessage ("§7Idea of: §bMrDoofiKopf");
Bukkit.getConsoleSender (). SendMessage ("§7Version: §b" + getDescription (). GetVersion ());
Bukkit.getConsoleSender (). SendMessage ("§7 Latest Version: §a§lYes");
Bukkit.getConsoleSender (). SendMessage ("§7License: §D§lAktuelluell §7Next Renewal 20.9.2019");
Bukkit.getConsoleSender (). SendMessage ("§7Setup: §aSuccessful");
Bukkit.getConsoleSender (). SendMessage ("§7Website: §b" + getDescription (). GetWebsite ());
. Bukkit.getConsoleSender () send message ( "§8§m ------------------------------");
final PluginManager pm = Bukkit.getPluginManager ();
pm.registerEvents (vh, this);
pm.registerEvents (rh, this);
Package net.doofimc.main;
import org.bukkit.Bukkit;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;
import net.doofimc.villiger.VillagerHandlerRegel;
import net.doofimc.villiger.Villigerhandler;
public class Main extends JavaPlugin {
public static String prefix = ("§e§lDoofimc §7" ");
@Override
public void onEnable () {
Villigerhandler vh = new Villigerhandler ();
VillagerHandlerRule rh = new VillagerHandlerRegel ();
. GetCommand ( "setv") setExecutor (vh);
. GetCommand ( "setr") setExecutor (rh);
. Bukkit.getConsoleSender () send message ( "§8§m ------------------------------");
Bukkit.getConsoleSender (). SendMessage ("§7product: §bVilligerhelp");
Bukkit.getConsoleSender (). SendMessage ("§7Developer: §bMrDoofiKopf");
Bukkit.getConsoleSender (). SendMessage ("§7Idea of: §bMrDoofiKopf");
Bukkit.getConsoleSender (). SendMessage ("§7Version: §b" + getDescription (). GetVersion ());
Bukkit.getConsoleSender (). SendMessage ("§7 Latest Version: §a§lYes");
Bukkit.getConsoleSender (). SendMessage ("§7License: §D§lAktuelluell §7Next Renewal 20.9.2019");
Bukkit.getConsoleSender (). SendMessage ("§7Setup: §aSuccessful");
Bukkit.getConsoleSender (). SendMessage ("§7Website: §b" + getDescription (). GetWebsite ());
. Bukkit.getConsoleSender () send message ( "§8§m ------------------------------");
final PluginManager pm = Bukkit.getPluginManager ();
pm.registerEvents (vh, this);
pm.registerEvents (rh, this);
Please upload the entire server log to https://hastebin.com/...tebin.com/ and the main class.
Then the whole thing is completely and beautifully formatted, you can also read the whole thing decently.