Skip to content
Builds
No builds

Maven project CHGriefPrevention

A CommandHelper extension to access the GriefPrevention API on a Minecraft server.

Downloads

CHGriefPrevention 2.0.0 is compatible with GP 16.18.x and CommandHelper 3.3.5
CHGriefPrevention 1.2.2 is compatible with GP 16.17.x and CommandHelper 3.3.4

Functions

boolean has_gp_buildperm([player,] location):

See if a player can build at a given location.

int get_claim_id(location):

Gets the id of a claim at given location.

array get_claim_info(location):

Returns various data about a claim.

The following keys are present in the array:
corners: (array) An array of two location arrays for each corner of the claim.
owner: (string) The claim owner's name.
isadmin: (boolean) Whether or not this is an administrative claim.
permissions: (array) An associative array of arrays of permissions for 'builders', 'containers', 'accessors', and 'managers'.
id: (int) The id of the claim (doesn't exist for subclaims).
parentId: (int) The id of the parent claim (exists for subclaims only).
subclaims: (array) An array of subclaim arrays, which contain the key 'owner'.

Test Result Trend
Last Successful Artifacts
CHGP-2.0.0.jar12.84 KiB view
Latest Test Result (no failures)