|
|
@ -129,11 +129,7 @@ public class Sharehealth extends JavaPlugin { |
|
|
|
if (isFailed) |
|
|
|
if (isFailed) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
GetPlayers().forEach(p -> { |
|
|
|
GetPlayers(player).forEach(p -> p.playEffect(EntityEffect.HURT)); |
|
|
|
if (p == player) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
p.playEffect(EntityEffect.HURT); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
double receivedDamage = damage + absorbedDamage; |
|
|
|
double receivedDamage = damage + absorbedDamage; |
|
|
|
|
|
|
|
|
|
|
@ -235,6 +231,11 @@ public class Sharehealth extends JavaPlugin { |
|
|
|
players.removeIf(p -> !ActiveUUIDs.contains(p.getUniqueId())); |
|
|
|
players.removeIf(p -> !ActiveUUIDs.contains(p.getUniqueId())); |
|
|
|
return players; |
|
|
|
return players; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
static List<Player> GetPlayers(Player except){ |
|
|
|
|
|
|
|
List<Player> players = GetPlayers(); |
|
|
|
|
|
|
|
players.remove(except); |
|
|
|
|
|
|
|
return players; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void addPlayer(UUID uuid){ |
|
|
|
public void addPlayer(UUID uuid){ |
|
|
|
ActiveUUIDs.add(uuid); |
|
|
|
ActiveUUIDs.add(uuid); |
|
|
|