Fixed players with notignorable missing chat.
Players who ignored "notignorable" players were chatting invisibly to those notignorable players.
This commit is contained in:
parent
0e6d7bf11f
commit
38d7937e9d
|
|
@ -184,17 +184,20 @@ class PlayerEventHandler implements Listener
|
||||||
PlayerData playerData = this.dataStore.getPlayerData(player.getUniqueId());
|
PlayerData playerData = this.dataStore.getPlayerData(player.getUniqueId());
|
||||||
for(Player recipient : recipients)
|
for(Player recipient : recipients)
|
||||||
{
|
{
|
||||||
if(playerData.ignoredPlayers.containsKey(recipient.getUniqueId()))
|
if(!recipient.hasPermission("griefprevention.notignorable"))
|
||||||
{
|
{
|
||||||
recipientsToRemove.add(recipient);
|
if(playerData.ignoredPlayers.containsKey(recipient.getUniqueId()))
|
||||||
}
|
{
|
||||||
else
|
recipientsToRemove.add(recipient);
|
||||||
{
|
}
|
||||||
PlayerData targetPlayerData = this.dataStore.getPlayerData(recipient.getUniqueId());
|
else
|
||||||
if(targetPlayerData.ignoredPlayers.containsKey(player.getUniqueId()))
|
{
|
||||||
{
|
PlayerData targetPlayerData = this.dataStore.getPlayerData(recipient.getUniqueId());
|
||||||
recipientsToRemove.add(recipient);
|
if(targetPlayerData.ignoredPlayers.containsKey(player.getUniqueId()))
|
||||||
}
|
{
|
||||||
|
recipientsToRemove.add(recipient);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user