Jump to content

Console error on trying to use

Closed 1.0.4 1.0.5

Granted default group selfwipe.use. Can see the UI but when clicking any of the options, this spits out in console and nothing happens:

 

(09:34:37) | Failed to call hook 'cmdConsoleSELF_WIPE' on plugin 'SelfWipe v1.0.4' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.SelfWipe.cmdConsoleSELF_WIPE (ConsoleSystem+Arg arg) [0x00007] in <e5684954a4dc486aafaf9ff95bc53fe4>:0

at Oxide.Plugins.SelfWipe.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0043b] in <e5684954a4dc486aafaf9ff95bc53fe4>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <23ba99f131254889867c71f0bd137b1d>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <157a94ee66ab4a7991faecd1eb84be3b>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <157a94ee66ab4a7991faecd1eb84be3b>:0

I am using a test server that is fully updated with both game and oxide as of today. Really look forward to being able to use this on our production server, but need to get this resolved first.

Share this comment


Link to comment

I have a suggested revision for you:

 

            try{
                if (NoEscape.Call<bool>("IsRaidBlocked", player.UserIDString))
                    return;
            }
            catch(NullReferenceException err)
            {   
            }

That will ignore the NullReferenceException for anyone not using NoEscape and allows the plugin to work. I have tested this in my lab successfully

Edited by tschetschpi1

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

82.2k

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.