Do that fix for main packet listener too
This commit is contained in:
		| @@ -29,7 +29,8 @@ public class PacketListenerMain extends PacketAdapter { | ||||
|  | ||||
|         final Player observer = event.getPlayer(); | ||||
|  | ||||
|         if (observer.getName().contains("UNKNOWN[")) // If the player is temporary | ||||
|         if (observer == null || observer.getName() == null || | ||||
|                 observer.getName().contains("UNKNOWN[")) // If the player is temporary | ||||
|             return; | ||||
|  | ||||
|         // First get the entity, the one sending this packet | ||||
|   | ||||
		Reference in New Issue
	
	Block a user