YardWatch

⭐ — (1 endorsements) 📥 770 downloads 📌 v1.4.1 📅 4/18/2024
🟡 Updated this year

By YouHaveTrouble · bukkit

⬇ Download Mod Source: Modrinth ↗ 📅 Updated: 9/27/2025 📅 Created: 4/18/2024

🔍 Analysis

  • 👍 0.1% endorsement rate
  • 🏆 #385 of 1452 bukkit mods in this game by downloads

📋 About This Mod

# YardWatch (for server owners) Implementation of (https://github.com/YouHaveTrouble/YardWatchAPI) for common protection plugins. If any of supported plugins implements the API itself, then this plugin will stop providing its implementation to allow the plugin to take over. If you're a developer looking for information how to implement YardWatchAPI in your plugin, see (https://github.com/YouHaveTrouble/YardWatchAPI) ## Requirements - Java 17 - Minecraft 1.16+ ## Implementations for: - GriefPrevention (v16+) - WorldGuard (7.0.0+) - LWCX - FactionsUUID - SuperiorSkyBlock - Towny - PlotSquared (6.0.0+) ## Plugin you're using is not implementing YardWatchAPI? Contact the plugin developer and send them (https://github.com/YouHaveTrouble/YardWatchAPI/blob/master/readme.md)! You can also request a temporary implementation within this plugin (https://github.com/YouHaveTrouble/YardWatch/issues/new?assignees=&labels=enhancement&projects=&template=implementation-request.yml&title=%5BNEW+IMPLEMENTATION%5D%3A+). # YardWatchAPI (for developers) API to unify protection plugins for minecraft bukkit servers to allow easy protection queries without having to import 10 different plugin apis with separate implementations. Current version: (https://jitpack.io/v/YouHaveTrouble/YardWatchAPI.svg)](https://jitpack.io/#YouHaveTrouble/YardWatchAPI) If you're looking for a plugin implementing YardWatchAPI for common protection plugins, see (https://github.com/YouHaveTrouble/YardWatch). # Usage ### Import the api using dependency manager In any case of usage you will need to import the API. Replace `VERSION` with current version tag. You should also adjust your `<scope>` to `provided` if you're not implementing the api and just querying it. #### Maven ```xml <repository> <id>jitpack.io</id> <url>https://jitpack.io</url> </repository> <dependency> <groupId>com.github.YouHaveTrouble</groupId> <artifactId>YardWatchAPI</artifactId> <version>VERSION</version> <scope>compile</scope> </dependency> ``` #### Gradle ```gradle dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { mavenCentral() maven { url 'https://jitpack.io' } } } dependencies { compileOnly 'com.github.YouHaveTrouble:YardWatchAPI:VERSION' } ``` ## For plugins wanting to see if something is protected ### Check if player can break a block Example handling of block breaking check. There's no need to depend on any plugins for this. ```java public boolean canBreakBlock(Player player, Block block) { ServicesManager servicesManager = getServer().getServicesManager(); Collection<RegisteredServiceProvider<Protection>> protections = servicesManager.getRegistrations(Protection.class); for (RegisteredServiceProvider<Protection> protection : protections) { if (protection.getProvider().canBreakBlock(player, block.getState(true))) continue; return false; // if any protection plugin disallowed breaking the block, return false } // If all protection plugins allowed breaking the block, return true return true; } ``` ## For protection plugins ### Depend on YardWatch plugin You can optionally softdepend and check if YardWatch is present to add an optional integration. ```yml depend: - "YardWatch" ``` ### Implement Protection interface Implement all the methods required by the interface ```java public class YourPluginProtection implements Protection {} ``` ### Register your implementation as a service ```java @Override public void onEnable() { getServer().getServicesManager().register( Protection.class, new YourPluginProtection(), this, ServicePriority.Normal ); } ```

# YardWatch (for server owners) Implementation of (https://github.com/YouHaveTrouble/YardWatchAPI) for common protection plugins. If any of supported plugins implements the API itself, then this plugin will stop providing its implementation to allow the plugin to take over.

If you're a developer looking for information how to implement YardWatchAPI in your plugin, see (https://github.com/YouHaveTrouble/YardWatchAPI)

## Requirements - Java 17 - Minecraft 1. 16+

## Implementations for: - GriefPrevention (v16+) - WorldGuard (7. 0. 0+) - LWCX - FactionsUUID - SuperiorSkyBlock - Towny - PlotSquared (6. 0. 0+)

## Plugin you're using is not implementing YardWatchAPI? Contact the plugin developer and send them (https://github.com/YouHaveTrouble/YardWatchAPI/blob/master/readme.md)!

You can also request a temporary implementation within this plugin (https://github.com/YouHaveTrouble/YardWatch/issues/new?assignees=&labels=enhancement&projects=&template=implementation-request.yml&title=%5BNEW+IMPLEMENTATION%5D%3A+).

# YardWatchAPI (for developers)

API to unify protection plugins for minecraft bukkit servers to allow easy protection queries without having to import 10 different plugin apis with separate implementations.

Current version: [![](https://jitpack.io/v/YouHaveTrouble/YardWatchAPI.svg)](https://jitpack.io/#YouHaveTrouble/YardWatchAPI)

If you're looking for a plugin implementing YardWatchAPI for common protection plugins, see (https://github.com/YouHaveTrouble/YardWatch).

### Import the api using dependency manager

In any case of usage you will need to import the API. Replace `VERSION` with current version tag. You should also adjust your `` to `provided` if you're not implementing the api and just querying it.

#### Maven ```xml jitpack.io https://jitpack.io com.github. YouHaveTrouble YardWatchAPI VERSION compile ``` #### Gradle ```gradle dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode. FAIL_ON_PROJECT_REPOS) repositories { mavenCentral() maven { url 'https://jitpack.io' } } } dependencies { compileOnly 'com.github. YouHaveTrouble:YardWatchAPI:VERSION' } ```

## For plugins wanting to see if something is protected

### Check if player can break a block

Example handling of block breaking check. There's no need to depend on any plugins for this.

```java public boolean canBreakBlock(Player player, Block block) { ServicesManager servicesManager = getServer().getServicesManager(); Collection> protections = servicesManager.getRegistrations(Protection.class); for (RegisteredServiceProvider protection : protections) { if (protection.getProvider().canBreakBlock(player, block.getState(true))) continue; return false; // if any protection plugin disallowed breaking the block, return false } // If all protection plugins allowed breaking the block, return true return true; } ```

## For protection plugins

### Depend on YardWatch plugin

You can optionally softdepend and check if YardWatch is present to add an optional integration.

```yml depend: - "YardWatch" ```

### Implement Protection interface

Implement all the methods required by the interface

```java public class YourPluginProtection implements Protection {} ```

### Register your implementation as a service

```java @Override public void onEnable() { getServer().getServicesManager().register( Protection.class, new YourPluginProtection(), this, ServicePriority. Normal ); } ```

🤖 AI-enhanced — based on mod data

📊 Mod Details

Game
Minecraft Plugins
Author
YouHaveTrouble
Version
1.4.1
Downloads
770
Endorsements
1
Category
bukkit
Created
4/18/2024
Updated
9/27/2025
Game Versions
1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4
Tags
game-mechanics, library, utility

🔧 How to Install Minecraft Plugins Mods

Download from Modrinth. Use Prism Launcher or drop into your mods folder.

📖 Full step-by-step install guide for Minecraft Plugins →

Visit the official mod page for specific installation instructions for this mod.

🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Plugins commands, item IDs, and more.

❓ Frequently Asked Questions

Which Minecraft Plugins versions does YardWatch support?

The author lists 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5. Other versions may work but are untested by the author.

What is the latest version of YardWatch?

Version 1.4.1, published 2025-09-27 with 770 downloads recorded at the source.

Keep browsing — more Minecraft Plugins mods await

📋 All Minecraft Plugins Mods 🏆 Top 25 📂 More bukkit 👤 More by YouHaveTrouble 🔎 Similar Mods 🌐 Best bukkit (All Games) 🔀 Check Compatibility ⚖️ Compare Mods 🆕 New Mods