Building Restrictions
A plugin that allows server admins to set limits on the number of buildings players can place in Unturned.
Features
- Limit total buildings per player
- Limit barricades and structures separately
- Set specific limits for different building types
- Height restrictions for buildings
- Location-based building limits
- Multipliers for players with special permissions
Commands
/buildingstats
- Shows your current building counts and limits/buildingstats <player>
- Shows another player's building counts and limits (requires permission)
Permissions
buildingstats
- Allows using the/buildingstats
commandbuildingstats.other
- Allows checking other players' building statsbuildings.vip
- Example permission for multiplier (customizable)
Configuration
General Settings
<MessageColor>yellow</MessageColor>
<MessageIconUrl>https://i.imgur.com/LlEcfBg.png</MessageIconUrl>
<EnableMaxBuildings>false</EnableMaxBuildings>
<MaxBuildings>200</MaxBuildings>
<EnableMaxBarricades>false</EnableMaxBarricades>
<MaxBarricades>100</MaxBarricades>
<EnableMaxStructures>false</EnableMaxStructures>
<MaxStructures>150</MaxStructures>
<BypassAdmin>false</BypassAdmin>
MessageColor
- Color of plugin messagesMessageIconUrl
- Icon shown with messagesEnableMaxBuildings
- Set totrue
to limit total buildingsMaxBuildings
- Maximum total buildings allowed per playerEnableMaxBarricades
- Set totrue
to limit barricades separatelyMaxBarricades
- Maximum barricades allowed per playerEnableMaxStructures
- Set totrue
to limit structures separatelyMaxStructures
- Maximum structures allowed per playerBypassAdmin
- Set totrue
to let admins ignore all restrictions
Height Restrictions
<EnableMaxBarricadeHeight>false</EnableMaxBarricadeHeight>
<MaxBarricadeHeight>100</MaxBarricadeHeight>
<EnableMaxStructureHeight>false</EnableMaxStructureHeight>
<MaxStructureHeight>100</MaxStructureHeight>
EnableMaxBarricadeHeight
- Set totrue
to limit barricade heightMaxBarricadeHeight
- Maximum height (in meters) for barricadesEnableMaxStructureHeight
- Set totrue
to limit structure heightMaxStructureHeight
- Maximum height (in meters) for structures
Location Restrictions
<EnableMaxBuildingsPerLocation>false</EnableMaxBuildingsPerLocation>
<MaxBuildingsPerLocationHeight>100</MaxBuildingsPerLocationHeight>
<MaxBuildingsPerLocation>10</MaxBuildingsPerLocation>
EnableMaxBuildingsPerLocation
- Set totrue
to limit buildings in specific areasMaxBuildingsPerLocationHeight
- Maximum height for location detectionMaxBuildingsPerLocation
- Maximum buildings allowed in a location- Set to
0
to completely disable building in locations - The following aren't counted: Safezone Radiators, Horde Beacons, Charges, Vehicles
- Set to
Specific Building Limits
<Barricades>
<Barricade Name="sentries" Build="SENTRY" Max="5" />
<Barricade Name="stereos" Build="STEREO" Max="1" />
<Barricade Name="campfires" Build="CAMPFIRE" Max="2" />
<Barricade Name="Sandbag" ItemId="365" Max="10" />
</Barricades>
<Structures>
<Structure Name="roofs" Construct="ROOF" Max="30" />
<Structure Name="floors" Construct="FLOOR" Max="30" />
<Structure Name="Metal Wall" ItemId="371" Max="20" />
</Structures>
Barricades
- List of specific barricade type restrictionsStructures
- List of specific structure type restrictions- For each entry:
Name
- Display name for the building type (informational only, doesn't affect functionality)Build
- Barricade type (use values from Barricade Build types list)Construct
- Structure type (use values from Structure Construct types list)ItemId
- Specific item ID (overrides Build/Construct)Max
- Maximum number allowed
Restriction Methods:
You can restrict buildings in three ways:
By Building Category: Use the
Build
attribute for barricades orConstruct
for structures to restrict entire categories (e.g., all SENTRY types).By Specific Item ID: Use the
ItemId
attribute to restrict a specific item. For example:ItemId="365"
restricts Sandbag barricades specificallyItemId="371"
restricts Metal Walls specifically
Combined Restrictions: You can have both category restrictions and specific item restrictions active at the same time.
Note: When using ItemId, you need to know the exact ID number of the item in Unturned. Using ItemId will override category-based restrictions for that specific item. The
Name
attribute is just for your reference and doesn't need to match the exact item name in Unturned.
Permission Multipliers
<Multipliers>
<Multiplier Permission="buildings.vip" Multiplier="1.5" />
</Multipliers>
- Use multipliers to give certain players higher limits
Permission
- The permission to check forMultiplier
- How much to multiply the limits (1.5 = +50%)
Building Types Reference
Barricade Types
FORTIFICATION, BARRICADE, DOOR, GATE, BED, LADDER, STORAGE, FARM,
TORCH, CAMPFIRE, SPIKE, WIRE, GENERATOR, SPOT, SAFEZONE, FREEFORM,
SIGN, VEHICLE, CLAIM, BEACON, STORAGE_WALL, BARREL_RAIN, OIL, CAGE,
SHUTTER, TANK, CHARGE, SENTRY, SENTRY_FREEFORM, OVEN, LIBRARY,
OXYGENATOR, GLASS, NOTE, HATCH, MANNEQUIN, STEREO, SIGN_WALL,
CLOCK, BARRICADE_WALL
Structure Types
FLOOR, WALL, RAMPART, ROOF, PILLAR, POST, FLOOR_POLY, ROOF_POLY