diff --git a/src/main/java/com/gamingmesh/jobs/Jobs.java b/src/main/java/com/gamingmesh/jobs/Jobs.java index acd67409..dd1ffdc1 100644 --- a/src/main/java/com/gamingmesh/jobs/Jobs.java +++ b/src/main/java/com/gamingmesh/jobs/Jobs.java @@ -91,6 +91,7 @@ import com.gamingmesh.jobs.economy.BufferedEconomy; import com.gamingmesh.jobs.economy.BufferedPayment; import com.gamingmesh.jobs.economy.Economy; import com.gamingmesh.jobs.economy.PaymentData; +import com.gamingmesh.jobs.economy.PointsData; import com.gamingmesh.jobs.hooks.HookManager; import com.gamingmesh.jobs.i18n.Language; import com.gamingmesh.jobs.listeners.JobsListener; @@ -288,6 +289,16 @@ public final class Jobs extends JavaPlugin { return dbManager; } + /** + * Gets the PointsData + * @deprecated Use {@link JobsPlayer#getPointsData()} + * @return {@link PointsData} + */ + @Deprecated + public static PointsData getPointsData() { + return null; + } + public static ShopManager getShopManager() { if (shopManager == null) { shopManager = new ShopManager(); diff --git a/src/main/java/com/gamingmesh/jobs/PlayerManager.java b/src/main/java/com/gamingmesh/jobs/PlayerManager.java index 7dfdfbe9..7a29d675 100644 --- a/src/main/java/com/gamingmesh/jobs/PlayerManager.java +++ b/src/main/java/com/gamingmesh/jobs/PlayerManager.java @@ -92,9 +92,9 @@ public class PlayerManager { */ @Deprecated public com.gamingmesh.jobs.economy.PointsData getPointsData() { - return null; + return Jobs.getPointsData(); } - + /** * @return the cached mob spawner meta name */ @@ -677,7 +677,7 @@ public class PlayerManager { if (prog.getLevel() < oldLevel) { String message = Jobs.getLanguage().getMessage("message.leveldown.message"); - message = message.replace("%jobname%", job.getDisplayName()); + message = message.replace("%jobname%", job.getJobDisplayName()); message = message.replace("%playername%", player != null ? plugin.getComplement().getDisplayName(player) : jPlayer.getName()); message = message.replace("%joblevel%", prog.getLevelFormatted()); message = message.replace("%lostLevel%", Integer.toString(oldLevel)); @@ -780,7 +780,7 @@ public class PlayerManager { String message = Jobs.getLanguage().getMessage("message.levelup." + (Jobs.getGCManager().isBroadcastingLevelups() ? "broadcast" : "nobroadcast")); - message = message.replace("%jobname%", job.getDisplayName()); + message = message.replace("%jobname%", job.getJobDisplayName()); if (levelUpEvent.getOldTitle() != null) message = message.replace("%titlename%", levelUpEvent.getOldTitle() @@ -821,7 +821,7 @@ public class PlayerManager { message = message.replace("%playername%", player != null ? plugin.getComplement().getDisplayName(player) : jPlayer.getName()); message = message.replace("%titlename%", levelUpEvent.getNewTitle() .getChatColor().toString() + levelUpEvent.getNewTitle().getName()); - message = message.replace("%jobname%", job.getDisplayName()); + message = message.replace("%jobname%", job.getJobDisplayName()); if (Jobs.getGCManager().isBroadcastingSkillups() || Jobs.getGCManager().TitleChangeActionBar || Jobs.getGCManager().TitleChangeChat) { for (String line : message.split("\n")) {