Rules GUI

This plugin displays the rules on connect.

Total Downloads: 9,365 - First Release: Jul 19, 2015 - Last Update: Feb 3, 2017

5/5, 25 likes
  1. Hi Pain, i've just installed your plugin.

    Some easy questions, the rules shows to an admin too?
    Can i disable the "accept or deny" question?

    thanks in advance
     
  2. The rules shows to everyone.
    Why would you.. you can by editing the plugin(Not recommended if you don't have any coding knowledge).
     
  3. Because i disconnected and reconnecter to my server but rules didn't shown. .(
     
  4. Check config => Settings
     
  5. this is my json. do you find any typo?
     

    Attached Files:

  6. I will check it in 4hours.. for now you can validate your jsons code with jsonlint.com
     
  7. Json valid :/
    [DOUBLEPOST=1466336832][/DOUBLEPOST]Json is valid :/
     
  8. Json is valid but plugin isn't working
     
  9. Well as I said earlier.. I will come home later be patient.
     
  10. news about my problem? :/
     
  11. stop server reinstall oxide see if that works
     
  12. Don't reinstall.. simply change the DisplayOnEveryConnect to true... thats why I told you to check the Config => Settings
     
  13. isn't working with DisplayOnEveryConnect = true
     
  14. Did you save the file after editing the config file ? Also make sure you reload once you do this.
     
  15. yea of course. file overwrited and plugin reloaded.
    [DOUBLEPOST=1466436571][/DOUBLEPOST]and i'm a little bit skilled on programming so i'm not so newbie. ;)
     
  16. Today once I hop on my server I will test it.
     
  17. (11:42:04) | [Oxide] 02:41 [Error] Failed to run a 1.00 timer in 'RulesGUI v1.4.5' (NullReferenceException: Object reference not set to an instance of an object)

    (11:42:04) | [Oxide] 02:41 [Debug] at Oxide.Plugins.RulesGUI.DisplayUI (.BasePlayer player) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.RulesGUI+<DisplayUI>c__AnonStorey0.<>m__0 () [0x00000] in <filename unknown>:0

    at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00000] in <filename unknown>:0

    (11:45:52) | [Oxide] 02:45 [Error] Failed to run a 1.00 timer in 'RulesGUI v1.4.5' (NullReferenceException: Object reference not set to an instance of an object)

    (11:45:52) | [Oxide] 02:45 [Debug] at Oxide.Plugins.RulesGUI.DisplayUI (.BasePlayer player) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.RulesGUI+<DisplayUI>c__AnonStorey0.<>m__0 () [0x00000] in <filename unknown>:0

    at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00000] in <filename unknown>:0
     
  18. I'm testing now.
     
  19. Hmm for me it works perfectly.
    Open the plugin RulesGUI.cs and replace line 252 with
    Code:
    NextTick(() => DisplayUI(player));
    
    and tell me if that helps or not.
     
  20. (13:23:39) | [Oxide] 04:23 [Error] Exception while calling NextTick callback (NullReferenceException: Object reference not set to an instance of an object)

    (13:23:39) | [Oxide] 04:23 [Debug] at Oxide.Plugins.RulesGUI.DisplayUI (.BasePlayer player) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.RulesGUI+<DisplayUI>c__AnonStorey0.<>m__0 () [0x00000] in <filename unknown>:0

    at Oxide.Core.OxideMod.OnFrame (Single delta) [0x00000] in <filename unknown>:0