mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2024-12-31 06:07:34 +01:00
Added support for MMOCores default actionbar
(MMOCore update will be out soon)
This commit is contained in:
parent
9ea1ba6795
commit
eb73837fa4
BIN
lib/MMOCore.jar
BIN
lib/MMOCore.jar
Binary file not shown.
@ -1,9 +1,11 @@
|
||||
package net.Indyuce.mmoitems.api.util.message;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import net.Indyuce.mmocore.MMOCore;
|
||||
import net.Indyuce.mmoitems.MMOItems;
|
||||
|
||||
public class PlayerMessage {
|
||||
@ -34,8 +36,12 @@ public class PlayerMessage {
|
||||
if (ChatColor.stripColor(message).equals(""))
|
||||
return;
|
||||
|
||||
if (MMOItems.plugin.getConfig().getBoolean("action-bar-display." + actionBarBooleanPath))
|
||||
if (MMOItems.plugin.getConfig().getBoolean("action-bar-display." + actionBarBooleanPath)) {
|
||||
if(Bukkit.getPluginManager().isPluginEnabled("MMOCore"))
|
||||
MMOCore.plugin.pauseDefaultActionBar(60);
|
||||
|
||||
MMOItems.plugin.getNMS().sendActionBar(player, message);
|
||||
}
|
||||
else
|
||||
player.sendMessage(message);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user