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());
|
||||
for(Player recipient : recipients)
|
||||
{
|
||||
if(playerData.ignoredPlayers.containsKey(recipient.getUniqueId()))
|
||||
if(!recipient.hasPermission("griefprevention.notignorable"))
|
||||
{
|
||||
recipientsToRemove.add(recipient);
|
||||
}
|
||||
else
|
||||
{
|
||||
PlayerData targetPlayerData = this.dataStore.getPlayerData(recipient.getUniqueId());
|
||||
if(targetPlayerData.ignoredPlayers.containsKey(player.getUniqueId()))
|
||||
{
|
||||
recipientsToRemove.add(recipient);
|
||||
}
|
||||
if(playerData.ignoredPlayers.containsKey(recipient.getUniqueId()))
|
||||
{
|
||||
recipientsToRemove.add(recipient);
|
||||
}
|
||||
else
|
||||
{
|
||||
PlayerData targetPlayerData = this.dataStore.getPlayerData(recipient.getUniqueId());
|
||||
if(targetPlayerData.ignoredPlayers.containsKey(player.getUniqueId()))
|
||||
{
|
||||
recipientsToRemove.add(recipient);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user