mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-02 11:26:42 +00:00
Add config entries for polygonal region points limit
This commit is contained in:
@ -609,8 +609,12 @@ public class SelectionCommands {
|
||||
selector = new ExtendingCuboidRegionSelector(oldSelector);
|
||||
player.print("Cuboid: left click for a starting point, right click to extend");
|
||||
} else if (typeName.equalsIgnoreCase("poly")) {
|
||||
selector = new Polygonal2DRegionSelector(oldSelector);
|
||||
int maxPoints = we.getMaximumPolygonalPoints(player);
|
||||
selector = new Polygonal2DRegionSelector(oldSelector, maxPoints);
|
||||
player.print("2D polygon selector: Left/right click to add a point.");
|
||||
if (maxPoints > -1) {
|
||||
player.print(maxPoints + " points maximum.");
|
||||
}
|
||||
} else if (typeName.equalsIgnoreCase("ellipsoid")) {
|
||||
selector = new EllipsoidRegionSelector(oldSelector);
|
||||
player.print("Ellipsoid selector: left click=center, right click to extend");
|
||||
|
Reference in New Issue
Block a user