mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-05 12:36:40 +00:00
Added a separate point maximum for polyhedral selections.
This commit is contained in:
@ -905,6 +905,18 @@ public class WorldEdit {
|
||||
}
|
||||
}
|
||||
|
||||
public int getMaximumPolyhedronPoints(LocalPlayer player) {
|
||||
if (player.hasPermission("worldedit.limit.unrestricted") || config.maxPolyhedronPoints < 0) {
|
||||
return config.defaultMaxPolyhedronPoints;
|
||||
} else {
|
||||
if (config.defaultMaxPolyhedronPoints < 0) {
|
||||
return config.maxPolyhedronPoints;
|
||||
}
|
||||
return Math.min(config.defaultMaxPolyhedronPoints,
|
||||
config.maxPolyhedronPoints);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks to see if the specified radius is within bounds.
|
||||
*
|
||||
|
Reference in New Issue
Block a user