#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)

heavy nova
#

[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

young summit
#

can you show me a snippet of the code around the line 182?

heavy nova
#

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

heavy nova
#

I tried latest version of Carbon and issue still persists still having to use older version

young summit
#

what plugin is this?

#

url to it, i mean?

heavy nova
#

Arena plugin by k1lly0u

young summit
#

could you DM me the plugin please?

heavy nova
#

Yes ok

#

sent to your DM

young summit
#

how did you get it working?

heavy nova
heavy nova
#

when i c.reload Arena then the error goes away