Blocks MMOCore party commands when another Module has been loaded.

This commit is contained in:
Ka0rX 2023-03-19 13:15:45 +01:00
parent 68fe326035
commit 57fe9f1f1b

View File

@ -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");