Simyon264 / AntiSurfaceCamping

A plugin which stops players from camping on the surface for too long
1 stars 1 forks source link

Random console errors #2

Closed LaFesta1749 closed 6 months ago

LaFesta1749 commented 1 year ago

Exiled version: 8.2.1 This plugin version: 1.1.0

Whenever someone changes role it drops and error in the console. Sometimes it's just a random error without anyone changing any role:

[2023-09-17 15:05:00.721 +02:00] Player haremmaster1212 (REDACTED@steam) (10) connected with the IP: REDACTED
[2023-09-17 15:05:00.733 +02:00] [ERROR] [Exiled.API] Method "OnRoleChange" of the class "AntiSurfaceCamping.Plugin" caused an exception when handling the event "Exiled.Events.Features.Event`1[[Exiled.Events.EventArgs.Player.ChangingRoleEventArgs, Exiled.Events, Version=8.2.1.0, Culture=neutral, PublicKeyToken=null]]"
                                 System.NullReferenceException: Object reference not set to an instance of an object
                                   at AntiSurfaceCamping.Plugin.OnRoleChange (Exiled.Events.EventArgs.Player.ChangingRoleEventArgs ev) [0x00019] in <a6d7b0eebdf5499e83027f701c28fb8b>:0 
                                   at Exiled.Events.Features.Event`1[T].InvokeSafely (T arg) [0x00028] in <5bbe19fef6524ffe872aca7ed5ae3f3f>:0
[2023-09-17 15:05:03.294 +02:00] Authentication token of player REDACTED@steam has been confirmed by central server.

And here's the ASC Config:

is_enabled: true
# If debug mode is enabled. When enabled, the plugin will log debug messages to the console. DON'T USE WITH MORE THEN 1 PLAYER, CONSOLE WILL FLOOD.
debug: false
# The damage camping players get.
damage: 0.5
# The time until the player will be notified that they will start getting damage soon.
time_until_notice: 30
# The message to display when players will soon start to get damage
notice_message: 'Please do not camp on the surface. The Cookie Monster is watching you!'
# The message to display when the player is getting damage because they are camping.
damage_message: 'You are getting attacked by the Cookie Monster because you are camping on the surface.'
# The message to display when the player starts getting fatal damage because they are camping too long.
fatal_damage_message: 'You are getting critical hits by the Cookie Monster because you are camping on the surface.'
# The time until the player gets damage.
time_until_damage: 60
# If the Warhead should disable the camping timer.
disable_if_warhead: true
# If an SCP on the surface should disable the camping timer.
disable_if_s_c_p_on_surface: true
# The time until fatal damage starts.
time_until_fatal_damage: 120
# The amount of fatal damge players should get.
fatal_damage: 5
# Roles which dont get camping checked.
immune_roles:
- Tutorial
Dashtiss commented 1 year ago

i've gotten that error too

LaFesta1749 commented 1 year ago

@Simyon264 can you please check this? Thanks :)

Simyon264 commented 12 months ago

The new release should have fixed this. Can you tell me if it did?

Dashtiss commented 12 months ago

I can test it in a little bit

Sent from my iPhone

On Nov 7, 2023, at 1:02 AM, Simon @.***> wrote:



The new release should have fixed this. Can you tell me if it did?

— Reply to this email directly, view it on GitHubhttps://github.com/Simyon264/AntiSurfaceCamping/issues/2#issuecomment-1797923861, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQEO2O6MB53P5GFTUBTDTOLYDHMH3AVCNFSM6AAAAAA43TQB4KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJXHEZDGOBWGE. You are receiving this because you commented.Message ID: @.***>