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<Material> instaDestroyMaterials = new HashSet<Material>(); // This one is not really configuration therefore transient
 | 
			
		||||
	public static transient int mapHeight = 8;
 | 
			
		||||
	public static transient int mapWidth = 49;
 | 
			
		||||
	
 | 
			
		||||
 
 | 
			
		||||
@@ -387,7 +387,8 @@ public class FPlayer {
 | 
			
		||||
	// Messages
 | 
			
		||||
	// -------------------------------------------- //
 | 
			
		||||
	public void sendMessage(String message) {
 | 
			
		||||
		this.getPlayer().sendMessage(Conf.colorSystem + message);
 | 
			
		||||
		if (this.getPlayer() != null)
 | 
			
		||||
			this.getPlayer().sendMessage(Conf.colorSystem + message);
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	public void sendMessage(List<String> messages) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user