ServerRewards

Moved

Total Downloads: 14,033 - First Release: Mar 2, 2016 - Last Update: Jun 9, 2018

5/5, 61 likes
  1. Here you go
     

    Attached Files:

  2. Thank you so much!! I got that working after a reload, then image load. than another reload.
     
  3. k1lly0u updated ServerRewards with a new update entry:

    0.2.65

     
  4. Now Works Thx!:)
     
  5. I have a problem. After restarting my server, cfg is clearing. Only '{}' is left inside. It causes people not getting RP and infos colour break. When I put cfg again it's ok, but after next reset it repeats. Can anyone help me with that?
     
  6. my problem is the plugin spam inside the chat i have 11 points ^^
     
  7. Code:
    [Oxide] 20:49 [Debug]  at System.Collections.Generic.Dictionary`2[System.UInt64,System.Double].get_Item (UInt64 key) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerRewards.GetPlaytimeClock (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerRewards.DisplayPoints (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerRewards+<DisplayPoints>c__AnonStorey1.<>m__0 () [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00000] in <filename unknown>:0
    [Oxide] 20:49 [Error] Failed to run a 1.00 timer in 'ServerRewards v0.2.65' (KeyNotFoundException: The given key was not present in the dictionary.)
    [Oxide] 20:49 [Debug]  at System.Collections.Generic.Dictionary`2[System.UInt64,System.Double].get_Item (UInt64 key) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerRewards.GetPlaytimeClock (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerRewards.DisplayPoints (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerRewards+<DisplayPoints>c__AnonStorey1.<>m__0 () [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00000] in <filename unknown>:0
    ArgumentException: Field nextTick defined on type NPCAI is not a field on the target object which is of type BaseNPC.
    Parameter name: obj
    
    my config

    Code:
    {
      "Disable_Commands": false,
      "Disable_CurrencyExchange": false,
      "Disable_CurrencyTransfer": false,
      "Disable_Items": true,
      "Disable_Kits": true,
      "DisableUI_FadeIn": true,
      "Econ_ExchangeRate": 100,
      "LogRPTransactions": true,
      "MSG_Color": "<color=#939393>",
      "MSG_DisplayEvery": 30,
      "MSG_MainColor": "<color=orange>",
      "MSG_OutstandingPoints": false,
      "NPCDealers_Only": false,
      "Points_Invites": 150,
      "Points_Referrals": 100,
      "Points_Time": 0,
      "PT_Point_Interval": 60,
      "RP_ExchangeRate": 10,
      "Save_Interval": 10,
      "ShowKitContents": false,
      "Use_Playtime": false,
      "Use_Referrals": true
    }
    
     
  8. Never heard of that happening before so not sure how to help
    Change the config option 'MSG_DisplayEvery' to a higher number. Ex. Setting it to 10 will show the message every 10 points earnt
    Pretty sure I know what's wrong, will post a fix in a while
     
  9. I'm having another problem. The mod is not giving the time played rewards..
    I have included my config. I believe I set it to give 5RP each 30 minutes.
    But it's not giving any. Have I set it wrong? Or does it need a fix?

    The only other mod using RP is Gun Game / Event Manager.
     

    Attached Files:

  10. Code:
    {
      "Disable_Commands": true,
      "Disable_CurrencyExchange": true,
      "Disable_CurrencyTransfer": true,
      "Disable_Items": false,
      "Disable_Kits": true,
      "DisableUI_FadeIn": false,
      "Econ_ExchangeRate": 250,
      "LogRPTransactions": true,
      "MSG_Color": "<color=#939393>",
      "MSG_DisplayEvery": 1,
      "MSG_MainColor": "<color=orange>",
      "MSG_OutstandingPoints": false,
      "NPCDealers_Only": false,
      "Points_Invites": 0,
      "Points_Referrals": 0,
      "Points_Time": 5,              <--- You are giving 5 points
      "PT_Point_Interval": 1800,     <---  Every 1800 minutes
      "RP_ExchangeRate": 1,
      "Save_Interval": 10,
      "ShowKitContents": true,
      "Use_Playtime": true,
      "Use_Referrals": false
    }
    
    change the 1800 to a 30 and you will give 5 points evey 30 minutes
     
    Last edited by a moderator: Jul 20, 2016
  11. Having this error.
    [Oxide] 19:54 [Info] [ServerRewards] Couldn't load reward data, creating new datafile
    [Oxide] 19:54 [Info] [ServerRewards] Saved reward/permission data

    How do I get it to stop over-writing it?

    Thanks!
     

    Attached Files:

  12. Its because you have messed up the json and its not valid, therefore failing to load and creating a new one. Use JSONLint - The JSON Validator. to validate your changes
     
  13. I'm getting this error message when I try to install your mod.


    Profile was saved successfully
    • Removed 'ServerRewards ( 0.2.29 )' as
      it conflicts with 'Admin Menu ( 2.0.6 )'
     
  14. That one explains itself. Both mods have use the same command, therefor only one can use it.
    Remove admin menu to use server rewards.
    [DOUBLEPOST=1468992547][/DOUBLEPOST]Can this mod have a permission system?? So I can sell stuff in the store that only certain levels can buy??
    I want to use XP Permissions for Rust | Oxide to limits items bought to levels gained..
    So a player would have to be a right level to buy a certain item etc..
     
  15. Well what is funny they used to work together. I think I will remove admin menu and then re install it to see if that works as it is suppose to work with admin menu
     
  16. It's multiplay bs, you need to open a ticket and tell them they are wrong and to remove the false conflict
     
  17. Can this mod have a permission system?? So I can sell stuff in the store that only certain levels can buy??
    I want to use XP Permissions for Rust | Oxide to limits items bought to levels gained..
    So a player would have to be a right level to buy a certain item etc..
     
  18. Probably not permission based items as that could get quite messy, but minimum level or XP required items is a good idea. However I have quite a bit to do before I look at expanding finished mods :p
     
  19. I finally got this to work: using Rusty and this command line : oxide.grant user "killyou" "cutomanimalspawns.admin" I had to quote the user id and your admin file and vaboom...thanks

    and you were right about multiplay they had that screwed up and now it's fixed "thank you very much"!!
     
  20. As of today's update, I'm receiving this error:
    Code:
    [Oxide] 13:06 [Error] Failed to call hook 'OnPlayerInit' on plugin 'ServerRewards v0.2.65' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 13:06 [Debug]   at Oxide.Plugins.ServerRewards.ResetTimer (.BasePlayer player, Boolean logIn) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerRewards.InitPlayerData (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerRewards.OnPlayerInit (.BasePlayer player) [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