Jump to content

Error Converting ServerRewards

Pending 1.3.7

Kaho

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"
  },

Share this comment


Link to comment

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",
  },

 

Share this comment


Link to comment

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

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

82.7k

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.