Cleanup
This commit is contained in:
parent
fb3dce512a
commit
2897016443
62 changed files with 278 additions and 462 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue