mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-02-07 12:11:22 +01:00
!support for latest mmocore
This commit is contained in:
parent
c91be73d98
commit
3a1362a588
@ -1,6 +1,7 @@
|
||||
package net.Indyuce.mmoitems.api.util.message;
|
||||
|
||||
import io.lumine.mythic.lib.MythicLib;
|
||||
import net.Indyuce.mmocore.api.player.PlayerActivity;
|
||||
import net.Indyuce.mmocore.api.player.PlayerData;
|
||||
import net.Indyuce.mmoitems.MMOItems;
|
||||
import org.bukkit.Bukkit;
|
||||
@ -54,7 +55,7 @@ public class PlayerMessage {
|
||||
|
||||
if (actionBar) {
|
||||
if (Bukkit.getPluginManager().isPluginEnabled("MMOCore"))
|
||||
PlayerData.get(player).setActionBarTimeOut(60);
|
||||
PlayerData.get(player).setLastActivity(PlayerActivity.ACTION_BAR_MESSAGE);
|
||||
|
||||
MythicLib.plugin.getVersion().getWrapper().sendActionBar(player, message);
|
||||
} else
|
||||
|
Loading…
Reference in New Issue
Block a user