Whispers88
Limits the number of turrets/traps that can be placed in a particular building or cupboard range

Supported Games
GameServerKingsGameServerKings

This plugin allows admins to set the maximum number of autoturrets, flame turrets, and shotgun traps that can be deployed in a building (i.e. within one continuous set of cupboard range). It also prevents turrets from being placed outside of cupboard range; this is to prevent players from dropping a lot of turrets and then a cupboard afterwards.

Configuration

Default Configuration

{
  "Config": {
    "Admin Can Bypass Build Restrictions": false,
    "Disable All Turrets": false
  },
  "Limits": {
    "Individual Control": {
      "AutoTurret": {
        "Maximum": 3,
       },
      "Flame Turret": {
        "Maximum": 3
      },
      "Shotgun Trap": {
        "Maximum": 3
      },
      "Sam Site Turret": {
        "Maximum": 3   
    }
  }
}

Global Configuration Settings

  • Admin Can Bypass Build Restrictions - If set to true, this allows admins to place as many turrets as they like. It does not bypass the power requirements, if configured. If set to false, admins get the same restrictions as anyone else. (Default: false)
  • Disable All Turrets - If enabled, prevents all new autoturrets, flame turrets, and shotgun traps from being built. Does not delete existing turrets. If this is enabled, existing autoturrets will not fire at people. Currently it is not possible to stop flame turrets and shotgun traps from firing, as uMod does not yet support hooks for those trap types. (Default: false)

Individual Control Settings

Individual control sets limits for each individual turret type. Individual control settings for each turret type are as follows:

  • Maximum - The maximum number of the specific turret type. Setting this to -1 disables turret limits for the specific turret type. (Default: 3 for all types)
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.