From 3d9c95571845ee6df6aef72a58e82fffba50a0c1 Mon Sep 17 00:00:00 2001 From: tommy Date: Tue, 23 Jan 2024 16:34:09 -0500 Subject: [PATCH] allow domain names as ip input --- src/modules/commands/minecraft.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/commands/minecraft.lua b/src/modules/commands/minecraft.lua index 124779d..0f0d1a4 100644 --- a/src/modules/commands/minecraft.lua +++ b/src/modules/commands/minecraft.lua @@ -27,7 +27,7 @@ Commands:Add('setip',{},'set ip for status',function(CommandData) return CommandMessage:reply('No IP provided') end - local ServerIP=ServerIPStr:match("(%d+%.%d+%.%d+%.%d+)") + local ServerIP=ServerIPStr:match("(%d+%.%d+%.%d+%.%d+)") or ServerIPStr:match("(%w*%.?%w+%.%w+)") if not ServerIP then return CommandMessage:reply('Invalid server IP') end