mirror of
https://github.com/Zrips/Jobs.git
synced 2024-12-30 21:07:48 +01:00
Up
This commit is contained in:
parent
a6453ff9cc
commit
b3dc1d66d7
@ -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();
|
||||
|
@ -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")) {
|
||||
|
Loading…
Reference in New Issue
Block a user