1. Here is the onlye sectioned I altered:
    Code:
    SETTINGS': {
                    'PREFIX': self.Title.upper(),
                    'BROADCAST TO CONSOLE': True,
                    'RULES LANGUAGE': 'AUTO',
                    'HIDE ADMINS': False,
                    'CHAT PLAYERS LIST': True,
                    'CONSOLE PLAYERS LIST': True,
                    'ADVERTS INTERVAL': 5,
                    'ENABLE JOIN MESSAGE': True,
                    'ENABLE LEAVE MESSAGE': True,
                    'ENABLE WELCOME MESSAGE': True,
                    'ENABLE ADVERTS': False,
                    'ENABLE HELPTEXT': False,
                    'ENABLE SEED CMD': False,
                    'ENABLE PLAYERS LIST CMD': True,
                    'ENABLE ADMINS LIST CMD': False,
                    'ENABLE PLUGINS LIST CMD': False,
                    'ENABLE RULES CMD': False,
                    'ENABLE SERVER MAP CMD': False
    I just changed some of these to FALSE so they wouldn't broadcast. the plugin still works for join messages, just not when they leave. Here is the leave code:
    Code:
    def OnPlayerDisconnected(self, player):        steamid = self.player_id(player)
            if steamid in self.cache:
                if steamid in self.connected:
                    self.connected.remove(steamid)
                    target = self.cache[steamid]
                    if PLUGIN['ENABLE LEAVE MESSAGE']:
                        if not (PLUGIN['HIDE ADMINS'] and int(target['auth']) > 0):
                            if target['country'] in self.countries:
                                target['country'] = self.countries[target['country']]
                            self.say(MSG['LEAVE MESSAGE'].format(**target), COLOR['LEAVE MESSAGE'], steamid)
                del self.cache[steamid]
    In N++ it looks like everything is properly matched (brackets and parenthesis and quotes used correctly.)

    Thanks
     
  2. Wulf

    Wulf Community Admin

    Don't edit the plugin itself, only the config file. You can use www.jsonlint.com to validate your config after you edit it.
     
  3. Got a little question,
    Can i set my own adverts ?
     
  4. The newest update in the last hour crashed this plugin. Seems to be something involving a "server" hook.
     
    Last edited by a moderator: Jun 12, 2015
  5. Seems not to be working after most recent update.
    [DOUBLEPOST=1434129013][/DOUBLEPOST]This is the line to delete -
    import server
     
  6. awesome thanks.
     
  7. its still not working for me it says

    [Oxide] 7:27 PM [Error] Failed to load plugin notifier
    File "notifier.py", line 33
    SETTINGS': {

    ^
    SyntaxError: EOL while scanning single-quoted string
     
  8. Presents further errors:
    Code:
    [Oxide] 1:27 PM [Error] Failed to call hook 'OnPlayerInit' on plugin 'Notifier'
    Traceback (most recent call last):
      File "notifier.py", line 335, in OnPlayerInit
    NameError: global name 'server' is not defined
     
  9. Wulf

    Wulf Community Admin

    For those having issues, try the attachment below. It's updated with the Rust changes.

    Edit: Use the attachment in the latest post instead.
     
    Last edited: Jun 12, 2015
  10. Following the update as of the date of this message I cant get notifier to work.. this is what I get...

    Code:
    [Oxide] 6:32 PM [Error] Failed to load plugin notifier
    Traceback (most recent call last):
      File "notifier.py", line 4, in <module>
    ImportError: No module named server
     
  11. Thanks
     
  12. I just removed the line that says "import server" and it works fine for now. I am going to wait for an official update for the plugin, but for now this seems to work.
     
  13. Wulf

    Wulf Community Admin

    http://oxidemod.org/threads/notifier.6641/page-40#post-98440
     
  14. Thanks, it works now.
     
  15. Still get this error with your update wulf:

    Code:
    [Oxide] 1:43 PM [Error] Failed to call hook 'OnPlayerInit' on plugin 'Notifier'
    Traceback (most recent call last):
      File "notifier.py", line 336, in OnPlayerInit
    NameError: global name 'ConVer' is not defined
     
  16. Wulf

    Wulf Community Admin

    Typoed one. Try the update below.
     
  17. Hi guys,

    Ever since the last update, Notifier has been acting up on my server. I tried deleting the plugin, installing it again and restarting the server, but nothing worked. When I try to reload the plugin in the console, this is what i'm getting:


    [Oxide] 7:43 PM [Error] Failed to load plugin notifier
    Traceback (most recent call last):
    File "notifier.py", line 4, in <module>
    ImportError: No module named server

    Any ideas?
     
  18. Wulf

    Wulf Community Admin

    Merged with plugin's thread. See previous replies for a fix.
     
  19. Thank you. :)