mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-05 12:36:40 +00:00
Add config entries for polygonal region points limit
This commit is contained in:
@ -761,6 +761,18 @@ public class WorldEdit {
|
||||
}
|
||||
}
|
||||
|
||||
public int getMaximumPolygonalPoints(LocalPlayer player) {
|
||||
if (player.hasPermission("worldedit.limit.unrestricted") || config.maxPolygonalPoints < 0) {
|
||||
return config.defaultMaxPolygonalPoints;
|
||||
} else {
|
||||
if (config.defaultMaxPolygonalPoints < 0) {
|
||||
return config.maxPolygonalPoints;
|
||||
}
|
||||
return Math.min(config.defaultMaxPolygonalPoints,
|
||||
config.maxPolygonalPoints);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks to see if the specified radius is within bounds.
|
||||
*
|
||||
|
Reference in New Issue
Block a user