1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-01-07 16:58:37 +01:00

Merge pull request #346 from jackstrosahl/master

Fix #37 for Points
This commit is contained in:
montlikadani 2019-02-06 14:21:42 +01:00 committed by GitHub
commit 256fc873b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@ package com.gamingmesh.jobs.economy;
import java.util.HashMap;
import java.util.UUID;
import com.gamingmesh.jobs.Jobs;
import com.gamingmesh.jobs.container.PlayerPoints;
public class PointsData {
@ -25,11 +26,11 @@ public class PointsData {
}
public void addPlayer(UUID uuid, double points, double total) {
if (!Pointbase.containsKey(uuid))
Pointbase.put(uuid, new PlayerPoints(points, total));
addPlayer(uuid, new PlayerPoints(points,total));
}
public void addPlayer(UUID uuid, PlayerPoints points) {
if (Jobs.getGCManager().MultiServerCompatability()&&Pointbase.containsKey(uuid)) Pointbase.remove(uuid);
if (!Pointbase.containsKey(uuid))
Pointbase.put(uuid, points);
}