Restricts building height, building in water, and number of foundations

Supported Games

Building Restriction will automatically remove building blocks (when placed) that have reached the configured maximum building height, when built in water, or if the maximum number of foundations has been reached. Each restriction can be enabled/disabled via the configuration file.

Note: The water limit is calculated based on the bottom point of the building block; ex. foundations it would be the bottom of the posts.

Permissions

  • buildingrestriction.bypass -- Excludes player from building restrictions

Configuration

{
  "Restrict build height (true/false)": true,
  "Maximum build height": 5,
  "Restrict foundations (true/false)": true,
  "Maximum foundations": 16,
  "Maximum triangle foundations": 24,
  "Restrict water depth (true/false)": true,
  "Maximum water depth": 0.1,
  "Refund resources when restricted": true
}

Localization

Credits

  • Jakkee, for the original version of this plugin

MIT License, with distribution exclusivity for uMod.org


Copyright (c) 2020 Wulf


Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:


The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.


THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.