Return base plot when using alias (#3253)

This commit is contained in:
Kevin Ludwig 2021-09-25 15:58:31 +02:00 committed by GitHub
parent ee832528db
commit 4f12dcf966
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -368,7 +368,7 @@ public class Plot {
for (Plot p : plots) {
String name = p.getAlias();
if (!name.isEmpty() && name.equalsIgnoreCase(arg)) {
return p;
return p.getBasePlot(false);
}
}
if (message && player != null) {