Limits the number of foundations that players can place in each building

Supported Games
GameServerKingsGameServerKings

Limits the size of a building by limiting the number of foundations that can be placed per building.

Permissions

  • foundationlimit.admin -- Allows player to use /fdlimit command
  • foundationlimit.bypass -- Ignore plug-in effects

Commands

(requires auth level 2 or foundationlimit.admin)

  • /fdlimit default [limitcount] -- Change the maximum default foundation place limit(-1 = Disable)
  • /fdlimit add [permissionname] {[limitcount], [squarelimitcount] [trianglelimitcount]} -- Add custom vip permission
  • /fdlimit remove [permissionname] -- Remove custom vip permission
  • /fdlimit radius [searchradius] -- Set scope to search for connected foundations
  • /fdlimit class [on/off] -- Determines whether to turn on the function that separates and limits foundation types
  • /fdlimit msg [int] -- Specifies the value of MinFoundationsBeforeMsgShowsUp
  • /fdlimit stat -- View config settings

Configuration

  • DefaultFoundationLimit -- The maximum number of foundations that can be placed(-1 = Disable).
  • DefaultTriangleFoundationLimit -- The maximum number of triangle foundations that can be placed(-1 = Disable) (This value is ignored when UseFoundationClassification is turned off).
  • permissionItems -- It's a custom vip permissions.
  • MinFoundationsBeforeMsgShowsUp -- The message is output from less than or equal to n deployable foundations(-1 = Disable).
  • SearchRange -- Scope to search for foundations connected to each other.
  • UseFoundationClassification -- Sort out foundation types and decide whether to limit or not
{
  "DefaultFoundationLimit": 20,
  "DefaultTriangleFoundationLimit": 0,
  "MinFoundationsBeforeMsgShowsUp": -1,
  "permissionItems": [
    {
      "FoundationLimit": 40,
      "PermissionName": "foundationlimit.vip",
      "TriangleFoundationLimit": 0
    },
    {
      "FoundationLimit": 60,
      "PermissionName": "foundationlimit.vip2",
      "TriangleFoundationLimit": 0
    },
    {
      "FoundationLimit": 80,
      "PermissionName": "foundationlimit.vip3",
      "TriangleFoundationLimit": 0
    }
  ],
  "SearchRange": 5,
  "UseFoundationClassification": false
}

Localization

{
  "No Permission": "You do not have permission to use the '{0}' command.",
  "No parameters": "Not enough parameters.",
  "Invalid parameters": "Invalid parameters.",
  "Parameter Not Int": "Parameter is not an integer.",
  "FoundationLimited": "You can place up to {0} foundations.",
  "SquareFoundationLimited": "You can place up to {0} square foundations.",
  "TriangleFoundationLimited": "You can place up to {0} triangle foundations.",
  "FoundationLimitDisplay": "Currently you placed {0} foundations, You can place up to {1} foundations.",
  "SquareNTriangleFoundationLimitDisplay": "Currently you placed {0} square foundations and {1} triangle foundations, You can place up to {2} square foundations and {3} triangle foundations.",
  "Limit Changed": "Foundation limit changed to {0}.",
  "Limit Triangle Changed": "Square Foundation limit changed to {0} and Triangle Foundation limit changed to {0}.",
  "Radius Changed": "Inter-Connected Foundation search scope has been changed to '{0}'.",
  "Item Added": "Custom permission '{0}' has been added.",
  "Item Removed": "Custom permission '{0}' has been removed.",
  "Item Already Exist": "Item with same name already exists.",
  "Item Not Exist": "Item does not exist.",
  "Limit Item": "    <color=#C9AE00>{0}:</color> {1}",
  "Limit TriangleOptioned Item": "    <color=#C9AE00>{0}:</color> Square - {1}, Triangle - {2}",
  "NoData": "No Data",
  "Class Enabled": "Foundation classification enabled.",
  "Class Disabled": "Foundation classification disabled.",
  "Msg Count Set": "MinFoundationsBeforeMsgShowsUp value is set to {0}.",
  "Limit Status": "<size=20><color=#FFBB00>Foundation Limit Status</color></size>\n\n<color=#FFE400>SearchRange:</color> {0}\n<color=#FFE400>MinFoundationsBeforeMsgShowsUp:</color> {1}\n<color=#FFE400>DefaultFoundationLimit:</color> {2}\n<color=#FFE400>CustomPermissionList:</color> \n{3}",
  "Limit TriangleOptioned Status": "<size=20><color=#FFBB00>Foundation Limit Status</color></size>\n\n<color=#FFE400>SearchRange:</color> {0}\n<color=#FFE400>MinFoundationsBeforeMsgShowsUp:</color> {1}\n<color=#FFE400>DefaultSquareFoundationLimit:</color> {2}\n<color=#FFE400>DefaultTriangleFoundationLimit:</color> {3}\n<color=#FFE400>CustomPermissionList:</color> \n{4}",
  "CommandList": "<size=20><color=#FFBB00>Foundation Limit</color></size>\n\n<color=#FFE400>/fdlimit default </color><color=#C9AE00>[limitcount]</color> - Set number of foundations to limit by default (-1 = Disable)\n<color=#FFE400>/fdlimit add </color><color=#C9AE00>[permissionname] [limitcount]</color> - add custom vip permission\n<color=#FFE400>/fdlimit remove </color><color=#C9AE00>[permissionname]</color> - remove custom vip permission\n<color=#FFE400>/fdlimit radius </color><color=#C9AE00>[searchradius]</color> - Set scope to search for connected foundations\n<color=#FFE400>/fdlimit class </color><color=#C9AE00>[on/off]</color> - Determine whether to treat triangle foundation and square foundation separately\n<color=#FFE400>/fdlimit msg </color><color=#C9AE00>[integer (-1 = disable)]</color> - Minimum foundations required before the limit message shows up\n<color=#FFE400>/fdlimit stat</color> - view config settings",
  "CommandList TriangleOptioned": "<size=20><color=#FFBB00>Foundation Limit</color></size>\n\n<color=#FFE400>/fdlimit default </color><color=#C9AE00>[squarefoundationlimitcount] [trianglefoundationlimitcount]</color> - Set number of foundations to limit by default (-1 = Disable)\n<color=#FFE400>/fdlimit add </color><color=#C9AE00>[permissionname] [squarefoundationlimitcount] [trianglefoundationlimitcount]</color> - add custom vip permission\n<color=#FFE400>/fdlimit remove </color><color=#C9AE00>[permissionname]</color> - remove custom vip permission\n<color=#FFE400>/fdlimit radius </color><color=#C9AE00>[searchradius]</color> - Set scope to search for connected foundations\n<color=#FFE400>/fdlimit class </color><color=#C9AE00>[on/off]</color> - Determine whether to treat triangle foundation and square foundation separately\n<color=#FFE400>/fdlimit msg </color><color=#C9AE00>[integer (-1 = disable)]</color> - Minimum foundations required before the limit message shows up\n<color=#FFE400>/fdlimit stat</color> - view config settings"
}
MIT License

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.