Add support for GriefPrevention Protection

Refactored the YardWatch.java file to check if the GriefPrevention plugin is enabled. If enabled, GriefPrevention Protection is registered. Additionally, a new class GriefPreventionProtection.java was added which checks if a location is protected, if a player can break/place a block, interact with a block or entity, or damage an entity based on GriefPrevention's claims. Moreover, added a new dependency for GriefPrevention in pom.xml.
This commit is contained in:
2024-03-21 23:25:48 +01:00
parent 137ef21410
commit 7405f15510
3 changed files with 84 additions and 6 deletions
+6 -1
View File
@@ -95,6 +95,11 @@
<version>2.0.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.github.GriefPrevention</groupId>
<artifactId>GriefPrevention</artifactId>
<version>16.18.2</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>