[Arena] Timer 1s has failed: (Object reference not set to an instance of an object)
at void Oxide.Plugins.Arena.OnPlayerConnected(BasePlayer player) in C:/rustserver/carbon/plugins/Arena.cs:line 182
at void Oxide.Plugins.Arena.TryRestorePlayer(BasePlayer player)+() => { } in C:/rustserver/carbon/plugins/Arena.cs:line 231
at Timer Oxide.Plugins.Timers.In(float time, Action action)+() => { } in D:/a/Carbon/Carbon/Carbon.Core/Carbon.Components/Carbon.Common/src/Oxide/Libraries/Timer.cs:line 56
#After recent update Carbon v.1.2024.1088.2616 I am receiving this error and Arena plugin is broken:
1 messages · Page 1 of 1 (latest)
can you show me a snippet of the code around the line 182?
Hello Raul 🙂
#region Player Connect/Disconnect
private void OnPlayerConnected(BasePlayer player)
{
if (Configuration.Server.RestorePlayers)
TryRestorePlayer(player);
if (Lobby.ForceLobbyRespawn && player.IsDead())
{
NextTick(() => Lobby.SendRespawnOptions(player));
return;
}
if (Lobby.ForceLobbyRespawn && Configuration.Lobby.KeepPlayersInLobby && !player.IsAdmin && !permission.UserHasPermission(player.UserIDString, ADMIN_PERMISSION))
{
if (ZoneManager && !ZoneManager.Call<bool>("IsPlayerInZone", Configuration.Lobby.LobbyZoneID, player))
Lobby.TeleportToLobby(player);
}
}
I reverted back to older version and is working
I tried latest version of Carbon and issue still persists still having to use older version
could you DM me the plugin please?
how did you get it working?
I had to merge all plugins into 1 plugin file
when i c.reload Arena then the error goes away