1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-29 04:18:07 +01:00

Italian locale update

This commit is contained in:
Zrips 2024-01-30 11:46:16 +02:00
parent d9cb1bf337
commit f311172ff6
3 changed files with 400 additions and 401 deletions

View File

@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>Jobs</groupId>
<artifactId>jobs</artifactId>
<version>5.2.2.2</version>
<version>5.2.2.3</version>
<name>Jobs</name>
<url>http://maven.apache.org</url>

View File

@ -1341,14 +1341,14 @@ public final class JobsPaymentListener implements Listener {
if (!ignore) {
UUID lVictimUUID = lVictim.getUniqueId();
Double damage = damageDealtByPlayers.getIfPresent(lVictimUUID);
if (damage != null) {
double perc = (damage * 100D) / Util.getMaxHealth(lVictim);
damageDealtByPlayers.invalidate(lVictimUUID);
if (perc < Jobs.getGCManager().MonsterDamagePercentage)
return;
} else {
// Not paying if we have no records about damage done to an entity by the player's
if (damage == null)
return;
double perc = (damage * 100D) / Util.getMaxHealth(lVictim);
damageDealtByPlayers.invalidate(lVictimUUID);
if (perc < Jobs.getGCManager().MonsterDamagePercentage)
return;
}
}
}

File diff suppressed because it is too large Load Diff