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:
parent
e429bc8020
commit
8970de026b
@ -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,6 +387,7 @@ public class FPlayer {
|
||||
// Messages
|
||||
// -------------------------------------------- //
|
||||
public void sendMessage(String message) {
|
||||
if (this.getPlayer() != null)
|
||||
this.getPlayer().sendMessage(Conf.colorSystem + message);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user