Fix: Send new sign content to admins.

Accidentally broken by an earlier commit.
This commit is contained in:
Big Scary 2016-09-07 15:35:40 -07:00 committed by GitHub
commit 9e1be73d46

View File

@ -131,7 +131,7 @@ public class BlockEventHandler implements Listener
//if not empty and wasn't the same as the last sign, log it and remember it for later //if not empty and wasn't the same as the last sign, log it and remember it for later
PlayerData playerData = this.dataStore.getPlayerData(player.getUniqueId()); PlayerData playerData = this.dataStore.getPlayerData(player.getUniqueId());
if(notEmpty && playerData.lastSignMessage != null && !playerData.lastSignMessage.equals(signMessage)) if(notEmpty && (playerData.lastSignMessage == null || !playerData.lastSignMessage.equals(signMessage)))
{ {
GriefPrevention.AddLogEntry(player.getName() + lines.toString().replace("\n ", ";"), null); GriefPrevention.AddLogEntry(player.getName() + lines.toString().replace("\n ", ";"), null);
PlayerEventHandler.makeSocialLogEntry(player.getName(), signMessage); PlayerEventHandler.makeSocialLogEntry(player.getName(), signMessage);