diff --git a/MMOCore-API/src/main/java/net/Indyuce/mmocore/command/PartyCommand.java b/MMOCore-API/src/main/java/net/Indyuce/mmocore/command/PartyCommand.java index d36ac5b2..d9f02a10 100644 --- a/MMOCore-API/src/main/java/net/Indyuce/mmocore/command/PartyCommand.java +++ b/MMOCore-API/src/main/java/net/Indyuce/mmocore/command/PartyCommand.java @@ -31,6 +31,10 @@ public class PartyCommand extends RegisteredCommand { sender.sendMessage(ChatColor.RED + "This command is for players only."); return true; } + if(!(MMOCore.plugin.partyModule instanceof MMOCorePartyModule)){ + sender.sendMessage(ChatColor.RED+"You can't use MMOCore party system as you delegated the party system to another plugin."); + return true; + } PlayerData data = PlayerData.get((OfflinePlayer) sender); MMOCommandEvent event = new MMOCommandEvent(data, "party");