From c1ede49a8e4cc1118e5f5c578832cea9c16f0676 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Thu, 27 May 2021 20:57:39 +1200 Subject: [PATCH] If sender is null, default to target as placeholder owner --- .../libraryaddict/disguise/utilities/parser/DisguiseParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/parser/DisguiseParser.java b/src/main/java/me/libraryaddict/disguise/utilities/parser/DisguiseParser.java index 1c50124a..ec69cf51 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/parser/DisguiseParser.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/parser/DisguiseParser.java @@ -758,7 +758,7 @@ public class DisguiseParser { customName = true; } - args = parsePlaceholders(args, sender, target); + args = parsePlaceholders(args, sender == null ? target : sender, target); if (disguisePerm.isUnknown()) { throw new DisguiseParseException(LibsMsg.PARSE_CANT_DISG_UNKNOWN);