Commit Graph

29 Commits

Author SHA1 Message Date
YouHaveTrouble fec112511c Merge remote-tracking branch 'origin/master' 2024-06-05 20:19:39 +02:00
YouHaveTrouble c65e68dcfc bump version 2024-06-05 20:12:47 +02:00
YouHaveTrouble b7587970c0 command to display which plugins have hooks registered 2024-06-05 20:12:24 +02:00
YouHaveTrouble 48f5c337d7 no need for remapping :) 2024-06-05 20:11:02 +02:00
YouHaveTrouble 6017feccec Update readme.md 2024-04-18 10:28:29 +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
YouHaveTrouble bea339f701 bump version 1.1.0 2024-04-16 19:58:16 +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 74346c1afc Create LICENSE 1.0.0 2024-04-16 09:07:31 +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 35e17834e2 Update readme.md with plugin implementation request links
Details were added in the readme.md file to guide users to contact plugin developers for YardWatchAPI implementation. Links were also provided for users to request a temporary implementation within the YardWatch plugin.
2024-03-22 14:09:28 +01:00
YouHaveTrouble e6c43e1c67 add bug report issue template 2024-03-22 14:08:21 +01:00
YouHaveTrouble 571340361e Rename implementation request file extension and remove field description
This commit renames the issue template file from .yaml to .yml, to ensure consistency with existing files. It also removes the empty 'description' field from the 'plugin_api_url' entry, thereby simplifying the template configuration.
2024-03-22 13:06:38 +01:00
YouHaveTrouble 13a664741e Enable the configuration for blank issues in GitHub
This commit adds a new configuration in GitHub to disable creation of blank issues. This change ensures that all issues have a predefined structure, which could potentially increase the quality and applicability of the responses.
2024-03-22 12:57:16 +01:00
YouHaveTrouble 0b1305dd1e Add a new implementation request issue template in GitHub
This commit introduces a new issue template file for submitting implementation requests on GitHub. The template adopts a structure asking for the plugin name, plugin's developer API, and a checkbox to confirm the developer's knowledge about the possibility to implement YardWatchAPI directly in their plugin.
2024-03-22 12:53:35 +01:00
YouHaveTrouble 7753aec903 Added list of implementations 2024-03-22 12:21:10 +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 103f36f9a1 Update readme.md with requirements section
Added a new section, "Requirements", to the readme.md file of the YardWatch project, outlining the technical specifications necessary for the source code to work properly. These requirements include Java 17 and a version of Minecraft 1.16 or higher.
2024-03-22 10:53:11 +01:00
YouHaveTrouble d1fe8126be Add readme.md for YardWatch project 2024-03-22 00:40:19 +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