This commit is contained in:
tyuXX 2025-06-23 14:28:15 +03:00
parent fb3dce512a
commit 2897016443
62 changed files with 278 additions and 462 deletions

View file

@ -26,7 +26,7 @@ public class ServerTickEvent {
PlayerStats playerStats = PlayerStats.getPlayerStats(player);
String jobTitleId = (String) playerStats.getStat("jobTitle");
if (jobTitleId != null && !jobTitleId.isEmpty()) {
double payCheck = JobTitlesBaseValues.jobTitleBaseValues.getOrDefault(jobTitleId, null).paycheckSize;
double payCheck = JobTitlesBaseValues.jobTitleBaseValues.getOrDefault(jobTitleId, null).paycheckSize();
playerStats.setStat("money", (Double) playerStats.getStat("money") + payCheck);
player.sendMessage("You have received your paycheck: " + payCheck);
}