mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-24 00:15:16 +01:00
Fixed running MMOCore without MMOItems
(NoClassDefFoundError: net.Indyuce.mmoitems.MMOItems)
This commit is contained in:
parent
7fc5b56d59
commit
6d7001fac2
@ -50,7 +50,6 @@ import net.Indyuce.mmocore.api.skill.SkillResult;
|
||||
import net.Indyuce.mmocore.api.skill.SkillResult.CancelReason;
|
||||
import net.Indyuce.mmocore.api.util.math.particle.SmallParticleEffect;
|
||||
import net.Indyuce.mmocore.listener.SpellCast.SkillCasting;
|
||||
import net.Indyuce.mmoitems.MMOItems;
|
||||
import net.md_5.bungee.api.ChatMessageType;
|
||||
import net.md_5.bungee.api.chat.TextComponent;
|
||||
import net.mmogroup.mmolib.MMOLib;
|
||||
@ -496,7 +495,7 @@ public class PlayerData extends OfflinePlayerData {
|
||||
}
|
||||
|
||||
// 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(), getPlayer());
|
||||
}
|
||||
|
@ -76,9 +76,7 @@ health-scale:
|
||||
disable-vanilla-regen: false
|
||||
|
||||
# Allows to toggle exp hologram from gaining experiences
|
||||
game-indicators:
|
||||
exp:
|
||||
enabled: false
|
||||
display-exp-holograms: true
|
||||
|
||||
# Players can swap their hotbar with the 9 inventory slots
|
||||
# right above it by pressing [swap items] while crouching.
|
||||
|
Loading…
Reference in New Issue
Block a user