From cec36522d15e9d85aa8540e4574a2a395da319e4 Mon Sep 17 00:00:00 2001 From: tommy Date: Sat, 13 Jan 2024 03:18:04 -0500 Subject: [PATCH] reminder that "." is a wildcard for any and all character patterns match using % however you escape . using a % (??? WHY) --- 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 d9fe1b7..124779d 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+)") if not ServerIP then return CommandMessage:reply('Invalid server IP') end