3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-06 03:20:06 +01:00

Merge pull request #102 from wizjany/master

Fixed a few minor CUI aesthetics
Dieser Commit ist enthalten in:
MonsieurApple 2011-05-14 11:43:19 -07:00
Commit 41f2196809
2 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -38,6 +38,7 @@ import com.sk89q.bukkit.migration.PermissionsResolverServerListener;
import com.sk89q.worldedit.*; import com.sk89q.worldedit.*;
import com.sk89q.worldedit.bags.BlockBag; import com.sk89q.worldedit.bags.BlockBag;
import com.sk89q.worldedit.bukkit.selections.*; import com.sk89q.worldedit.bukkit.selections.*;
import com.sk89q.worldedit.cui.SelectionShapeEvent;
import com.sk89q.worldedit.regions.*; import com.sk89q.worldedit.regions.*;
/** /**
@ -111,6 +112,9 @@ public class WorldEditPlugin extends JavaPlugin {
*/ */
public void onDisable() { public void onDisable() {
controller.clearSessions(); controller.clearSessions();
for (Player player : getServer().getOnlinePlayers()) {
wrapPlayer(player).dispatchCUIEvent(new SelectionShapeEvent("cuboid"));
}
config.unload(); config.unload();
} }

Datei anzeigen

@ -229,6 +229,7 @@ public class SelectionCommands {
region.expand(new Vector(0, -128, 0)); region.expand(new Vector(0, -128, 0));
session.getRegionSelector().learnChanges(); session.getRegionSelector().learnChanges();
int newSize = region.getArea(); int newSize = region.getArea();
session.getRegionSelector().explainRegionAdjust(player, session);
player.print("Region expanded " + (newSize - oldSize) player.print("Region expanded " + (newSize - oldSize)
+ " blocks [top-to-bottom]."); + " blocks [top-to-bottom].");
} catch (RegionOperationException e) { } catch (RegionOperationException e) {