mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-29 16:46:45 +01:00
parent
7b1c4a5042
commit
3240fc9559
@ -1091,11 +1091,15 @@ public class Plot {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
for (Plot current : getConnectedPlots()) {
|
for (Plot current : getConnectedPlots()) {
|
||||||
|
List<PlotPlayer> players = current.getPlayersInPlot();
|
||||||
|
for (PlotPlayer pp : players) {
|
||||||
|
PlotListener.plotExit(pp, current);
|
||||||
|
}
|
||||||
getArea().removePlot(getId());
|
getArea().removePlot(getId());
|
||||||
DBFunc.delete(current);
|
DBFunc.delete(current);
|
||||||
current.owner = null;
|
current.owner = null;
|
||||||
current.settings = null;
|
current.settings = null;
|
||||||
for (PlotPlayer pp : current.getPlayersInPlot()) {
|
for (PlotPlayer pp : players) {
|
||||||
PlotListener.plotEntry(pp, current);
|
PlotListener.plotEntry(pp, current);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user