don't try sending a message to a player who isn't online; NPEs suck
removed instaDestroyMaterials since it is no longer needed
This commit is contained in:
		@@ -59,7 +59,6 @@ public class Conf {
 | 
				
			|||||||
	
 | 
						
 | 
				
			||||||
	public static transient Set<CreatureType> safeZoneNerfedCreatureTypes = new HashSet<CreatureType>();
 | 
						public static transient Set<CreatureType> safeZoneNerfedCreatureTypes = new HashSet<CreatureType>();
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	public static transient Set<Material> instaDestroyMaterials = new HashSet<Material>(); // This one is not really configuration therefore transient
 | 
					 | 
				
			||||||
	public static transient int mapHeight = 8;
 | 
						public static transient int mapHeight = 8;
 | 
				
			||||||
	public static transient int mapWidth = 49;
 | 
						public static transient int mapWidth = 49;
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -387,6 +387,7 @@ public class FPlayer {
 | 
				
			|||||||
	// Messages
 | 
						// Messages
 | 
				
			||||||
	// -------------------------------------------- //
 | 
						// -------------------------------------------- //
 | 
				
			||||||
	public void sendMessage(String message) {
 | 
						public void sendMessage(String message) {
 | 
				
			||||||
 | 
							if (this.getPlayer() != null)
 | 
				
			||||||
			this.getPlayer().sendMessage(Conf.colorSystem + message);
 | 
								this.getPlayer().sendMessage(Conf.colorSystem + message);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user