Exposing Clan identifier in ClanMessageChannel
Issue #2
resolved
As discussed before I would suggest storing Clan identifier inside ClanMessageChannel and exposing it to the outside world via a function like getIdentifier() or getClan(). This would help other plugin to know what clan the message is sending to.
The same can also be done with AllyMessageChannel with getIdentifiers() or getClans().
I really hope you would consider this small change soon :).
Comments (4)
-
repo owner -
repo owner - changed status to open
-
repo owner - changed status to resolved
Added in MCClansAPI v1.2 (used by MCClans v1.4+).
Suggested usage:
MessageChannel messageChannel = ... if (messageChannel instanceof ClanMessageChannel) { ClanMessageChannel clanMessageChannel = (ClanMessageChannel) messageChannel; Clan clan = clanMessageChannel.getClan(); } else if (messageChannel instanceof AllyMessageChannel) { AllyMessageChannel allyMessageChannel = (AllyMessageChannel) messageChannel; List<Clan> clans = allyMessageChannel.getClans(); }
-
reporter This addition is really nice. I appreciate that very much!
- Log in to comment
Absolutely. Sorry for the late response.
Will try to get this released today.