mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-23 00:05:52 +01:00
Blocks MMOCore party commands when another Module has been loaded.
This commit is contained in:
parent
68fe326035
commit
57fe9f1f1b
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user