Wulf submitted a new resource:
Country Block - Allows or blocks players from specific countries via a whitelist or blacklist of country codes
Read more about this resource...
CountryBlock [Replaced]
Discussion in 'Plugin Support' started by Wulf, Oct 30, 2014.
-
Wulf Community Admin
-
The file saves but when the server restarts the file is reset back to original settings and all countries that were added are deleted.
-
Wulf Community Admin
-
Let me rephrase this for you. I added AU to the whitelist and clicked save. I restarted server it reverted back and deleted AU.
-
Wulf Community Admin
-
Code:
{ "Settings": { "Broadcast": "true", "ChatName": "SERVER", "ListType": "whitelist", "Blacklist": [ "CN", "RU" ], "Whitelist": [ "UK", "US" ] }, "Messages": { "Kicked": "{player} kicked as their country ({country}) is blocked!", "Rejected": "Sorry, this server doesn't allow players from your country!" } }=============== and me trying to add the AU{ "Settings": { "Broadcast": "true", "ChatName": "SERVER", "ListType": "whitelist", "Blacklist": [ "CN", "RU" ], "Whitelist": [ "UK", "US" "AU" ] }, "Messages": { "Kicked": "{player} kicked as their country ({country}) is blocked!", "Rejected": "Sorry, this server doesn't allow players from your country!" } }
Last edited by a moderator: Oct 31, 2014 -
Wulf Community Admin
-
So tried it after adding that comma and the client just stalls saying client ready but doesn't go anywhere. Removed your plugin and the client loaded, added plugin and same thing happens again, nice plugin, just not happy it didnt work for me. Thanks.
-
Wulf Community Admin
-
If I install your plugin it doesnt work and i cant connect with the AU yet if I remove the plugin I can connect, go figure. I guess it doesnt like me.
-
Wulf Community Admin
-
Ok lets go ...
This is my Log:
Code:1:02 AM [Info] Loading Oxide core... 1:02 AM [Info] Loading extensions... 1:02 AM [Info] Loaded extension Lua version 1.0.0 by Oxide Team 1:02 AM [Info] Loaded extension Rust version 1.0.0 by Oxide Team 1:02 AM [Info] Loaded extension Unity version 1.0.0 by Oxide Team 1:02 AM [Info] Loading plugins... 1:02 AM [Info] Loaded plugin Auto Broadcast (v0.1.1) by Taffy 1:02 AM [Info] Loaded plugin Building Owners (v1.2.4) by Reneb 1:02 AM [Info] Loaded plugin Country Block (v0.1.0) by Wulf 1:02 AM [Info] Loaded plugin Custom Chat Commands (v2.1.1) by #Domestos 1:02 AM [Info] Loaded plugin deadPlayerList (v1.0.0) by Reneb 1:02 AM [Info] Loaded plugin Finder (v1.3.0) by Reneb 1:02 AM [Info] Loaded plugin Give Plugin (v0.3.2) by Reneb 1:02 AM [Info] Loaded plugin Heal, Feed and Cure (v1.1.2) by #Domestos 1:02 AM [Info] Loaded plugin Kits (v0.2.1) by Reneb 1:02 AM [Info] Loaded plugin Door Unlocker (v1.0.0) by Reneb 1:02 AM [Info] Loaded plugin Inventory Viewer (v1.1.0) by Reneb 1:02 AM [Info] Loaded plugin Increased Building Rate (v0.1.0) by Mughisi 1:02 AM [Info] Loaded plugin Increased Crafting Rate (v0.1.1) by Mughisi 1:02 AM [Info] Loaded plugin Godmode (v0.1.2) by Mughisi 1:02 AM [Info] Loaded plugin Advanced Teleportation System (v1.0.7) by Mughisi 1:02 AM [Info] Loaded plugin Time Changer (v0.1.0) by Mughisi 1:02 AM [Info] Loaded plugin Online Log (v0.1.0) by Luke Spragg / Wulf 1:02 AM [Info] Loaded plugin Players list (v1.1.2) by #Domestos 1:02 AM [Info] Loaded plugin Player location (v1.0.2) by #Domestos 1:02 AM [Info] Loaded plugin Portgun (v1.1.0) by Reneb 1:02 AM [Info] Loaded plugin Private Messaging (v1.0.4) by #Domestos 1:02 AM [Info] Loaded plugin PVP Switch (v1.0.1) by #Domestos 1:02 AM [Info] Loaded plugin Death Messages (v0.2.3) by Reneb 1:02 AM [Info] Loaded plugin r-Prod (v1.1.0) by Reneb 1:02 AM [Info] Loaded plugin R-Remover Tool (v1.3.0) by Reneb 1:02 AM [Info] Loaded plugin Updater (v0.2.2) by Wulf 1:02 AM [Info] Loaded plugin User Connection Notification (v1.0.9) by Taffy 1:02 AM [Info] Loaded plugin Welcome Gifts (v0.1.0) by Wulf 1:02 AM [Info] Loaded plugin Rust Core (v1.0.0) by Oxide Team 1:02 AM [Info] Loaded plugin Unity Core (v1.0.0) by Oxide Team 1:02 AM [Info] ############## Update check started! ############## 1:02 AM [Info] Supported plugin count: 16 1:02 AM [Info] Crafting rate set to 50% of the normal speed. 1:02 AM [Info] ############## Update check finished! ############## 1:03 AM [Info] [Country Block] JackTheRipper connected from DE 1:03 AM [Info] [Country Block] JackTheRipper kommt aus (DE) und wird deshalb hier geblockt!
This is my Json:
Code:{ "Settings": { "Whitelist": [ "DE", "US" ], "Blacklist": [ "RU" ], "ListType": "whitelist", "ChatName": "Scotty", "Broadcast": "true" }, "Messages": { "Rejected": "Sorry aber Spieler aus Deinem Land sind hier nicht erlaubt!", "Kicked": "{player} kommt aus ({country}) und wird deshalb hier geblockt!" } }
Where is my Error ??? -
Wulf Community Admin
Wulf updated Country Block with a new update entry:
Fixed only first listed country being checked instead of all
-
works for the first players .. then it stopped .. no error .. and nothing
the script dont scan the users and every player can join ^^
i think after a restart .. when a join flood beginns the scripts crash.. but im not a scripter .. i have no idea ^^ -
-
Wulf Community Admin
-
Hello there guys!
I am facing an issue, besides I've configured the cfg file correctly the players from my country are being kicked O_O oh man, every one of them , poor of them.
Does it work if I just leave whitelist empty while just keep the blacklist as it comes ? (I am using the same file as the first forum post , just added my country in the whitelist and I am getting the opposite result)
-
Wulf Community Admin
-
Ah! ok good to know Wulf
Poor users, lmao I've keep checking and restarting server 5 times haha, its ok I will remove it until the update , there's no problem -
This work fine only have a Error.
Line 37:
Code:if not listed then self:Deport(connection, country) end
Code:if listed then self:Deport(connection, country) end