mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-28 21:45:43 +01:00
Re-add deprecated pointsData method to prevent issue from plugins
This commit is contained in:
parent
9a73f1eb0d
commit
f0ce3fcdc4
@ -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)
|
||||
|
@ -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<Integer, PlayerInfo> PlayerIDMap = new HashMap<>();
|
||||
private HashMap<String, PlayerInfo> 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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user