Fix wrong expansion get in /papi info

This commit is contained in:
Andre_601 2020-09-13 00:30:27 +02:00 committed by GitHub
parent a74f78bd73
commit 35838aa229
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,7 @@ public final class CommandInfo extends PlaceholderCommand {
}
final PlaceholderExpansion expansion = plugin.getLocalExpansionManager()
.findExpansionByName(params.get(0)).orElse(null);
.findExpansionByIdentifier(params.get(0)).orElse(null);
if (expansion == null) {
Msg.msg(sender,
"&cThere is no expansion loaded with the identifier: &f" + params.get(0));