TownyAdvanced / Towny

Towny Advanced Minecraft plugin for Bukkit/Spigot.
https://townyadvanced.github.io
Other
527 stars 354 forks source link

Mobs Not De-spawning on plots where mobs are disabled and giving error's to the console #2337

Closed LlmDl closed 9 years ago

LlmDl commented 9 years ago

Originally reported on Google Code with ID 2315

What steps will reproduce the problem?
1. I'm not really sure sorry
2.
3.

What is the expected output? :
Mobs will despawn on plots where they are disabled.

What do you see instead? :
The mobs do not despawn and I get errors into the console

[00:00:04] [Server thread/WARN]: [Towny] Task #46 for Towny v0.89.2.25 generated an
exception
java.lang.NullPointerException
    at com.palmergames.bukkit.towny.tasks.MobRemovalTimerTask.run(MobRemovalTimerTask.java:119)
~[?:?]
    at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java:53) ~[craftbukkit.jar:git-Bukkit-33d5de3]
    at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:349)
[craftbukkit.jar:git-Bukkit-33d5de3]
    at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:668) [craftbukkit.jar:git-Bukkit-33d5de3]
    at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:284) [craftbukkit.jar:git-Bukkit-33d5de3]
    at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:609) [craftbukkit.jar:git-Bukkit-33d5de3]
    at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:517) [craftbukkit.jar:git-Bukkit-33d5de3]
    at java.lang.Thread.run(Unknown Source) [?:1.7.0_51]
[00:00:05] [Server thread/ERROR]: Could not pass event CreatureSpawnEvent to Towny
v0.89.2.25
org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:297) ~[craftbukkit.jar:git-Bukkit-33d5de3]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[craftbukkit.jar:git-Bukkit-33d5de3]
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:501) [craftbukkit.jar:git-Bukkit-33d5de3]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:486) [craftbukkit.jar:git-Bukkit-33d5de3]
    at org.bukkit.craftbukkit.v1_8_R1.event.CraftEventFactory.callCreatureSpawnEvent(CraftEventFactory.java:258)
[craftbukkit.jar:git-Bukkit-33d5de3]
    at net.minecraft.server.v1_8_R1.World.addEntity(World.java:887) [craftbukkit.jar:git-Bukkit-33d5de3]
    at net.minecraft.server.v1_8_R1.MobSpawnerAbstract.a(MobSpawnerAbstract.java:174)
[craftbukkit.jar:git-Bukkit-33d5de3]
    at net.minecraft.server.v1_8_R1.MobSpawnerAbstract.c(MobSpawnerAbstract.java:105)
[craftbukkit.jar:git-Bukkit-33d5de3]
    at net.minecraft.server.v1_8_R1.TileEntityMobSpawner.c(SourceFile:55) [craftbukkit.jar:git-Bukkit-33d5de3]
    at net.minecraft.server.v1_8_R1.World.tickEntities(World.java:1267) [craftbukkit.jar:git-Bukkit-33d5de3]
    at net.minecraft.server.v1_8_R1.WorldServer.tickEntities(WorldServer.java:539) [craftbukkit.jar:git-Bukkit-33d5de3]
    at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:715) [craftbukkit.jar:git-Bukkit-33d5de3]
    at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:284) [craftbukkit.jar:git-Bukkit-33d5de3]
    at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:609) [craftbukkit.jar:git-Bukkit-33d5de3]
    at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:517) [craftbukkit.jar:git-Bukkit-33d5de3]
    at java.lang.Thread.run(Unknown Source) [?:1.7.0_51]
Caused by: java.lang.NullPointerException
    at com.palmergames.bukkit.towny.listeners.TownyEntityListener.onCreatureSpawn(TownyEntityListener.java:307)
~[?:?]
    at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source) ~[?:?]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:295) ~[craftbukkit.jar:git-Bukkit-33d5de3]
    ... 15 more

**Note: Could not pass event CreatureSpawnEvent to Towny v0.89.2.25 is repeated a few
a times afterward then this cycle resets.

What is your Towny version number? :
Towny v0.89.2.25

What is your TownyChat version number? :

What is your Bukkit version number? :
Spigot 1.8

What operating system? :
I'm not exactly sure, I use GG Servers as my host, and they do not advertise the OS
/ and do not tell me when I ask.

Please use pastebin.com to link the following files:
- File is too large to upload to pastebin so I did elseware
http://pasted.co/74709efe

- Your towny config.yml (if using MySQL please remove pasword,)
http://pastebin.com/xcMJUGgA

- Your townyperms.yml,
http://pastebin.com/7JDLTjQW

- Your permissions file.
http://pastebin.com/8pWLKUxp

In the case of chat-issues please link your:
- Chatconfig.yml
Irrelevant
- Channels.yml
Irrelevant

Skipping these files is not an option. It is the easiest way to diagnose an
issue ticket properly. If you do skip this step then your ticket will most
likely be deleted and you will be asked to resubmit.

Reported by MythralFTW on 2015-06-26 04:31:16

LlmDl commented 9 years ago
You skipped the full startup. Pretty sure you need to update your citizens to match
your MC version.

Reported by LlmDlio on 2015-06-26 14:13:48

LlmDl commented 9 years ago
This was my full log file for whatever reason but I am running the latest version of
Towny Dev.

Reported by MythralFTW on 2015-06-26 15:33:39

LlmDl commented 9 years ago
Edit: Updating to latest version to check, I thought I grabbed the latest.

Reported by MythralFTW on 2015-06-26 15:34:56

LlmDl commented 9 years ago
Edit: I failed again I am running the latest version, should I try downgrading?

Reported by MythralFTW on 2015-06-26 15:41:13

LlmDl commented 9 years ago
I still dont see a link to your full startup: latest.log

Reported by LlmDlio on 2015-06-26 17:19:49

LlmDl commented 9 years ago
The Pasted.co link was the full latest.log

Reported by MythralFTW on 2015-06-26 17:20:33

LlmDl commented 9 years ago
No, its just your towny errors over and over again.

Reported by LlmDlio on 2015-06-26 20:14:14

LlmDl commented 9 years ago
Thats wierd, it didn't upload the whole thing, here's a re-upload: http://pasted.co/3531d1a1

Reported by MythralFTW on 2015-06-26 20:53:10

LlmDl commented 9 years ago
Update! After updating to the latest version of Spigot this error is fixed.

Issue Closed.

Reported by MythralFTW on 2015-06-30 22:08:19

LlmDl commented 9 years ago

Reported by LlmDlio on 2015-07-01 00:14:46