mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-14 21:07:59 +00:00
Fixes #983
This commit is contained in:
parent
8a42eecc11
commit
ed62ed2487
1 changed files with 5 additions and 0 deletions
|
@ -71,6 +71,10 @@ public class Cluster extends SubCommand {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
PlotArea area = plr.getApplicablePlotArea();
|
PlotArea area = plr.getApplicablePlotArea();
|
||||||
|
if (area == null) {
|
||||||
|
C.NOT_IN_PLOT_WORLD.send(plr);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
Set<PlotCluster> clusters = area.getClusters();
|
Set<PlotCluster> clusters = area.getClusters();
|
||||||
MainUtil.sendMessage(plr, C.CLUSTER_LIST_HEADING, clusters.size() + "");
|
MainUtil.sendMessage(plr, C.CLUSTER_LIST_HEADING, clusters.size() + "");
|
||||||
for (PlotCluster cluster : clusters) {
|
for (PlotCluster cluster : clusters) {
|
||||||
|
@ -495,6 +499,7 @@ public class Cluster extends SubCommand {
|
||||||
PlotArea area = plr.getApplicablePlotArea();
|
PlotArea area = plr.getApplicablePlotArea();
|
||||||
if (area == null) {
|
if (area == null) {
|
||||||
C.NOT_IN_PLOT_WORLD.send(plr);
|
C.NOT_IN_PLOT_WORLD.send(plr);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
PlotCluster cluster = area.getCluster(args[1]);
|
PlotCluster cluster = area.getCluster(args[1]);
|
||||||
if (cluster == null) {
|
if (cluster == null) {
|
||||||
|
|
Loading…
Reference in a new issue