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:
Brettflan 2011-03-30 04:20:24 -05:00
parent e429bc8020
commit 8970de026b
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -387,6 +387,7 @@ public class FPlayer {
// Messages
// -------------------------------------------- //
public void sendMessage(String message) {
if (this.getPlayer() != null)
this.getPlayer().sendMessage(Conf.colorSystem + message);
}