mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 17:57:38 +00:00
Merge pull request #102 from wizjany/master
Fixed a few minor CUI aesthetics
This commit is contained in:
commit
41f2196809
@ -38,6 +38,7 @@ import com.sk89q.bukkit.migration.PermissionsResolverServerListener;
|
||||
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 class WorldEditPlugin extends JavaPlugin {
|
||||
*/
|
||||
public void onDisable() {
|
||||
controller.clearSessions();
|
||||
for (Player player : getServer().getOnlinePlayers()) {
|
||||
wrapPlayer(player).dispatchCUIEvent(new SelectionShapeEvent("cuboid"));
|
||||
}
|
||||
config.unload();
|
||||
}
|
||||
|
||||
|
@ -229,6 +229,7 @@ public class SelectionCommands {
|
||||
region.expand(new Vector(0, -128, 0));
|
||||
session.getRegionSelector().learnChanges();
|
||||
int newSize = region.getArea();
|
||||
session.getRegionSelector().explainRegionAdjust(player, session);
|
||||
player.print("Region expanded " + (newSize - oldSize)
|
||||
+ " blocks [top-to-bottom].");
|
||||
} catch (RegionOperationException e) {
|
||||
|
Loading…
Reference in New Issue
Block a user