Skip to main content

Less than 1 minute

How to add GD API as dependency

compileOnly group: 'com.griefdefender', name: 'api', version: '2.1.0-SNAPSHOT'
maven 
{
    name = 'griefdefender'
    url = 'https://repo.glaremasters.me/repository/bloodshot'
}

Note: Latest API snapshots can be found on maven repoopen in new window

Code Examples

Check if location is part of a user claim

final Claim claim = GriefDefender.getCore().getClaimAt(location);

if (claim != null && !claim.isWilderness()) {
    // do your logic
}

Plugin Examples using GD's API