mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Add missing returns to /plot cluster
This commit is contained in:
parent
3e99f90eb1
commit
824f9d7ad0
@ -708,6 +708,7 @@ public class Cluster extends SubCommand {
|
|||||||
}
|
}
|
||||||
cluster.getHome(home -> player.teleport(home, TeleportCause.COMMAND));
|
cluster.getHome(home -> player.teleport(home, TeleportCause.COMMAND));
|
||||||
player.sendMessage(TranslatableCaption.of("cluster.cluster_teleporting"));
|
player.sendMessage(TranslatableCaption.of("cluster.cluster_teleporting"));
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
case "i":
|
case "i":
|
||||||
case "info":
|
case "info":
|
||||||
@ -729,14 +730,18 @@ public class Cluster extends SubCommand {
|
|||||||
PlotArea area = player.getApplicablePlotArea();
|
PlotArea area = player.getApplicablePlotArea();
|
||||||
if (area == null) {
|
if (area == null) {
|
||||||
player.sendMessage(TranslatableCaption.of("errors.not_in_plot_world"));
|
player.sendMessage(TranslatableCaption.of("errors.not_in_plot_world"));
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
PlotCluster cluster;
|
PlotCluster cluster;
|
||||||
if (args.length == 2) {
|
if (args.length == 2) {
|
||||||
cluster = area.getCluster(args[1]);
|
cluster = area.getCluster(args[1]);
|
||||||
|
if (cluster == null) {
|
||||||
player.sendMessage(
|
player.sendMessage(
|
||||||
TranslatableCaption.of("cluster.invalid_cluster_name"),
|
TranslatableCaption.of("cluster.invalid_cluster_name"),
|
||||||
Template.of("cluster", args[1])
|
Template.of("cluster", args[1])
|
||||||
);
|
);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
cluster = area.getCluster(player.getLocation());
|
cluster = area.getCluster(player.getLocation());
|
||||||
if (cluster == null) {
|
if (cluster == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user