I've test it all for this new version, give it a try and let me know if anything is wrong.
Notifier [Unmaintained]
Discussion in 'Plugin Support' started by NobodyFTW, Feb 1, 2015.
-
I logged in and it says I came from United not United Kingdom also how you change the join and leave messages of admins in the config it gives you the option to set this to true
DIFFER ADMINS JOIN/LEAVE MESSAGE
in what way is the message different. I also have two of these in my data folder notifier-countries-db.json should I have two of theseLast edited by a moderator: Nov 11, 2015 -
2º You should only use Admins Join/Leave messages if you want Admins messages to be different than normal players, the reason I added this was because someone requested and finds it useful.
3º You should only have notifier-countries-db.json in the data folder. -
SkinN õ.Õ'.|. updated Notifier with a new update entry:
Notifier | Minor Fix
-
Now the country is blank with the last update
-
Can you make in your notifier-countries-db.json like country code: country, and the plugin reads the content of the file?!
Ex: in notifier-countries-db.json we shall have "FR": "France", and the notifier read that data and it prints {playername} joined the server, from France.
Because now i saw in notifier-countries-db.json :
"code": "CR",
"country": "" (no country and i think that is blank in the chat) ---> "CR":"Costa Rica", -
My notifier-countries-db.json file is like this as you see anyone from GB is blank
Code:{ "76561198086157027": { "code": "PL", "country": "Poland" }, "76561198096010083": { "code": "GB", "country": "" }, "76561198128458526": { "code": "GB", "country": "" }, "76561198129642851": { "code": "PL", "country": "Poland" } }
-
SkinN õ.Õ'.|. updated Notifier with a new update entry:
Notifier | Country Names Fix
It seems I was using the wrong and ugly algorithm for my intentions, and came up with a new more elegant and beautiful code:
Old:
Code:# Check for any web errors if resp == None or code != 200: pass# Check if user is not in countries database elif uid not in self.db: try: country, code = [''.join(re.findall(i, resp)) for i in (r'country":"[\w\.-]+"', r'countryCode":"[\w\.-]+"')] # Cache Player country info and save it to the database ply.code = code.replace('countryCode":"', '').replace('"', '') ply.country = country.replace('country":"', '').replace('"', '') self.players[uid] = ply self.db[uid] = {'country': ply.country, 'code': ply.code} except: pass
Code:# Check for any web errors if resp == None or code != 200: pass# Check if user is not in countries database elif uid not in self.db: try: ply.country, ply.code = re.findall(r':\"(.+?)\"', resp) self.players[uid] = ply self.db[uid] = {'country': ply.country, 'code': ply.code} except: pass
[DOUBLEPOST=1447274848][/DOUBLEPOST]Last edited by a moderator: Nov 11, 2015 -
Thx for the fix but one thing it does not seem to fill in the notifier-countries_db.json file until I do a oxide.reload notifier
-
-
As long as it works well
-
Hello, Someone could help me : i would use notifier or like it but my server need to stay in Community Server list, how should i do ?
Thnks by advance for all your help -
-
Hello.
Is it possible to change the image that appears in chat when a message ?
Thanks -
-
Can you please add a function to wirte in the config easier a command for players? Maybe at Command Description: to show more available commands for this server.
-
is the unknown country error when someones joins still being worked on? As i'm getting the error still on my server.
-
[DOUBLEPOST=1447977488][/DOUBLEPOST]
Though, version 2.7.+ have a new "work around" through this "error", it is NOT a fix, but only something that will definitely reduce the times the players get the Unknown country name. -
right okay..
-
every time i do /help, /rules and /map it said invalid command? its not just me everyone who joins seems to be unable to use the plugin.