Prevents/allows damage to specific building blocks (walls, floors, etc.)

Supported Games
GameServerKingsGameServerKings

Overview

Allows you to change whether specific building parts are protected from being damaged.Plus in game chat command to change all config variables to true or false for authorized users.

**Update: **Added Protection percentage to scale the damage to building blocks.

By default, all Building blocks are not protected. Change False to True to protect them.

Permissions

dmbuildingblocks.admin - allows use of chat commands to change settings ingame

Commands

  • /ProtectionScale 40 - example will set protection scale of protected blocks to taking 40% damage.

To set any of the block config variables. all you need to do is type /variable [true or false].

  • /ProtectFoundation [true or false]
  • /ProtectFoundationSteps [true or false]
  • /ProtectFoundationTriangle [true or false]
  • /ProtectWindowWall [true or false]
  • /ProtectDoorway [true or false]
  • /ProtectFloor [true or false]
  • /ProtectFloorTriangle [true or false]
  • /ProtectHalfWall [true or false]
  • /ProtectStairsLShaped [true or false]
  • /ProtectStairsUShaped [true or false]
  • /ProtectStairsSpiral [true or false]
  • /ProtectStairsSpiralTriangle [true or false]
  • /ProtectRoof [true or false]
  • /ProtectLowWall [true or false]
  • /ProtectWall [true or false]
  • /ProtectWallFrame [true or false]
  • /ProtectFloorFrame [true or false]
  • /ProtectTriangleFrame [true or false]
  • /ProtectRamp [true or false]

you will get a in game reply that you have set it to the desired true or false.

Configuration

{
  "globalSettings": {
    "Scale - Precent of damage allowed to any Building block that is currently protected (default is 0%) : ": 0.0,
    "Protect - Foundation Square ? ": false,
    "Protect - Foundation Steps ? ": false,
    "Protect - Foundation Triange ? ": false,
    "Protect - Wall Low ? ": false,
    "Protect - Wall Half ? ": false,
    "Protect - Wall Full ? ": false,
    "Protect - Wall Frame ? ": false,
    "Protect - Wall Window ? ": false,
    "Protect - Wall Doorway ? ": false,
    "Protect - Floor Square ? ": false,
    "Protect - Floor Triangle ? ": false,
    "Protect - Floor Triangle Frame ? ": false,
    "Protect - Floor Frame ? ": false,
    "Protect - Stairs L Shaped ? ": false,
    "Protect - Stairs U Shaped ? ": false,
    "Protect - Stairs Spiral ? ": false,
    "Protect - Stairs Spiral Triangle ? ": false,
    "Protect - Ramp ? ": false,
    "Protect - Roof ? ": false
  }
}

Localization

{
  "nopermission": "You do not have permission to use that command",
  "protectscale": "Protection Scale is set to : ",
  "wrongsyntax": "Incorrect Syntax used. Please check to make sure you typed the commmand correctly",
  "ProtectFoundation": "You have set ProtectFoundations to ",
  "ProtectFoundationSteps": "You have set ProtectFoundationSteps to ",
  "ProtectFoundationTriangle": "You have set ProtectFoundationTriangle to ",
  "ProtectWindowWall": "You have set ProtectWindowWall to ",
  "ProtectDoorway": "You have set ProtectDoorway to ",
  "ProtectFloor": "You have set ProtectFloor to ",
  "ProtectFloorTriangle": "You have set ProtectFloorTriangles to ",
  "ProtectHalfWall": "You have set ProtectHalfWall to ",
  "ProtectStairsLShaped": "You have set ProtectStairsLShaped to ",
  "ProtectStairsUShaped": "You have set ProtectStairsUShaped to ",
  "ProtectStairsSpiral": "You have set ProtectStairsSpiral to ",
  "ProtectStairsSpiralTriangle": "You have set ProtectStairsSpiralTriangle to ",
  "ProtectRoof": "You have set ProtectRoof to ",
  "ProtectRamp": "You have set ProtectRamp to ",
  "ProtectLowWall": "You have set ProtectLowWall to ",
  "ProtectWall": "You have set ProtectWall to ",
  "ProtectWallFrame": "You have set ProtectWallFrame to ",
  "ProtectTriangleFrame": "You have set ProtectTriangleFrame to ",
  "ProtectFloorFrame": "You have set ProtectFloorFrame to "
}

MIT License


Copyright (c) 2018 ColonBlow


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.