thanks for info will let them know
[DOUBLEPOST=1462897206,1462885187][/DOUBLEPOST]They said they updated it but it looks the same to me
CountryBlock [Replaced]
Discussion in 'Plugin Support' started by Wulf, Oct 30, 2014.
-
Wulf Community Admin
-
Ahh so when it appears like this below I should just remove everything but the ru? Sorry for silly questions m8 im new to this.
{
"AdminExcluded": true,
"CountryList": [
"CN",
"RU"
],
"Whitelist": false
} -
Wulf Community Admin
-
Thanks wulf for all your help
-
-
Wulf Community Admin
-
Code:def webrequest(self, player, send=True): ''' Web-request filter to get the players country info ''' uid = self.playerid(player) if uid in self.players: ply = self.players[uid] # Function to handle the web-request response def response_handler(code, resp): try: # Check for any web errors if resp != None or code == 200: # Check if user is not in countries database if uid not in self.db: ply.country, ply.code = re.findall(r':\"(.+?)\"', resp) self.players[uid] = ply self.db[uid] = {'country': ply.country, 'code': ply.code} except: pass if send: self.joining_messages(player) # Call for web-request webrequests.EnqueueGet('http://ip-api.com/json/%s?fields=3' % ply.ip.split(':')[0], Action[Int32,String](response_handler), self.Plugin)
-
Wulf Community Admin
-
getting this error:
Oxide] 14:26 [Error] CountryBlock plugin failed to compile!
[Oxide] 14:26 [Error] CountryBlock.cs(116,72): error CS1061: Type `Oxide.Core.Libraries.Covalence.IPlayer' does not contain a definition for `UniqueID' and no extension method `UniqueID' of type `Oxide.Core.Libraries.Covalence.IPlayer' could be found. Are you missing an assembly reference? -
Wulf Community Admin
[DOUBLEPOST=1463700884,1463693714][/DOUBLEPOST]This version has been replaced by CountryBlock | Oxide.