anti-grief

#6 - published 1358 years ago

Anti-Grief

This plugin Adds Anti-Grief features, for elements and vehicles, for PVE style server’s.

 

Configuration Options(With defaults added):

NegateBarricadeDamage=true Negates player weapon damage on barricades on the server.
NegateStructureDamage=true Negates player weapon damage on structures on the server.
NegateVehicleDamage=true Negates player weapon damage on vehicles on the server.
NegateObjectDamage=false Negates player weapon damage on objects on the server.
NegateResourceDamage=false Negates player weapon damage on resources on the server.
MakeVehiclesInvulnerable=false Should vehicles be invulnerable to most forms of damage, like trains(You may need to use a plugin like wrecking ball to destroy the vehicles.)?
MakeTiresInvulnerable=true Make it so you can shoot tires off of a car?
ModifyMinVehicleSpawnHealth=false Should the minimum hp of newly spawned vehicles be changed?
MinVehicleSpawnHealth=4000 The hp to set the vehicles too, if ModifyMinVehicleSpawnHealth is set.
VehicleSetMobileBuildables=false Should you be able to place and use buildables that are by default restricted on vehicles.

 

Note: This feature requires that you add this flag to the client side vehicle files for you to be able to set these elements on the vehicles. (You should make backups of the files that you modify for this, if you don’t want to do a reverify of your game files.)
Supports_Mobile_Buildables

ModifyMinElementSpawnHealth=false Should the minimum hp of newly spawned elements be changed?
MinElementSpawnHealth=1000 The hp to set elements too, if ModifyMinElementSpawnHealth is set.
MakeElementsExplosionProof=false Should elements be protected from explosions?
MakeElementsInvulnerable=false Should elements be invulnerable to weapons that don’t have the invulnerability bypass flag set to them?
MakeContainersLocked=false Should “all” containers be locked by default? If you only want the display type containers locked you should use MakeDisplaysLocked instead. You can skip containers with this by adding their id’s to the skip elements list.
MakeDisplaysLocked=false Should display type containers be locked by default, so only you and those in your group can access them.
SkipItemIDs List:

Adds a list of item id’s(mostly weapon types) that shouldn’t be modified by this plugin.

SkilElementIDs List:

Adds list of elements that shouldn’t be modified by this plugin.

SkipVehicleIDs List:

Adds list of Vehicles that shouldn’t be modified by this plugin.

 

Other Info:

This plugin works by modifying various values on bundles on server startup to apply anti-griefing features, but prior to the map load. If you need to change a setting in the configuration, you will need to restart the server, for the changes to take effect.

Default configuration


<?xml version="1.0" encoding="utf-8"?>
<AntiGriefConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <NegateBarricadeDamage>true</NegateBarricadeDamage>
  <NegateStructureDamage>true</NegateStructureDamage>
  <NegateVehicleDamage>true</NegateVehicleDamage>
  <NegateObjectDamage>false</NegateObjectDamage>
  <NegateResourceDamage>false</NegateResourceDamage>
  <MakeVehiclesInvulnerable>false</MakeVehiclesInvulnerable>
  <MakeTiresInvulnerable>true</MakeTiresInvulnerable>
  <ModifyMinVehicleSpawnHealth>false</ModifyMinVehicleSpawnHealth>
  <MinVehicleSpawnHealth>4000</MinVehicleSpawnHealth>
  <VehicleSetMobileBuildables>false</VehicleSetMobileBuildables>
  <ModifyMinElementSpawnHealth>false</ModifyMinElementSpawnHealth>
  <MinElementSpawnHealth>1000</MinElementSpawnHealth>
  <MakeElementsExplosionProof>false</MakeElementsExplosionProof>
  <MakeElementsInvulnerable>false</MakeElementsInvulnerable>
  <MakeContainersLocked>false</MakeContainersLocked>
  <MakeDisplaysLocked>false</MakeDisplaysLocked>
  <SkipItemIDs>
    <ID>76</ID>
  </SkipItemIDs>
  <SkipElementIDs>
    <ID>383</ID>
    <ID>384</ID>
    <ID>385</ID>
  </SkipElementIDs>
  <SkipVehicleIDs>
    <ID>91</ID>
  </SkipVehicleIDs>
</AntiGriefConfig>

Default english translation


<?xml version="1.0" encoding="utf-8"?>
<Translations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />

Commands and permissions


This plugin doesn't have any commands.

Git changelog


9281051b40fdba4 2018-02-13 05:40:41

Add feature to allow "all" containers to have the locked flag added to them. the skip elements list should be used to skip containers that you don't want modified with this.

    Download

    Build #6
    By downloading this file, you agree to our license terms.

    Repository

    github.com

    License

    MIT

    Author

    cartman-2000