diff --git a/src/main/java/com/ninjaguild/dragoneggdrop/commands/DragonEggDropCmd.java b/src/main/java/com/ninjaguild/dragoneggdrop/commands/DragonEggDropCmd.java index 811748c..23932de 100644 --- a/src/main/java/com/ninjaguild/dragoneggdrop/commands/DragonEggDropCmd.java +++ b/src/main/java/com/ninjaguild/dragoneggdrop/commands/DragonEggDropCmd.java @@ -34,7 +34,7 @@ public boolean onCommand(CommandSender sender, Command cmd, String label, String sender.sendMessage(ChatColor.GOLD + "Version: " + plugin.getDescription().getVersion()); UpdateResult result = UpdateChecker.get().getLastResult(); - if (sender.isOp() && result.requiresUpdate()) { + if (sender.isOp() && result != null && result.requiresUpdate()) { sender.sendMessage(ChatColor.AQUA + "New version available: " + result.getNewestVersion()); }