Commit Graph

22 Commits

Author SHA1 Message Date
Matt Baxter c30c3ee7c9 Improve FUUID support: (#7)
Don't waste time if not in an enabled world.
Fixes test for protection that would always return true.
Fixes block use test to use more proper method.
2025-09-27 23:12:52 +02:00
Ryder Belserion 6ba3acf5f6 Add plotsquared protection (#6)
* getState() is already true

* add plotsquared protection

* check if isProtected first

* check if owned plot is not null

* move isProtected up one

* remove comments
2024-08-14 20:36:37 +02:00
Ryder Belserion d9ea1265bf Resource apiversion.txt not found on startup (#5)
* fix resource apiversion.txt not found

* add whitespace back
2024-08-05 08:41:57 +02:00
YouHaveTrouble 27bb0e49e7 display api version in /yw command feedback 2024-07-19 18:55:24 +02:00
YouHaveTrouble 8aba8ea79d update wg depend and dump YardWatch API version into a resource file 2024-07-19 18:55:06 +02:00
Hüseyin Serhat Han afdb3a0e3e Query command & Worldguard null parameter exception fix (#4)
* query command + fix wg exception

* remove empty statement and unused imports

* added feedback for case when there are no protections in queried location

---------

Co-authored-by: YouHaveTrouble <youhavetrouble@youhavetrouble.me>
2024-07-19 17:49:25 +02:00
YouHaveTrouble fec112511c Merge remote-tracking branch 'origin/master' 2024-06-05 20:19:39 +02:00
YouHaveTrouble b7587970c0 command to display which plugins have hooks registered 2024-06-05 20:12:24 +02:00
granny 31fa7b02b9 add logs when registering services (#2)
* add logs when registering services

* Update YardWatch.java
2024-04-18 10:27:34 +02:00
YouHaveTrouble eb9ebb1fb3 add LWC to softdepends 2024-04-16 21:59:40 +02:00
Ryder Belserion 34964d30cd Adds towny and superiorskyblock support (#1)
* Stash changes

* Add superiorskyblock2 support

* Add as a soft depend

* Fix skyblock support

* Add palmers towny support

* Turned off wildcard imports

* Update readme

* Update .gitignore

* Add new line

* Add new line
2024-04-16 19:57:08 +02:00
YouHaveTrouble 7f9d40aafe Add FactionsUUID support to YardWatch Plugin
The YardWatch Plugin now supports FactionsUUID. The plugin's functionality has been implemented and added to the list of dependencies in the pom.xml file. Also, FactionsUUID has been included in the soft dependencies category in the plugin.yml file and in the options for bug reports.
2024-03-22 15:05:28 +01:00
YouHaveTrouble 648d628825 Integrate LWCXProtection in YardWatch
A new protection hook, LWCXProtection, has been introduced to the YardWatch system, and the respective hook has been registered. Changes have been made to the service manager to facilitate this. Additionally, a relevant repository and corresponding dependency have been added to the pom.xml file for this purpose.
2024-03-22 12:20:41 +01:00
YouHaveTrouble 219a0da639 Add 'folia-supported' flag to plugin.yml
A 'folia-supported' flag is added to the plugin.yml file of the YardWatch project. This flag will provide compatibility with any Folia-powered systems, improving the plugin's functionality and coverage.
2024-03-22 11:17:59 +01:00
YouHaveTrouble a2d5699771 Improve plugin registration logic in YardWatch
Refactored the plugin enablement checks in `YardWatch.java` to use a new method `shouldRegisterService`. This method determines if a plugin is enabled and if it provides an implementation for the Protection service, therefore enhancing plugin setup accuracy.
2024-03-21 23:56:27 +01:00
YouHaveTrouble 00a81efef8 Replace hardcoded UUID in GriefPreventionProtection
Introduced a class variable `dummyId` to replace the previously hardcoded UUID in the `isProtected` method of the GriefPreventionProtection class. This change improves code maintainability and readability.
2024-03-21 23:33:19 +01:00
YouHaveTrouble 4cee3b35b3 Modify permission check in GriefPreventionProtection
Refactored the permission checks in GriefPreventionProtection.java to use the Inventory permission rather than the Access permission. This change is in the methods canInteract and canDamage, and as a result enhances their functionalities under GriefPrevention's claim-based protection system.
2024-03-21 23:32:13 +01:00
YouHaveTrouble 7405f15510 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.
2024-03-21 23:25:48 +01:00
YouHaveTrouble 137ef21410 Update plugin and dependencies versions
Updated the api-version in plugin.yml from '1.13' to '1.16', and the paper-api version in pom.xml from '1.13-R0.1-SNAPSHOT' to '1.16.5-R0.1-SNAPSHOT'.
2024-03-21 23:25:28 +01:00
YouHaveTrouble ad820a1ab9 Refactor plugin.yml and pom.xml to use Maven variables
The plugin.yml and pom.xml files were refactored to utilize Maven variables for elements including project name, version, description, and URL. This simplifies the process of updating these values, as they now only need to be modified in one location. This change enhances maintainability and code readability.
2024-03-21 22:19:09 +01:00
YouHaveTrouble 9418025b81 Upgrade Java version and refactor WorldGuardProtection class
The Java version in pom.xml has been updated from 1.8 to 17. Also, the WorldGuardProtection.java class has been refactored for cleaner code. Specifically, a condition check and player definition are now combined into a single line to improve readability and efficiency.
2024-03-21 22:06:51 +01:00
YouHaveTrouble e516cf2ec6 Add YardWatch plugin with WorldGuard integration
Introduced a new plugin, YardWatch, implemented with WorldGuard for protection. The plugin checks if WorldGuard is enabled and regulates breaking blocks, placing blocks, and interactions based on WorldGuard's build and interact flags. Also included are updated .gitignore and pom.xml files to manage the project setup.
2024-03-21 21:52:44 +01:00