Does this work anymore?

Hello,

I loaded this on to my server. It shows the image and a balance of 0.00, but it's not reading off the accurate balance for my players. Is anyone else having this issue? If so, could the dev of the plugin please fix this if it's a plugin issue?

I've pushed an update that might resolve your issue. Try it out and let me know.

This was working fine for me for the past several months, but today's update broke it. I am getting a large console error and it is no longer displaying the points on the screen:

Failed to call hook 'OnPlayerConnected' on plugin 'MagicServerRewardsPanel v1.0.5' (InvalidCastException: Invalid cast from 'System.Int32' to 'System.Nullable`1[[System.Int32, mscorlib, Version=*.*.*.*, Culture=neutral, PublicKeyToken=b77a5c561934e089]]'.)
at System.Convert.DefaultToType (System.IConvertible value, System.Type targetType, System.IFormatProvider provider) [0x00269] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Int32.System.IConvertible.ToType (System.Type type, System.IFormatProvider provider) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x0021b] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x0000c] in <eae584ce26bc40229c1b1aa476bfa589>:0
at Oxide.Core.Plugins.Plugin.Call[T] (System.String hook, System.Object[] args) [0x00008] in <9882f28dc2204b4dba514a9ad18f5042>:0
at Oxide.Plugins.MagicServerRewardsPanel.GetServerRewards (System.UInt64 userId) [0x00016] in <af160f2b28c1450bbd86f504036cc8c7>:0
at Oxide.Plugins.MagicServerRewardsPanel.OnPlayerConnected (BasePlayer player) [0x00000] in <af160f2b28c1450bbd86f504036cc8c7>:0
at Oxide.Plugins.MagicServerRewardsPanel.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00178] in <af160f2b28c1450bbd86f504036cc8c7>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <9882f28dc2204b4dba514a9ad18f5042>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <9882f28dc2204b4dba514a9ad18f5042>:0

Yup, same issue with the new version.

(10:50:02) | Failed to call hook 'OnServerInitialized' on plugin 'MagicServerRewardsPanel v1.0.5' (InvalidCastException: Invalid cast from 'System.Int32' to 'System.Nullable`1[[System.Int32, mscorlib, Version=*.*.*.*, Culture=neutral, PublicKeyToken=b77a5c561934e089]]'.)
at System.Convert.DefaultToType (System.IConvertible value, System.Type targetType, System.IFormatProvider provider) [0x00269] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Int32.System.IConvertible.ToType (System.Type type, System.IFormatProvider provider) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x0021b] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x0000c] in <eae584ce26bc40229c1b1aa476bfa589>:0
at Oxide.Core.Plugins.Plugin.Call[T] (System.String hook, System.Object[] args) [0x00008] in <9882f28dc2204b4dba514a9ad18f5042>:0
at Oxide.Plugins.MagicServerRewardsPanel.GetServerRewards (System.UInt64 userId) [0x00016] in <e988211559634df4ab09a6a144898d49>:0
at Oxide.Plugins.MagicServerRewardsPanel.OnPlayerConnected (BasePlayer player) [0x00000] in <e988211559634df4ab09a6a144898d49>:0
at Oxide.Plugins.MagicServerRewardsPanel.MagicPanelRegisterPanels () [0x0005e] in <e988211559634df4ab09a6a144898d49>:0
at Oxide.Plugins.MagicServerRewardsPanel.OnServerInitialized () [0x00000] in <e988211559634df4ab09a6a144898d49>:0
at Oxide.Plugins.MagicServerRewardsPanel.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000bf] in <e988211559634df4ab09a6a144898d49>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <9882f28dc2204b4dba514a9ad18f5042>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <9882f28dc2204b4dba514a9ad18f5042>:0

Same errors here and showing NO reward points.

Failed to call hook 'OnPlayerConnected' on plugin 'MagicServerRewardsPanel v1.0.5' (InvalidCastException: Invalid cast from 'System.Int32' to 'System.Nullable`1[[System.Int32, mscorlib, Version=*.*.*.*, Culture=neutral, PublicKeyToken=b77a5c561934e089]]'.)
  at System.Convert.DefaultToType (System.IConvertible value, System.Type targetType, System.IFormatProvider provider) [0x00269] in :0 
  at System.Int32.System.IConvertible.ToType (System.Type type, System.IFormatProvider provider) [0x00000] in :0 
  at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x0021b] in :0 
  at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x0000c] in :0 
  at Oxide.Core.Plugins.Plugin.Call[T] (System.String hook, System.Object[] args) [0x00008] in <9882f28dc2204b4dba514a9ad18f5042>:0 
  at Oxide.Plugins.MagicServerRewardsPanel.GetServerRewards (System.UInt64 userId) [0x00016] in <8c234097790c450ca1cf0476917e6b6b>:0 
  at Oxide.Plugins.MagicServerRewardsPanel.OnPlayerConnected (BasePlayer player) [0x00000] in <8c234097790c450ca1cf0476917e6b6b>:0 
  at Oxide.Plugins.MagicServerRewardsPanel.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00178] in <8c234097790c450ca1cf0476917e6b6b>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <9882f28dc2204b4dba514a9ad18f5042>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <9882f28dc2204b4dba514a9ad18f5042>:0 ​
Failed to call hook 'OnServerInitialized' on plugin 'MagicServerRewardsPanel v1.0.5' (InvalidCastException: Invalid cast from 'System.Int32' to 'System.Nullable`1[[System.Int32, mscorlib, Version=*.*.*.*, Culture=neutral, PublicKeyToken=b77a5c561934e089]]'.)
  at System.Convert.DefaultToType (System.IConvertible value, System.Type targetType, System.IFormatProvider provider) [0x00269] in :0 
  at System.Int32.System.IConvertible.ToType (System.Type type, System.IFormatProvider provider) [0x00000] in :0 
  at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x0021b] in :0 
  at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x0000c] in :0 
  at Oxide.Core.Plugins.Plugin.Call[T] (System.String hook, System.Object[] args) [0x00008] in <9882f28dc2204b4dba514a9ad18f5042>:0 
  at Oxide.Plugins.MagicServerRewardsPanel.GetServerRewards (System.UInt64 userId) [0x00016] in <8c234097790c450ca1cf0476917e6b6b>:0 
  at Oxide.Plugins.MagicServerRewardsPanel.OnPlayerConnected (BasePlayer player) [0x00000] in <8c234097790c450ca1cf0476917e6b6b>:0 
  at Oxide.Plugins.MagicServerRewardsPanel.MagicPanelRegisterPanels () [0x0005e] in <8c234097790c450ca1cf0476917e6b6b>:0 
  at Oxide.Plugins.MagicServerRewardsPanel.OnServerInitialized () [0x00000] in <8c234097790c450ca1cf0476917e6b6b>:0 
  at Oxide.Plugins.MagicServerRewardsPanel.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000bf] in <8c234097790c450ca1cf0476917e6b6b>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <9882f28dc2204b4dba514a9ad18f5042>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <9882f28dc2204b4dba514a9ad18f5042>:0 ​

Fixed in 1.0.6.