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 -
1º I will take a look and see what's causing the country names to appear split.
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
This update fixes these country names issues, I am sorry for the mistakes, I should have tested them a bit more before the release, but its now completely fixed.
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:
New: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]It is now fixed
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
-
This normal, Notifier only saves the countries database when the plugin is unloaded (that is why it saves on reload as well, as it unloads during the reload processing), but do not worry because Notifier always has the data in memory while its running.
-
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 -
You cannot, once you install any mod like Oxide or sauerkraut, your server will be as modded.
-
Hello.
Is it possible to change the image that appears in chat when a message ?
Thanks -
I have removed the Plugin's Icon feature from Notifier, and will for all my plugins that support it, as users don't seem to comprehend how it works. This said, I am sorry but no you cannot change the image in the chat.
-
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.
-
you mean /notifier help?
[DOUBLEPOST=1447977488][/DOUBLEPOST]As told before, the Unknown country "error" is not a fixable error, search my oldest post for the reason for more details.
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.
