From f0ce3fcdc458552d963ba62e79efc0fb8528c618 Mon Sep 17 00:00:00 2001 From: montlikadani Date: Mon, 23 Sep 2019 15:32:43 +0200 Subject: [PATCH] Re-add deprecated pointsData method to prevent issue from plugins --- Changelog.txt | 1 + src/main/java/com/gamingmesh/jobs/PlayerManager.java | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/Changelog.txt b/Changelog.txt index 9acbe6bb..34b33c8f 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -20,3 +20,4 @@ - Updated translations to the latest - Jobs toggles will not be saved from now instantly when get income - Added option to leave from job in jobs GUI. +- Quest objective amount is now optional (default 1) diff --git a/src/main/java/com/gamingmesh/jobs/PlayerManager.java b/src/main/java/com/gamingmesh/jobs/PlayerManager.java index 1b82a3f5..e7674a47 100644 --- a/src/main/java/com/gamingmesh/jobs/PlayerManager.java +++ b/src/main/java/com/gamingmesh/jobs/PlayerManager.java @@ -63,6 +63,7 @@ import com.gamingmesh.jobs.container.PlayerPoints; import com.gamingmesh.jobs.dao.JobsDAO; import com.gamingmesh.jobs.dao.JobsDAOData; import com.gamingmesh.jobs.economy.PaymentData; +import com.gamingmesh.jobs.economy.PointsData; import com.gamingmesh.jobs.stuff.PerformCommands; import com.gamingmesh.jobs.stuff.Util; @@ -79,6 +80,15 @@ public class PlayerManager { private HashMap PlayerIDMap = new HashMap<>(); private HashMap PlayerNameMap = new HashMap<>(); + /** + * @deprecated Use {@link Jobs}.{@link Jobs#getPointsData} instead + * @return {@link PointsData} + */ + @Deprecated + public PointsData getPointsData() { + return Jobs.getPointsData(); + } + public int getMapSize() { return PlayerUUIDMap.size(); }