Fixed errors related to console command usage.
Console commands were working, but sending messages from them was not.
This commit is contained in:
parent
50bde4724d
commit
81db249b2e
|
|
@ -39,7 +39,13 @@ class SendPlayerMessageTask implements Runnable
|
||||||
@Override
|
@Override
|
||||||
public void run()
|
public void run()
|
||||||
{
|
{
|
||||||
//if the player is dead, save it for after his respawn
|
if(player == null)
|
||||||
|
{
|
||||||
|
GriefPrevention.AddLogEntry(color + message);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
//if the player is dead, save it for after his respawn
|
||||||
if(this.player.isDead())
|
if(this.player.isDead())
|
||||||
{
|
{
|
||||||
PlayerData playerData = GriefPrevention.instance.dataStore.getPlayerData(this.player.getUniqueId());
|
PlayerData playerData = GriefPrevention.instance.dataStore.getPlayerData(this.player.getUniqueId());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user