Here is the onlye sectioned I altered:
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: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
In N++ it looks like everything is properly matched (brackets and parenthesis and quotes used correctly.)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]
Thanks
Notifier [Unmaintained]
Discussion in 'Plugin Support' started by NobodyFTW, Feb 1, 2015.
-
Wulf Community Admin
-
Got a little question,
Can i set my own adverts ? -
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 -
Seems not to be working after most recent update.
[DOUBLEPOST=1434129013][/DOUBLEPOST]This is the line to delete -
import server -
-
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 -
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
-
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 -
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
-
-
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.
-
Wulf Community Admin
-
-
-
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
-
Wulf Community Admin
-
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? -
Wulf Community Admin
-
Thank you.