Clans REBORN

Clans REBORN 3.0.35

Null check in OnPlayerDisconnected
Apply clan tag opening and closing brackets
Fixed clan last updated time being reset when plugin loads (preventing old clans from being purged)
  • Like
Reactions: gormie
Removed useless IPlayer caching
Added hooks;
C#:
(void) OnClanMemberJoined(string userId, string clanTag)
(void) OnClanMemberGone(string userId, string clanTag)
(void) OnClanDisbanded(string clanTag, List<string>memberIds)
  • Like
Reactions: Kinesis and zzzJam
Updated for hook deprecation
  • Like
Reactions: zzzJam
Fixed stack overflow on HasFriend
Added API
C#:
(List<string>) GetClanAlliances(ulong playerId)

All API methods have string argument variants
C#:
//Example
(bool) IsAllyPlayer(ulong playerId, ulong otherId)
// -OR-
(bool) IsAllyPlayer(string playerId, string otherId)
  • Like
Reactions: MalS
Added API:
C#:
(bool) IsClanMember(ulong playerId, ulong otherId) // Check if 2 players are clan mates
(bool) IsMemberOrAlly(ulong playerId, ulong otherId) // Check if 2 players are clan mates or clan allies
(bool) IsAllyPlayer(ulong playerId, ulong otherId) // Check if 2 players are in allied clans
  • Like
Reactions: Kinesis and zzzJam
Fix NRE in UpdateTeam
Un-fuck team management and just piggy back of the games default setup
Fixed client NRE when opening the map