What command are you using? That is only triggered by using invalid commands.
CountryBlock [Replaced]
Discussion in 'Plugin Support' started by Wulf, Oct 30, 2014.
-
Wulf Community Admin
-
mhhh
So im doing something wrong
i wanna try to blockmyself to proof how it works.
i got Admin.
Thars what i do /Country type blacklist
/Country add DE
So i shouldnt be able to connect when im correct? I´m admin but i changed Adminexclude to false. -
Wulf Community Admin
-
It is a paid Server not local at my Network... should i use GER for Germany?
-
Wulf Community Admin
-
Well I don't get blocked. And the /country list command does not show up or work. DE was written in the json. I could really need that plugin. I just say "no more russian" I don't get it to work. :/
-
Wulf Community Admin
-
The Messages also appear for me and the json is written... i Show u
Code:{ "Settings": { "AdminExcluded": "false", "CountryList": [ "UK", "US", "DE" ], "ChatNameHelp": "HELP", "AuthLevel": 2, "ConsoleCommand": "country.block", "Broadcast": "true", "ChatCommand": "country", "ListType": "blacklist", "ChatName": "SERVER" }, "Messages": { "UnknownListType": "Unknown list type! Use blacklist or whitelist", "NoPermission": "You do not have permission to use this command!", "NotListed": "{country} is not on the country list!", "ListTypeChanged": "Country list type changed to {listtype}", "PlayerKicked": "{player} was kicked as their country ({country}) is blocked!", "UnknownAction": "Unknown command action! Use add, remove, list, or type", "Rejected": "Sorry, this server doesn't allow players from your country!", "ChatHelp": [ "Use /country add countrycode to add a country to the list", "Use /country remove countrycode to remove a country from the list", "Use /country list to list all the countries on the list" ], "AlreadyAdded": "{country} is already on the country list!", "CountryAdded": "{country} has been added to the country list!", "CountryRemoved": "{country} has been removed from the country list!" } }
[DOUBLEPOST=1423592154][/DOUBLEPOST]I found the Problem... i got 2 Servers and i connected to the wrong one. Im so sorry for my dumbness. So Sorry. It does work now. Im blocked... so sorryLast edited by a moderator: Feb 10, 2015 -
I have some Trouble with Countrycode:
I deleted the Plugin and the Config json.
I copied the last Version in the Plugins Folder.
Restarted the Server.
And get this Error :
Code:10:35 AM [Error] countryblock: IndexOutOfRangeException while calling cmdCountryBlock: 10:35 AM [Error] countryblock: Array index is out of range. at NLua.MetaFunctions.GetMethodInternal (LuaState luaState) [0x00000] in <filename unknown>:0 at NLua.MetaFunctions.GetMethod (LuaState luaState) [0x00000] in <filename unknown>:0 at (wrapper native-to-managed) NLua.MetaFunctions:GetMethod (KeraLua.LuaState) at (wrapper managed-to-native) KeraLua.NativeMethods:LuaNetPCall (intptr,int,int,int) at KeraLua.Lua.LuaNetPCall (IntPtr luaState, Int32 nArgs, Int32 nResults, Int32 errfunc) [0x00000] in <filename unknown>:0 at NLua.LuaLib.LuaPCall (LuaState luaState, Int32 nArgs, Int32 nResults, Int32 errfunc) [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
-
Can there only be a blacklist to prevent players from countries I dont want in the server or do I need to have a whilelist also ?
-
Wulf Community Admin
-
What is the difference between the two lists? Will a whitelist or blacklist that says US and UK, will block those 2 countries?
-
Wulf Community Admin
-
ahh, ok, thank you for your help
-
Wulf Community Admin
-
I am getting error when ever someone joins the server.
Code:[Info] [Country Block] "PLAYER" was kicked as their country (The remote server returned an error: (429) Too Many Requests.) is blocked!
-
Wulf Community Admin
-
Thanks for fast response.
-
Same problem juergen.
-
hey wulf been getting this error dude
Code:Failed to call hook 'cmdCountryBlock' on plugin 'Country Block' (IndexOutOfRangeException: Array index is out of range.) [Oxide] 11:50 AM [Debug] at NLua.MetaFunctions.GetMethodInternal (LuaState luaState) [0x00000] in <filename unknown>:0 at NLua.MetaFunctions.GetMethod (LuaState luaState) [0x00000] in <filename unknown>:0 at (wrapper native-to-managed) NLua.MetaFunctions:GetMethod (KeraLua.LuaState) at (wrapper managed-to-native) KeraLua.NativeMethods:LuaNetPCall (intptr,int,int,int) at KeraLua.Lua.LuaNetPCall (IntPtr luaState, Int32 nArgs, Int32 nResults, Int32 errfunc) [0x00000] in <filename unknown>:0 at NLua.LuaLib.LuaPCall (LuaState luaState, Int32 nArgs, Int32 nResults, Int32 errfunc) [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