Jump to content

OnPlayerBanned Error

Closed 3.1.8

Just banned a non-admin player, and got this message in my console.

Failed to call hook 'OnPlayerBanned' on plugin 'AdminToggle v3.1.8' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.AdminToggle+LevelHelper.Get (BasePlayer player, System.Boolean GetTrueLevel) [0x00024] in <453c75c967cc412fbfd6f232457782e0>:0 
  at Oxide.Plugins.AdminToggle.HandleBan (System.UInt64 id, System.String reason) [0x0003f] in <453c75c967cc412fbfd6f232457782e0>:0 
  at Oxide.Plugins.AdminToggle.OnPlayerBanned (System.String name, System.UInt64 id, System.String address, System.String reason) [0x00000] in <453c75c967cc412fbfd6f232457782e0>:0 
  at Oxide.Plugins.AdminToggle.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x006b8] in <453c75c967cc412fbfd6f232457782e0>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <09575a60985045248bcb43b20faeeb99>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <d5f57e12edfe4fa0b5c5dbdd9b51eff8>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <d5f57e12edfe4fa0b5c5dbdd9b51eff8>:0 

 

Share this comment


Link to comment

Try setting this to false
 

Ignore Server Violations (Bans, Kicks Etc) (Recommended to keep true)

I have tested this on my development server and have not been able to reproduce this issue

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.5k

Customers

Total customers served.

78.6k

Files Sold

Total number of files sold.

1.5m

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.