If sender is null, default to target as placeholder owner

This commit is contained in:
libraryaddict 2021-05-27 20:57:39 +12:00
parent 15fd2c3d46
commit c1ede49a8e

View File

@ -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);