Jump to content

Error Converting ServerRewards

Pending 1.3.7

Kaho
Kaho

Posted

Hey,

as soon as i use the convert command i get this error:
Failed to call hook 'CmdConsoleConvertServerRewards' on plugin 'BankSystem v1.3.7' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.BankSystem.ConvertFromServerRewards () [0x0009f] in <df30e738d487441cb42df7dd8b6884b9>:0 
  at Oxide.Plugins.BankSystem.CmdConsoleConvertServerRewards (ConsoleSystem+Arg arg) [0x00009] in <df30e738d487441cb42df7dd8b6884b9>:0 
  at Oxide.Plugins.BankSystem.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0142e] in <df30e738d487441cb42df7dd8b6884b9>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <87ce9ac9776a48658bc55eae6debe38b>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <18d4f19bbc844191b11ed9e69284d09b>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <18d4f19bbc844191b11ed9e69284d09b>:0 


Also:
Ist it possible to use ServerRewards as Economic?
Because set them in the Config. But cant deposit or withdraw money... Account is always 0$ 😕

  "Economy Settings": {
    "Use own economic system?": false,
    "Plugin name": "ServerRewards",
    "Balance add hook": "Deposit",
    "Balance remove hook": "Withdraw",
    "Balance show hook": "Balance"
  },

Mevent

Posted

Hi @Kaho

About the conversion command: can you send your ServerRewards data?

About the settings in the config: you need to use the following parameters:
 

 "Economy Settings": {
    "Use own economic system?": false,
    "Plugin name": "ServerRewards",
    "Balance add hook": "AddPoints",
    "Balance remove hook": "TakePoints",
    "Balance show hook": "CheckPoints",
  },

 

Kaho

Posted

Hey,

works perfect. Thank you!

Dunno if i need the convert command tbf...?

Attached you find the data folder if you wanna check. Already removed the -value. But still the error 🙂

Thank you and enjoy the holidays!

ServerRewards.zip

  • Love 1
1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

Files Sold

Total number of files sold.

2m

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.