Wulf submitted a new resource:
Natives - Allows only players from the server's country to join
Read more about this resource...
Natives [Unmaintained]
Discussion in 'Plugin Support' started by Wulf, Oct 23, 2014.
-
Wulf Community Admin
-
Awesome...glad to see webrequest example...thanks Wulf!
-
Wulf Community Admin
Lots more on the way too! -
http://signalr.net -
Hi,
Don't work for me
Code:7:27 PM [Info] Loaded plugin Natives (v0.1.0) by Luke Spragg / Wulf 7:27 PM [Error] Failed to initialise plugin natives ([string "natives.lua"]:15: attempt to index global 'webrequests' (a nil value)) 7:27 PM [Debug] at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
-
Wulf Community Admin
-
Oops, sorry
It is possible to manually set several countries in the white list for the next version?
if country ~= homeland or whitelist thenLast edited by a moderator: Oct 25, 2014 -
Wulf Community Admin
Wulf updated Natives with a new update entry:
Changed method for initial server IP checking
-
very nice Wulf!
-
If there was a way to use this to block certain countries, that would be even more amazing. Say... block Russia and China.
-
Wulf Community Admin
-
Gotcha. Hopefully people pay attention if their server is located in Montreal, and they live in USA.
-
Wulf Community Admin
-
So I just tested this, and I get this:
Code:5:01 AM [Info] [Natives] Getting country for server failed! 5:02 AM [Info] [Natives] sendjes connected from DK 5:02 AM [Info] [Natives] sendjes kicked for not being from the homeland, DK!
-
Wulf Community Admin
-
Natives 0.1.1
-
Wulf Community Admin
-
First error I got I was running on my server, and now I tried running server and client on the same machine, result with debug true:
Code:5:57 AM [Info] [Natives] Server's IP: 0.0.0.0 5:57 AM [Info] [Natives] Getting country for server failed! 5:58 AM [Info] [Natives] Player's IP: 127.0.0.1 5:58 AM [Info] [Natives] Checking country failed for sendjes!
-
Wulf Community Admin
-
Nope, my commandline is:
Code:Start RustDedicated.exe -batchmode -load +server.hostname "NAME" +server.port 28015 +server.identity "NAME" +server.seed 6738 +server.maxplayers 20 +rcon.port 28016 +rcon.password "PASSWORD" -logfile rust.log