1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-29 14:05:25 +01:00
This commit is contained in:
Zrips 2022-01-13 13:10:33 +02:00
parent a6453ff9cc
commit b3dc1d66d7
2 changed files with 16 additions and 5 deletions

View File

@ -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();

View File

@ -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")) {