Error while disabling
bigbeno37 opened this issue · 5 comments
When I go to run CraftBukkit from the Spigot BuildTools, it gives me the following stacktrace:
[19:12:57] [Server thread/INFO]: Starting minecraft server version 1.8
[19:12:57] [Server thread/INFO]: Loading properties
[19:12:57] [Server thread/INFO]: Default game type: SURVIVAL
[19:12:57] [Server thread/INFO]: Generating keypair
[19:12:58] [Server thread/INFO]: Starting Minecraft server on *:25565
[19:12:59] [Server thread/INFO]: This server is running CraftBukkit version git-Bukkit-96d09e3 (MC: 1.8) (Implementing API version 1.8-R0.1-SNAPSHOT)
[19:13:00] [Server thread/INFO]: [Vault] Loading Vault v1.5.0-b28
[19:13:00] [Server thread/INFO]: [Citizens] Loading Citizens v2.0.14-SNAPSHOT (build 1195)
[19:13:00] [Server thread/INFO]: [Heroes] Loading Heroes v1.5.5.4-SNAPSHOT-b66
[19:13:00] [Server thread/INFO]: [EpicQuest] Loading EpicQuest v3.3
[19:13:00] [Server thread/INFO]: [Vault] Enabling Vault v1.5.0-b28
[19:13:00] [Server thread/INFO]: [Vault] [Permission] SuperPermissions loaded as backup permission system.
[19:13:00] [Server thread/INFO]: [Vault] Enabled Version 1.5.0-b28
[19:13:00] [Server thread/INFO]: Preparing level "world"
[19:13:00] [Server thread/INFO]: Preparing start region for level 0 (Seed: 1530998597710896643)
[19:13:01] [Server thread/INFO]: Preparing spawn area: 32%
[19:13:02] [Server thread/INFO]: Preparing spawn area: 61%
[19:13:03] [Server thread/INFO]: Preparing start region for level 1 (Seed: 1530998597710896643)
[19:13:04] [Server thread/INFO]: Preparing spawn area: 66%
[19:13:05] [Server thread/INFO]: Preparing spawn area: 93%
[19:13:05] [Server thread/INFO]: Preparing start region for level 2 (Seed: 1530998597710896643)
[19:13:05] [Server thread/INFO]: [Citizens] Enabling Citizens v2.0.14-SNAPSHOT (build 1195)
[19:13:05] [Server thread/ERROR]: [Citizens] Unable to find Rhino classes - javascript scripts won't see non-CraftBukkit classes
[19:13:06] [Server thread/INFO]: [Heroes] Enabling Heroes v1.5.5.4-SNAPSHOT-b66
[19:13:06] [Server thread/INFO]: [Heroes] You are running Heroes on git-Bukkit-96d09e3 (MC: 1.8)
[19:13:06] [Server thread/INFO]: [Heroes] The detected server mod is BUKKIT. Heroes will use BUKKIT compatibility!
[19:13:06] [Server thread/ERROR]: [Heroes] You are attempting to load Heroes on version v1_8_R1 which is not supported!
[19:13:06] [Server thread/INFO]: [Heroes] Disabling Heroes v1.5.5.4-SNAPSHOT-b66
[19:13:06] [Server thread/INFO]: [Heroes] version 1.5.5.4-SNAPSHOT-b66 is disabled!
[19:13:06] [Server thread/INFO]: [EpicQuest] Enabling EpicQuest v3.3
[19:13:06] [Server thread/INFO]: EpicQuest could not find the quest file. Disabling plugin.
[19:13:06] [Server thread/ERROR]: Error occurred while enabling EpicQuest v3.3 (Is it up to date?)
java.lang.NullPointerException
at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:421) ~[craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at randy.epicquest.main.onEnable(main.java:138) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:327) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:404) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugin(CraftServer.java:340) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.enablePlugins(CraftServer.java:312) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.q(MinecraftServer.java:394) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.k(MinecraftServer.java:362) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.a(MinecraftServer.java:317) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:190) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:473) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_25]
[19:13:06] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
[19:13:06] [Server thread/INFO]: Done (5.998s)! For help, type "help" or "?"
[19:13:06] [Server thread/INFO]: [Citizens] Loaded 0 NPCs.
[19:13:06] [pool-3-thread-2/INFO]: [Vault] Checking for Updates ...
[19:13:09] [pool-3-thread-2/INFO]: [Vault] No new version available
As seen here, I have Vault, Citizens and Heroes downloaded and installed. Looking at the stacktrace reveals that there is a NullPointerException at line 138 of main.java, which happens to be the following:
Bukkit.getPluginManager().disablePlugin(epicQuestPlugin);
Ah, well it says why it crashed, but it shouldn't give that error. Thanks for reporting it!
I went ahead and changed that line to Bukkit.getPluginManager().disablePlugin(this);
and it now produces a new stack trace:
[20:46:23] [Server thread/INFO]: Starting minecraft server version 1.8
[20:46:23] [Server thread/INFO]: Loading properties
[20:46:23] [Server thread/INFO]: Default game type: SURVIVAL
[20:46:23] [Server thread/INFO]: Generating keypair
[20:46:23] [Server thread/INFO]: Starting Minecraft server on *:25565
[20:46:24] [Server thread/INFO]: This server is running CraftBukkit version git-Bukkit-96d09e3 (MC: 1.8) (Implementing API version 1.8-R0.1-SNAPSHOT)
[20:46:25] [Server thread/INFO]: [Vault] Loading Vault v1.5.0-b28
[20:46:25] [Server thread/INFO]: [Citizens] Loading Citizens v2.0.14-SNAPSHOT (build 1195)
[20:46:25] [Server thread/INFO]: [Heroes] Loading Heroes v1.5.5.4-SNAPSHOT-b66
[20:46:25] [Server thread/INFO]: [EpicQuest] Loading EpicQuest v3.3
[20:46:25] [Server thread/INFO]: [Vault] Enabling Vault v1.5.0-b28
[20:46:25] [Server thread/INFO]: [Vault] [Permission] SuperPermissions loaded as backup permission system.
[20:46:25] [Server thread/INFO]: [Vault] Enabled Version 1.5.0-b28
[20:46:25] [Server thread/INFO]: Preparing level "world"
[20:46:25] [Server thread/INFO]: Preparing start region for level 0 (Seed: 1530998597710896643)
[20:46:26] [Server thread/INFO]: Preparing spawn area: 28%
[20:46:27] [Server thread/INFO]: Preparing spawn area: 47%
[20:46:28] [Server thread/INFO]: Preparing spawn area: 88%
[20:46:28] [Server thread/INFO]: Preparing start region for level 1 (Seed: 1530998597710896643)
[20:46:29] [Server thread/INFO]: Preparing spawn area: 50%
[20:46:31] [Server thread/INFO]: Preparing spawn area: 74%
[20:46:31] [Server thread/INFO]: Preparing start region for level 2 (Seed: 1530998597710896643)
[20:46:32] [Server thread/INFO]: Preparing spawn area: 54%
[20:46:32] [Server thread/INFO]: [Citizens] Enabling Citizens v2.0.14-SNAPSHOT (build 1195)
[20:46:32] [Server thread/ERROR]: [Citizens] Unable to find Rhino classes - javascript scripts won't see non-CraftBukkit classes
[20:46:33] [Server thread/INFO]: [Heroes] Enabling Heroes v1.5.5.4-SNAPSHOT-b66
[20:46:33] [Server thread/INFO]: [Heroes] You are running Heroes on git-Bukkit-96d09e3 (MC: 1.8)
[20:46:33] [Server thread/INFO]: [Heroes] The detected server mod is BUKKIT. Heroes will use BUKKIT compatibility!
[20:46:33] [Server thread/ERROR]: [Heroes] You are attempting to load Heroes on version v1_8_R1 which is not supported!
[20:46:33] [Server thread/INFO]: [Heroes] Disabling Heroes v1.5.5.4-SNAPSHOT-b66
[20:46:33] [Server thread/INFO]: [Heroes] version 1.5.5.4-SNAPSHOT-b66 is disabled!
[20:46:33] [Server thread/INFO]: [EpicQuest] Enabling EpicQuest v3.3
[20:46:33] [Server thread/INFO]: EpicQuest could not find the quest file. Disabling plugin.
[20:46:33] [Server thread/INFO]: [EpicQuest] Disabling EpicQuest v3.3
[20:46:33] [Server thread/INFO]: Saving...
[20:46:33] [Server thread/INFO]: There are no players to save
[20:46:33] [Server thread/ERROR]: Error occurred while disabling EpicQuest v3.3 (Is it up to date?)
java.lang.NullPointerException
at randy.epicquest.main.onDisable(main.java:95) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:323) ~[craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:351) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:423) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at randy.epicquest.main.onEnable(main.java:138) [epicquest3.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:327) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:404) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugin(CraftServer.java:340) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.enablePlugins(CraftServer.java:312) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.q(MinecraftServer.java:394) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.k(MinecraftServer.java:362) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.a(MinecraftServer.java:317) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:190) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:473) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_25]
[20:46:33] [Server thread/WARN]: java.io.FileNotFoundException: plugins\EpicQuest\quests.yml (The system cannot find the file specified)
[20:46:33] [Server thread/WARN]: at java.io.FileInputStream.open(Native Method)
[20:46:33] [Server thread/WARN]: at java.io.FileInputStream.<init>(Unknown Source)
[20:46:33] [Server thread/WARN]: at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:167)
[20:46:33] [Server thread/WARN]: at randy.filehandlers.QuestLoader.loadQuests(QuestLoader.java:30)
[20:46:33] [Server thread/WARN]: at randy.epicquest.main.onEnable(main.java:150)
[20:46:33] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321)
[20:46:33] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:327)
[20:46:33] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:404)
[20:46:33] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugin(CraftServer.java:340)
[20:46:33] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_8_R1.CraftServer.enablePlugins(CraftServer.java:312)
[20:46:33] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.MinecraftServer.q(MinecraftServer.java:394)
[20:46:33] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.MinecraftServer.k(MinecraftServer.java:362)
[20:46:33] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.MinecraftServer.a(MinecraftServer.java:317)
[20:46:33] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:190)
[20:46:33] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:473)
[20:46:33] [Server thread/WARN]: at java.lang.Thread.run(Unknown Source)
[20:46:33] [Server thread/INFO]: EpicQuest is done loading 0 quests.
[20:46:33] [Server thread/ERROR]: Error occurred while enabling EpicQuest v3.3 (Is it up to date?)
org.bukkit.plugin.IllegalPluginAccessException: Plugin attempted to register task while disabled
at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.validate(CraftScheduler.java:398) ~[craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.runTaskTimer(CraftScheduler.java:123) ~[craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.scheduleSyncRepeatingTask(CraftScheduler.java:119) ~[craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.scheduleSyncDelayedTask(CraftScheduler.java:102) ~[craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at randy.filehandlers.SaveLoader.load(SaveLoader.java:322) ~[?:?]
at randy.epicquest.main.onEnable(main.java:158) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:327) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:404) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugin(CraftServer.java:340) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.enablePlugins(CraftServer.java:312) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.q(MinecraftServer.java:394) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.k(MinecraftServer.java:362) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.a(MinecraftServer.java:317) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:190) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:473) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_25]
[20:46:33] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
[20:46:33] [Server thread/INFO]: Done (8.070s)! For help, type "help" or "?"
[20:46:33] [Server thread/INFO]: [Citizens] Loaded 0 NPCs.
[20:46:33] [pool-3-thread-2/INFO]: [Vault] Checking for Updates ...
[20:46:36] [pool-3-thread-2/INFO]: [Vault] No new version available
[20:54:29] [Server thread/INFO]: [Citizens] Disabling Citizens v2.0.14-SNAPSHOT (build 1195)
[20:54:29] [Server thread/INFO]: [Vault] Disabling Vault v1.5.0-b28
[20:54:29] [Server thread/INFO]: [Vault] Loading Vault v1.5.0-b28
[20:54:29] [Server thread/INFO]: [Citizens] Loading Citizens v2.0.14-SNAPSHOT (build 1195)
[20:54:29] [Server thread/INFO]: [Heroes] Loading Heroes v1.5.5.4-SNAPSHOT-b66
[20:54:29] [Server thread/INFO]: [EpicQuest] Loading EpicQuest v3.3
[20:54:29] [Server thread/INFO]: [Vault] Enabling Vault v1.5.0-b28
[20:54:29] [Server thread/INFO]: [Vault] [Permission] SuperPermissions loaded as backup permission system.
[20:54:29] [Server thread/INFO]: [Vault] Enabled Version 1.5.0-b28
[20:54:29] [Server thread/INFO]: [Citizens] Enabling Citizens v2.0.14-SNAPSHOT (build 1195)
[20:54:29] [Server thread/ERROR]: [Citizens] Unable to find Rhino classes - javascript scripts won't see non-CraftBukkit classes
[20:54:29] [Server thread/INFO]: [Heroes] Enabling Heroes v1.5.5.4-SNAPSHOT-b66
[20:54:29] [Server thread/INFO]: [Heroes] You are running Heroes on git-Bukkit-96d09e3 (MC: 1.8)
[20:54:29] [Server thread/INFO]: [Heroes] The detected server mod is BUKKIT. Heroes will use BUKKIT compatibility!
[20:54:29] [Server thread/ERROR]: [Heroes] You are attempting to load Heroes on version v1_8_R1 which is not supported!
[20:54:29] [Server thread/INFO]: [Heroes] Disabling Heroes v1.5.5.4-SNAPSHOT-b66
[20:54:29] [Server thread/INFO]: [Heroes] version 1.5.5.4-SNAPSHOT-b66 is disabled!
[20:54:29] [Server thread/INFO]: [EpicQuest] Enabling EpicQuest v3.3
[20:54:29] [Server thread/INFO]: EpicQuest could not find the quest file. Disabling plugin.
[20:54:29] [Server thread/INFO]: [EpicQuest] Disabling EpicQuest v3.3
[20:54:29] [Server thread/INFO]: Saving...
[20:54:29] [Server thread/INFO]: There are no players to save
[20:54:29] [Server thread/ERROR]: Error occurred while disabling EpicQuest v3.3 (Is it up to date?)
java.lang.NullPointerException
at randy.epicquest.main.onDisable(main.java:95) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:323) ~[craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:351) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:423) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at randy.epicquest.main.onEnable(main.java:138) [epicquest3.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:327) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:404) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugin(CraftServer.java:340) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.enablePlugins(CraftServer.java:312) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.reload(CraftServer.java:723) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.Bukkit.reload(Bukkit.java:543) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:140) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.dispatchCommand(CraftServer.java:624) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.dispatchServerCommand(CraftServer.java:610) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.DedicatedServer.aM(DedicatedServer.java:320) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:285) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:598) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:506) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_25]
[20:54:29] [Server thread/WARN]: java.io.FileNotFoundException: plugins\EpicQuest\quests.yml (The system cannot find the file specified)
[20:54:29] [Server thread/WARN]: at java.io.FileInputStream.open(Native Method)
[20:54:29] [Server thread/WARN]: at java.io.FileInputStream.<init>(Unknown Source)
[20:54:29] [Server thread/WARN]: at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:167)
[20:54:29] [Server thread/WARN]: at randy.filehandlers.QuestLoader.loadQuests(QuestLoader.java:30)
[20:54:29] [Server thread/WARN]: at randy.epicquest.main.onEnable(main.java:150)
[20:54:29] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321)
[20:54:29] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:327)
[20:54:29] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:404)
[20:54:29] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugin(CraftServer.java:340)
[20:54:29] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_8_R1.CraftServer.enablePlugins(CraftServer.java:312)
[20:54:29] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_8_R1.CraftServer.reload(CraftServer.java:723)
[20:54:29] [Server thread/WARN]: at org.bukkit.Bukkit.reload(Bukkit.java:543)
[20:54:29] [Server thread/WARN]: at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23)
[20:54:29] [Server thread/WARN]: at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:140)
[20:54:29] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_8_R1.CraftServer.dispatchCommand(CraftServer.java:624)
[20:54:29] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_8_R1.CraftServer.dispatchServerCommand(CraftServer.java:610)
[20:54:29] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.DedicatedServer.aM(DedicatedServer.java:320)
[20:54:29] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:285)
[20:54:29] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:598)
[20:54:29] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:506)
[20:54:29] [Server thread/WARN]: at java.lang.Thread.run(Unknown Source)
[20:54:29] [Server thread/INFO]: EpicQuest is done loading 0 quests.
[20:54:29] [Server thread/ERROR]: Error occurred while enabling EpicQuest v3.3 (Is it up to date?)
org.bukkit.plugin.IllegalPluginAccessException: Plugin attempted to register task while disabled
at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.validate(CraftScheduler.java:398) ~[craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.runTaskTimer(CraftScheduler.java:123) ~[craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.scheduleSyncRepeatingTask(CraftScheduler.java:119) ~[craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.scheduleSyncDelayedTask(CraftScheduler.java:102) ~[craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at randy.filehandlers.SaveLoader.load(SaveLoader.java:322) ~[?:?]
at randy.epicquest.main.onEnable(main.java:158) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:327) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:404) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugin(CraftServer.java:340) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.enablePlugins(CraftServer.java:312) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.reload(CraftServer.java:723) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.Bukkit.reload(Bukkit.java:543) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:140) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.dispatchCommand(CraftServer.java:624) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.dispatchServerCommand(CraftServer.java:610) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.DedicatedServer.aM(DedicatedServer.java:320) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:285) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:598) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:506) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_25]
[20:54:29] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
[20:54:29] [Server thread/INFO]: CONSOLE: �[0;32;1mReload complete.�[m
[20:54:29] [Server thread/INFO]: [Citizens] Loaded 0 NPCs.
[20:54:29] [pool-3-thread-5/INFO]: [Vault] Checking for Updates ...
[20:54:31] [pool-3-thread-5/INFO]: [Vault] No new version available
It now errors out at the onDisable() command, which is understandable, since the plugin is made 'disabled'. At line 95, there is another NullPointerException, with the line being timerTask.cancel();
. 'timerTask' is a variable assigned as such: TimerTask timerTask;
. I believe that because timerTask is not assigned as a 'proper' variable, it is essentially Null and thus is causing the program to spike. Also, the quests.yml is not generating on my server, which is likely what is causing all of this in the first place.
Yeah, the timer is started a tad later. I think that's the only thing that's null, so a null check should be fine. I'll add in a default quest file somewhere during the next few commits.