Needs and update

Needs and Update since 2.0.6241 update 

 Failed to call hook 'OnPlayerSleepEnded' on plugin 'ClanTeam v1.0.6' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.ClanTeam.ClanPlayers (BasePlayer player) [0x0003d] in <6b6222011a3740e08f63f3f455f276ca>:0 
  at Oxide.Plugins.ClanTeam.OnPlayerSleepEnded (BasePlayer player) [0x00018] in <6b6222011a3740e08f63f3f455f276ca>:0 
  at Oxide.Plugins.ClanTeam.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00389] in <6b6222011a3740e08f63f3f455f276ca>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <795304323ac74a298b8ed190a1dfa739>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <beb2b64691c64e2b95b99491bd85442c>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <beb2b64691c64e2b95b99491bd85442c>:0

same problem

Fix for anyone needing this:

Line 71:  JObject clanInfo = Clans.Call<JObject>("GetClan", Clans.Call<string>("GetClanOf", player.userID));

To This:  JObject clanInfo = Clans.Call<JObject>("GetClan", Clans.Call<string>("GetClanOf", (ulong)player.userID));

Line 77:  return Clans.Call<string>("GetClanOf", memberId);

To This:   return Clans.Call<string>("GetClanOf", (ulong)memberId);

Line 82:   JObject clanInfo = Clans.Call<JObject>("GetClan", Clans.Call<string>("GetClanOf", player.userID));

To This:  JObject clanInfo = Clans.Call<JObject>("GetClan", Clans.Call<string>("GetClanOf", (ulong)player.userID));
ojxwvGZlnnJfpAm.jpg TwoShoes

Fix for anyone needing this:

Line 71:  JObject clanInfo = Clans.Call<JObject>("GetClan", Clans.Call<string>("GetClanOf", player.userID));

To This:  JObject clanInfo = Clans.Call<JObject>("GetClan", Clans.Call<string>("GetClanOf", (ulong)player.userID));

Line 77:  return Clans.Call<string>("GetClanOf", memberId);

To This:   return Clans.Call<string>("GetClanOf", (ulong)memberId);

Line 82:   JObject clanInfo = Clans.Call<JObject>("GetClan", Clans.Call<string>("GetClanOf", player.userID));

To This:  JObject clanInfo = Clans.Call<JObject>("GetClan", Clans.Call<string>("GetClanOf", (ulong)player.userID));
Thanks for this!
yvmkPwnXDYFI5zU.jpg TwoShoes

Fix for anyone needing this:

Line 71:  JObject clanInfo = Clans.Call<JObject>("GetClan", Clans.Call<string>("GetClanOf", player.userID));

To This:  JObject clanInfo = Clans.Call<JObject>("GetClan", Clans.Call<string>("GetClanOf", (ulong)player.userID));

Line 77:  return Clans.Call<string>("GetClanOf", memberId);

To This:   return Clans.Call<string>("GetClanOf", (ulong)memberId);

Line 82:   JObject clanInfo = Clans.Call<JObject>("GetClan", Clans.Call<string>("GetClanOf", player.userID));

To This:  JObject clanInfo = Clans.Call<JObject>("GetClan", Clans.Call<string>("GetClanOf", (ulong)player.userID));

This works also for me. when i had the problem that player wherte not able to join the team automatic.

changed the few lines and every thing works perfect.