Fixed another bug when running without MMOItems

This commit is contained in:
Aria Sangarin 2020-02-26 18:34:41 +01:00
parent 0c34892138
commit cf5647a72c

View File

@ -3,7 +3,6 @@ package net.Indyuce.mmocore.api.player;
import java.util.HashMap;
import java.util.Map;
import net.Indyuce.mmoitems.MMOItems;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
@ -87,7 +86,7 @@ public class Professions {
exp.put(profession.getId(), exp.containsKey(profession.getId()) ? exp.get(profession.getId()) + value : value);
// display hologram
if (MMOItems.plugin.getConfig().getBoolean("game-indicators.exp.enabled")) {
if (MMOCore.plugin.getConfig().getBoolean("display-exp-holograms")) {
if (loc != null && MMOCore.plugin.hologramSupport != null)
MMOCore.plugin.hologramSupport.displayIndicator(loc.add(.5, 1.5, .5), MMOCore.plugin.configManager.getSimpleMessage("exp-hologram", "exp", "" + value).message(), playerData.getPlayer());
}