mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-07-23 23:55:33 +02:00
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user