diff options
author | Mattes D <github@xoft.cz> | 2015-01-29 11:09:56 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-02-04 08:40:52 +0100 |
commit | 17498a97a289119debdb651ab898ddea99e86ff9 (patch) | |
tree | 04f103b0c0f5d120cec59756618bcafeafb53cb2 /MCServer/Plugins/NetworkTest/Info.lua | |
parent | NetworkTest plugin: Added cNetwork:Connect test code. (diff) | |
download | cuberite-17498a97a289119debdb651ab898ddea99e86ff9.tar cuberite-17498a97a289119debdb651ab898ddea99e86ff9.tar.gz cuberite-17498a97a289119debdb651ab898ddea99e86ff9.tar.bz2 cuberite-17498a97a289119debdb651ab898ddea99e86ff9.tar.lz cuberite-17498a97a289119debdb651ab898ddea99e86ff9.tar.xz cuberite-17498a97a289119debdb651ab898ddea99e86ff9.tar.zst cuberite-17498a97a289119debdb651ab898ddea99e86ff9.zip |
Diffstat (limited to 'MCServer/Plugins/NetworkTest/Info.lua')
-rw-r--r-- | MCServer/Plugins/NetworkTest/Info.lua | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/MCServer/Plugins/NetworkTest/Info.lua b/MCServer/Plugins/NetworkTest/Info.lua index 6bb639860..8c2604e31 100644 --- a/MCServer/Plugins/NetworkTest/Info.lua +++ b/MCServer/Plugins/NetworkTest/Info.lua @@ -36,6 +36,27 @@ g_PluginInfo = }, }, -- ParameterCombinations }, -- client + + lookup = + { + HelpString = "Looks up the IP addresses corresponding to the given hostname (google.com by default)", + Handler = HandleConsoleNetLookup, + ParameterCombinations = + { + { + Params = "", + Help = "Looks up the IP addresses of google.com.", + }, + { + Params = "Hostname", + Help = "Looks up the IP addresses of the specified hostname.", + }, + { + Params = "IP", + Help = "Looks up the canonical name of the specified IP.", + }, + }, + }, -- lookup }, -- Subcommands }, -- net }, |