mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-27 05:00:08 +08:00
Made CUI selection clear on disable (including Bukkit's /reload)
This commit is contained in:
parent
d91a634450
commit
84c3ace9e0
@ -38,6 +38,7 @@
|
||||
import com.sk89q.worldedit.*;
|
||||
import com.sk89q.worldedit.bags.BlockBag;
|
||||
import com.sk89q.worldedit.bukkit.selections.*;
|
||||
import com.sk89q.worldedit.cui.SelectionShapeEvent;
|
||||
import com.sk89q.worldedit.regions.*;
|
||||
|
||||
/**
|
||||
@ -111,6 +112,9 @@ public void onEnable() {
|
||||
*/
|
||||
public void onDisable() {
|
||||
controller.clearSessions();
|
||||
for (Player player : getServer().getOnlinePlayers()) {
|
||||
wrapPlayer(player).dispatchCUIEvent(new SelectionShapeEvent("cuboid"));
|
||||
}
|
||||
config.unload();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user