If sender is null, default to target as placeholder owner
This commit is contained in:
parent
15fd2c3d46
commit
c1ede49a8e
@ -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 New Issue
Block a user