mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 19:50:30 +00:00
If sender is null, default to target as placeholder owner
This commit is contained in:
parent
15fd2c3d46
commit
c1ede49a8e
1 changed files with 1 additions and 1 deletions
|
@ -758,7 +758,7 @@ public class DisguiseParser {
|
||||||
customName = true;
|
customName = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
args = parsePlaceholders(args, sender, target);
|
args = parsePlaceholders(args, sender == null ? target : sender, target);
|
||||||
|
|
||||||
if (disguisePerm.isUnknown()) {
|
if (disguisePerm.isUnknown()) {
|
||||||
throw new DisguiseParseException(LibsMsg.PARSE_CANT_DISG_UNKNOWN);
|
throw new DisguiseParseException(LibsMsg.PARSE_CANT_DISG_UNKNOWN);
|
||||||
|
|
Loading…
Reference in a new issue