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
1 changed files with 1 additions and 1 deletions

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