From 7a5dd5bca1dfb1b2a37ea0c17cf65870b6a42464 Mon Sep 17 00:00:00 2001 From: PseudoKnight Date: Sat, 31 Aug 2024 00:48:44 -0700 Subject: [PATCH] Fix crash when registering over a vanilla command --- src/main/java/com/laytonsmith/core/functions/Commands.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/laytonsmith/core/functions/Commands.java b/src/main/java/com/laytonsmith/core/functions/Commands.java index 8a31e2ee2..6908406a6 100644 --- a/src/main/java/com/laytonsmith/core/functions/Commands.java +++ b/src/main/java/com/laytonsmith/core/functions/Commands.java @@ -239,7 +239,7 @@ public Mixed exec(Target t, Environment environment, Mixed... args) throws Confi MCCommand cmd = map.getCommand(cmdStr); String prefix = Implementation.GetServerType().getBranding().toLowerCase(Locale.ENGLISH); boolean register = false; - if(cmd == null) { + if(cmd == null || cmd.getPlugin() == null) { register = true; cmd = StaticLayer.GetConvertor().getNewCommand(cmdStr); }