2.1.53 - Fixed critical XP bug

This commit is contained in:
nossr50
2019-05-03 15:04:40 -07:00
parent f61917e8fe
commit cdf6e607de
5 changed files with 54 additions and 4 deletions

View File

@@ -39,6 +39,7 @@ import com.gmail.nossr50.util.blockmeta.chunkmeta.ChunkManager;
import com.gmail.nossr50.util.blockmeta.chunkmeta.ChunkManagerFactory;
import com.gmail.nossr50.util.commands.CommandRegistrationManager;
import com.gmail.nossr50.util.experience.FormulaManager;
import com.gmail.nossr50.util.player.PlayerLevelUtils;
import com.gmail.nossr50.util.player.UserManager;
import com.gmail.nossr50.util.scoreboards.ScoreboardManager;
import com.gmail.nossr50.util.skills.RankUtils;
@@ -73,6 +74,7 @@ public class mcMMO extends JavaPlugin {
private static HolidayManager holidayManager;
private static UpgradeManager upgradeManager;
private static MaterialMapStore materialMapStore;
private static PlayerLevelUtils playerLevelUtils;
/* Blacklist */
private static WorldBlacklist worldBlacklist;
@@ -248,10 +250,17 @@ public class mcMMO extends JavaPlugin {
//Init Material Maps
materialMapStore = new MaterialMapStore();
//Init player level values
playerLevelUtils = new PlayerLevelUtils();
//Init the blacklist
worldBlacklist = new WorldBlacklist(this);
}
public static PlayerLevelUtils getPlayerLevelUtils() {
return playerLevelUtils;
}
public static MaterialMapStore getMaterialMapStore() {
return materialMapStore;
}