Plugin not working until reloadedSolved
I would like to know why, after our server restarts, we have to reload this plugin every damn time to get it to work properly. Is there a way to stop this from happening? VERY annoying to everyone, especially if we just so happen to not have any admin available to fix it after a restart!
Are there any startup errors from the plugin? Does it load successfully? Are you able to grant the permissions from the plugin (aka are they registered)? Do commands respond with any text? What does it say on reload after restart you do manually? What is your configuration file?

(22:45:06) | EnhancedHammer was compiled successfully in 2652ms

(22:45:06) | Unloaded plugin Enhanced Hammer v2.0.6 by Iv Misticos

(22:45:06) | Loaded plugin Enhanced Hammer v2.0.6 by Iv Misticos

 

So this is what it looks like when we reload the plugin after restart. No errors. Loads successfully. Grant permissions works fine in the F1 Console. 

.JSON:

{
"Commands": [
"eh",
"hammer",
"up",
"grade",
"upgrade"
],
"Distance From Entity": 5.0,
"Allow Auto Grade": true,
"Send Downgrade Disabled Message": true,
"Cancel Default Hammer Hit Behavior": true,
"Default Preferences": {
"DisableIn": 60.0,
"AutoGrade": true
}
}

The rest of questions such as if you can grant permissions was meant to relate to "after restart before reload". Answer them please.

I was able to grant permissions after loading the plugin. 

https://monosnap.com/file/QH9BYWsdKGrdV1Nz3DaYiVj5qv6B2n

Link shows after I reloaded it after another restart. Shows "already has permission"

Says same thing before reloading. The server restarted, I granted permission, said it already was. Reloaded plugin, granted again, same message.

Do commands respond with any text after restart before reload? The hammer commands like /grade.
Yep they respond and do what they're supposed to when used. Everything seems to work just fine. But as soon as our server restarts, we have to reload the plugin so we can use the portion where you upgrade one piece, and you should be able to just look at other parts and click and it upgrades instantly. And that part is where if the server restarts, have to reload the plugin and that portion works again. But don't get any errors ever, and commands work, and all. So I'm really lost. Sorry for the complication of this.

Merged post

Check this out, just saw this tonight for the very first time!

Failed to call hook 'OnPlayerDisconnected' on plugin 'EnhancedHammer v2.0.6' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.EnhancedHammer+PluginData+Preference.UpdateGradeTimer () [0x00027] in <2a85203e54c04fc293b153ef2900bcf2>:0
at Oxide.Plugins.EnhancedHammer+PluginData+Preference.SetGrade (BuildingGrade+Enum grade) [0x0010e] in <2a85203e54c04fc293b153ef2900bcf2>:0
at Oxide.Plugins.EnhancedHammer.OnPlayerDisconnected (BasePlayer player) [0x0000b] in <2a85203e54c04fc293b153ef2900bcf2>:0
at Oxide.Plugins.EnhancedHammer.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x002d6] in <2a85203e54c04fc293b153ef2900bcf2>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d09a1f46ca2f4432811bcfe45ad13c7b>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cf88a28c7fb44d36890d85a78331cc9d>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cf88a28c7fb44d36890d85a78331cc9d>:0
Just checking back on this, thanks! :)
Pouncer012

Hey! So I'm sorry this is from 2 years ago, but I'm still having issues! lol

https://umod.org/community/enhanced-hammer/24969-plugin-not-working-until-reloaded

Any thoughts? Thanks a million!

Anyone else having this issue? I'm getting this red error code stuff in console when people are using Enhanced Hammer, or when people disconnect from the server. Still trying to get support on this for a good plugin! :)

im also having the same issue.  plugin has to be reloaded to work.  commands respond but the features dont such as swinging the hammer, placeing with grade selected.  plugin is up to date and i get the same error as above when ever i or someone else trys to do anything.  

Locked automatically