Failed to call hook 'OnServerInitialized' on plugin 'VoteForMoney v1.0.6' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.VoteForMoney.WipeCooldown () [0x0000b] in <063eba2d7dac4482b7b3435301508172>:0 at Oxide.Plugins.VoteForMoney.OnServerInitialized () [0x00000] in <063eba2d7dac4482b7b3435301508172>:0 at Oxide.Plugins.VoteForMoney.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x001b9] in <063eba2d7dac4482b7b3435301508172>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0 Loaded plugin VoteForMoney v1.0.6 by Frenk92
NullReferenceException at WipeCooldownFixed
Can you give more details? The plugin works correctly on my server.
{
"Groups": {
"1": {
"money": "10000",
"rp": "500"
},
"2": {
"money": "25000",
"rp": "750"
},
"3": {
"money": "50000",
"rp": "1000"
}
},
"TopVoters": {
"1": {},
"2": {},
"3": {}
}
}Merged post
is my config wrong or something ?
In response to XNeo ():{ "Groups": { "1": { "money": "10000", "rp": "500" }, "2": { "money"...
It's wrong. You have to set it as in the example of the plugin page. If you want everyone to receive a reward every vote, you have to set this up:
{
"Groups": {
"default.1": {
"money": "1000",
"rp": "500"
}
},
"TopVoters": {
"1": {},
"2": {},
"3": {}
}
}
If you want to set every two votes just type "default.2" (groupname.interval).
o.reload VoteForMoney
Unloaded plugin VoteForMoney v1.0.6 by Frenk92
Failed to call hook 'OnServerInitialized' on plugin 'VoteForMoney v1.0.6' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.VoteForMoney.WipeCooldown () [0x0000b] in <063eba2d7dac4482b7b3435301508172>:0
at Oxide.Plugins.VoteForMoney.OnServerInitialized () [0x00000] in <063eba2d7dac4482b7b3435301508172>:0
at Oxide.Plugins.VoteForMoney.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x001b9] in <063eba2d7dac4482b7b3435301508172>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0
Loaded plugin VoteForMoney v1.0.6 by Frenk92Merged post
still get that error with the new config like you posted
Merged post
I'm running the latest version of oxide/umod
Did you also check the one in the config folder?
{
"InitCheck": true,
"AllGroupsGetDefault": false,
"Prefix": "<color=#808000ff><b>VoteForMoney:</b></color>",
"BlockVote": "0.6"
} {
"InitCheck": false,
"AllGroupsGetDefault": true,
"Prefix": "<color=#808000ff><b>RustyKarma Vote</b></color>",
"BlockVote": null
}Merged post
fixed it
o.reload VoteForMoney
Unloaded plugin VoteForMoney v1.0.7 by Frenk92
Loaded plugin VoteForMoney v1.0.7 by Frenk92
Locked automatically