Jump to content

Stacktrace when warning an offline player

Work in Progress 2.5.8-beta4

Note: I'm assuming this stacktrace occurs because the player in question is offline, but it might be for other reasons (such as the fact that that SmartWarnings_PlayerData contains two different players with the same name, albeit different Steam IDs)

Also of note, the player's entry in the PlayerData file seems to indicate that the warning was already acknowledged, which is odd and should not be true.

The following data was copied directly from the console, after entering the shown command in the console:

 

06/11 01:08:38 | >>> WARN 7656************* slur
06/11 01:08:38 | [Better Chat Mute] bill was muted by Server Console for 1 day(s): SmartWarnings AutoMod: Slurs are not permitted on this server.
06/11 01:08:38 | Player not found
06/11 01:08:38 | [SmartWarnings] [cmdWarnGUI] An unexpected error occurred server_console executed command warn
args:7656************* slur

System.NullReferenceException: Object reference not set to an instance of an object
at Oxide.Game.Rust.Libraries.Player.Position (BasePlayer player) [0x00000] in <ddc95321109547ab8f8488c04c21320a>:0
at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Position () [0x00000] in <ddc95321109547ab8f8488c04c21320a>:0
at Oxide.Plugins.SmartWarnings.UseChat (Oxide.Core.Libraries.Covalence.IPlayer player, System.Int32 warnId, System.String reason, System.String warndate, System.String warnedby) [0x00022] in <3cf5f2b8639f40369303cb8251d1ae8c>:0
at Oxide.Plugins.SmartWarnings.WarnPlayer (Oxide.Core.Libraries.Covalence.IPlayer targetPlayer, Oxide.Core.Libraries.Covalence.IPlayer adminPlayer, System.String preset) [0x007b6] in <3cf5f2b8639f40369303cb8251d1ae8c>:0
at Oxide.Plugins.SmartWarnings.cmdWarnGUI (Oxide.Core.Libraries.Covalence.IPlayer player, System.String cmd, System.String[] args) [0x00451] in <3cf5f2b8639f40369303cb8251d1ae8c>:0

 

SmartWarnings.json

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

81.5k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.