What about making a Message for when the player is connecting (current message) and then display a message when the player is initialized and loaded into the server? It's kind of misleading currently I think with saying they're connected when they are not even loaded in yet.
But idk maybe people like that![]()
Notifier [Unmaintained]
Discussion in 'Plugin Support' started by NobodyFTW, Feb 1, 2015.
-
It does make a bit of a different tho, while a player connects to the server he can be rejected for some reason, so the message may appear but the player may not connect at all.
Guess I'll change it then. -
I just get a lot of people asking me about it on my server because they try to talk to people when they get on but no ones there yet lol.
-
SkinN õ.Õ'.|. updated Notifier with a new update entry:
Death Notes | Tweaks
-
Plugin not working after update. This is my error:
Code:> oxide.reload notifier [Oxide] 12:01 AM [Info] Unloaded plugin Notifier v2.1.2 by SkinN [Oxide] 12:01 AM [Info] Loaded plugin Notifier v2.1.2 by SkinN [Oxide] 12:01 AM [Error] Failed to initialize plugin notifier Traceback (most recent call last): File "notifier.py", line 28, in Init File "notifier.py", line 131, in UpdateConfig
Last edited by a moderator: Feb 26, 2015 -
SkinN õ.Õ'.|. updated Notifier with a new update entry:
Notifier | Hotfix
[DOUBLEPOST=1424927732][/DOUBLEPOST]
Thanks for reporting. -
Sure, glad I could help. Thank you for updating.
-
Hi, I wanted to modify your notifier and few others(death msg and help menu) by depending on country where the gamer is from(translate these notifications by language of country where this gamer is from) but I don't know how to get info about country. You have some lines that describes country but for me on this level(0 knowing of rust and oxide libraries ) for now it get's only steamid... Can you please tell me how to get this info by function in code? Thank you
And sorry for my english -
Hi, the /help command does not work ? ->Output: unknown command "help" ! <- today version 2.1.3
can u fix it or write a description how to use it
thanks -
"HIDE ADMINS CONNECTIONS": true. Notifier v2.1.3.
Code:Dark has left (Disconnected) [Oxide] 3:39 PM [Error] UnboundLocalException while calling OnPlayerDisconnected: Traceback (most recent call last): File "notifier.py", line 227, in OnPlayerDisconnected UnboundLocalError: Local variable 'connection' referenced before assignment.
-
Looks like your trying to call connection before you actually set it up might want to make your check the full variable of player.net.connection.authLevel or move your connection variable above your conditionals.
@DarkRnD I uploaded a slight adjustment you might try to see if that helps resolve your issue until the developer gets on to write a tweak. -
-
SkinN õ.Õ'.|. updated Notifier with a new update entry:
Notifier | Minor Fix
[DOUBLEPOST=1424963353][/DOUBLEPOST]
Thanks for reporting.
[DOUBLEPOST=1424963482][/DOUBLEPOST]
Code:def OnPlayerConnected(self, packet): # PLAYER INFO connection = packet.connection auth = connection.authLevel steamid = rust.UserIDFromConnection(connection) name = connection.username ip = connection.ipaddress.split(':')[0] # ADMINS TAGS if self.Config['SETTINGS']['ENABLE ADMIN TAGS']: if auth == 1: name = '%s %s' % (self.Config['SETTINGS']['MODERATOR TAG'], name) elif auth == 2: name = '%s %s' % (self.Config['SETTINGS']['OWNER TAG'], name) # CONNECT MESSAGE ( GET PLAYER COUNTRY FUNTION ) country = 'undefined' ip_url = 'http://ipinfo.io/%s/country' % ip def response_handler(code, response): country = response.replace('\n','') if country == 'undefined' or code != 200: country = '?' self.users[steamid] = country if self.Config['SETTINGS']['SHOW CONNECTED']: if not (self.Config['SETTINGS']['HIDE ADMINS CONNECTIONS'] and int(auth) > 0): msg = self.Config['MESSAGES']['PLAYER CONNECTED'] msg = msg.replace('{username}', name) msg = msg.replace('{steamid}', steamid) msg = msg.replace('{userip}', ip) msg = msg.replace('{country}', country) self.say(msg, self.Config['CHAT COLORS']['CONNECT/DISCONNECT MESSAGES'], steamid) webrequests.EnqueueGet(ip_url, Action[Int32,String](response_handler), self.Plugin)
-
Thanks
-
@Skinn, i was wondering if you could help me clarify the following error:
Code:[Oxide] 6:02 PM [Info] Unloaded plugin Notifier v2.1.3 by SkinN [Oxide] 6:02 PM [Info] Loaded plugin Notifier v2.1.4 by SkinN Reporting Performance Data system/server [Oxide] 6:03 PM [Error] KeyNotFoundException while calling SendHelpText: (KeyNot FoundException: ENABLE HELPTEXT) [Oxide] 6:03 PM [Debug] at IronPython.Runtime.PythonDictionary.GetItem (object) <0x0006c> at IronPython.Runtime.PythonDictionary.get_Item (object) <0x00024> at (wrapper dynamic-method) object.CallSite.Target (System.Runtime.CompilerServi ces.Closure,System.Runtime.CompilerServices.CallSite,object,string) <0x00097> at System.Dynamic.UpdateDelegates.UpdateAndExecute2<object, string, object> (Sys tem.Runtime.CompilerServices.CallSite,object,string) <0x0030a> at Microsoft.Scripting.Interpreter.DynamicInstruction`3<object, string, object>. Run (Microsoft.Scripting.Interpreter.InterpretedFrame) <0x00113> at Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interpre ter.InterpretedFrame) <0x000c8>
Last edited by a moderator: Feb 26, 2015 -
nvm, that did it.... *facepalm*
-
Anyway, you have the original version of the config file in the plugin overview, you may copy it and paste it to your config file, then reload the plugin. (remember to save anything you want before doing it) -
Code:
[2/26/2015 1:51:18 PM] [Oxide] 1:51 PM [Error] MissingMemberException while calling OnEntityDeath: (MissingMemberException: 'UInt32' object has no attribute 'title') [2/26/2015 1:51:18 PM] bam666 was killed by Suicide [2/26/2015 1:51:45 PM] [Oxide] 1:51 PM [Info] Animal: npc/animals/wolf_corpse [2/26/2015 1:51:49 PM] [Oxide] 1:51 PM [Debug] at IronPython.Runtime.Binding.PythonGetMemberBinder/FastErrorGet`1<object>.GetError (System.Runtime.CompilerServices.CallSite,object,IronPython.Runtime.CodeContext) <0x00137> at (wrapper dynamic-method) object.OnEntityDeath$58 (System.Runtime.CompilerServices.Closure,IronPython.Runtime.PythonFunction,object,object,object) <0x07719> [2/26/2015 1:33:47 PM] New connection from 2.132.176.156:32657 [2/26/2015 1:33:48 PM] [Oxide] 1:33 PM [Debug] at IronPython.Runtime.Binding.PythonGetMemberBinder+FastErrorGet`1[System.Object].GetError (System.Runtime.CompilerServices.CallSite site, System.Object target, IronPython.Runtime.CodeContext context) [0x00000] in <filename unknown>:0 at Microsoft.Scripting.Interpreter.DynamicInstruction`3[System.Object,IronPython.Runtime.CodeContext,System.Object].Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in <filename unknown>:0 at Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in <filename unknown>:0
-
-
wrong way written