It seems like only yesterday I had to remove all the BP stuffI actually have a major update ready for this, which 'should' reduce the plugins impact on server performace. I just need to finish up this universal playtime tracker. Ill be sure to add BP's back into it
ServerRewards
Moved
Total Downloads: 14,033 - First Release: Mar 2, 2016 - Last Update: Jun 9, 2018
- 5/5, 61 likes
-
Is it possible to connect this to a DB?
-
k1lly0u updated ServerRewards with a new update entry:
0.3.0
-
@k1lly0u has the overview been updated with any new info?
-
just removed what isnt included anymore and added a small description and video for the custom NPC item lists
-
-
delete double post
-
So ya this deleted all my players rp and it won't restore it with the backup either. Anyway to get an admin command to add rp to all players at once?
Like /sr add all 200 for example -
Follow these instructions to the letter...
- Make a copy of your old data file, and rename it to "serverrewards_playersold.json"
- Make a new folder called "Restore" in the SR data folder. ex (oxide/data/ServerRewards/Restore)
- Paste the serverrewards_playersold.json into that folder
- Drop the attached plugin onto your server. ** DO NOT do this before you have done the first 3 steps **
- You should see a message in console telling you that data transfer has been successful
- Delete the attached plugin from your server
- You will now see 2 files in the "oxide/data/ServerRewards/Restore" folder. 1 is the old one you renamed, the other is new
- With ServerRewards UNLOADED copy the new "serverrewards_players.json" to the "oxide/data/ServerRewards/data" folder and overwrite existing
- Reload ServerRewards
- Bobs your uncle
Attached Files:
-
I got it working a different way but thx others will find that useful
-
Code:[Oxide] 11:19 [Info] Loaded plugin ServerRewards v0.3.0 by k1lly0u [Oxide] 11:19 [Info] [ServerRewards] Creating a new config file [Oxide] 11:19 [Warning] [ServerRewards] Playtime Tracker could not be found! Unable to monitor user playtime [Oxide] 11:19 [Warning] [ServerRewards] Creating and storing all UI elements to cache [Oxide] 11:19 [Error] Failed to call hook 'GetKitContents' on plugin 'Kits v3.1.11' (NullReferenceException: Object reference not set to an instance of an object) [Oxide] 11:19 [Debug] at Oxide.Plugins.Kits.GetKitContents (System.String kitname) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 [Oxide] 11:19 [Error] Failed to call hook 'GetKitContents' on plugin 'Kits v3.1.11' (NullReferenceException: Object reference not set to an instance of an object) [Oxide] 11:19 [Debug] at Oxide.Plugins.Kits.GetKitContents (System.String kitname) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 [Oxide] 11:19 [Error] Failed to call hook 'GetKitContents' on plugin 'Kits v3.1.11' (NullReferenceException: Object reference not set to an instance of an object) [Oxide] 11:19 [Debug] at Oxide.Plugins.Kits.GetKitContents (System.String kitname) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 [Oxide] 11:19 [Warning] [ServerRewards] All UI elements created successfully! [Oxide] 11:19 [Error] Failed to call hook 'OnServerInitialized' on plugin 'ServerRewards v0.3.0' (NullReferenceException: Object reference not set to an instance of an object) [Oxide] 11:19 [Debug] at Oxide.Plugins.ServerRewards.OnPlayerInit (.BasePlayer player) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ServerRewards.OnServerInitialized () [0x00000] in <filename unknown>:0 at Oxide.Plugins.ServerRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 [Oxide] 11:19 [Info] [ServerRewards] Saved reward data [Oxide] 11:19 [Warning] Calling 'OnServerSave' on 'Pets v0.5.5' took 270ms Saved 91,923 ents, serialization(0.01), write(0.04), disk(0.01) totalstall(0.08). Saving complete
-
Same for me! -
Update Kits?
-
12:42:04) | [Oxide] 12:42 [Error] Failed to call hook 'OnServerInitialized' on plugin 'ServerRewards v0.3.0' (NullReferenceException: Object reference not set to an instance of an object)
(12:42:04) | [Oxide] 12:42 [Debug] at Oxide.Plugins.ServerRewards.OnPlayerInit (.BasePlayer player) [0x00000] in <filename unknown>:0
at Oxide.Plugins.ServerRewards.OnServerInitialized () [0x00000] in <filename unknown>:0
at Oxide.Plugins.ServerRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 -
is there a fix for this guys I just updated it and this is what I got
(20:43:51) | [Oxide] 20:43 [Error] Failed to call hook 'OnServerInitialized' on plugin 'ServerRewards v0.3.0' (NullReferenceException: Object reference not set to an instance of an object)
(20:43:51) | [Oxide] 20:43 [Debug] at Oxide.Plugins.ServerRewards.OnServerInitialized () [0x00000] in <filename unknown>:0
at Oxide.Plugins.ServerRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 -
Did you delete the old config before updating?
-
-
Only on days that end in 'Y'
-
I have not worked
v-0.3.0
In the console error and the panel is not what pressed.
There is no balance and the other statistics
http://www.pixic.ru/i/f0h1I236G80568u9.jpg
http://www.pixic.ru/i/o0o142X6Q815s9A0.jpg -
You need to post the error that you would be getting