Feature Improve clan switching functionality

Irrat

Member
Currently, you can get your clan name, and your clan ID.

However mafia does not support a way to switch clans, or retrieve your whitelisted clans. Instead to find this information a script has to fetch and parse a page.

This wouldn't be a real issue, but for those scripts that aim to automate a large part of a day; the clan switching can be a big deal.

Adding to this, there's no command to switch clans outside of the kol chat command.

So what I'm suggesting is

get_whitelisted_clans(): Map<Integer, String> is_whitelisted(string clanName): boolean is_whitelisted(int clanId): boolean join_clan(string clanName): boolean join_clan(int clanId): boolean

And a new command to switch clans, to view whitelists, to apply to a clan.

Finally, a new preference which has a relay warning if you are not whitelisted in your current clan but you try to switch or leave clans. And will throw an error in a script for the same reason. "Script aborted: User tried to leave their current clan, but they are not whitelisted and will not be able to rejoin the clan"

This is closer to three feature requests, where you have
1. API for clans
2. Command for clans
3. User warning for possible mistake
 
Top