Use internal yaml resource for unsafe blocks by key, remove caching, fixes

This commit is contained in:
William committed 2022-11-23 21:51:23 +00:00
1 parent c4b16db9a9
commit a3ea62a85c
11 files changed
+215 -269

No files matched your search

@@ -358,7 +358,15 @@ public interface HuskHomes {
*
* @return a {@link CompletableFuture} that will be completed when the plugin reload is complete and if it was successful
*/
CompletableFuture<Boolean> reload();
boolean reload();
/**
* Returns if the block, by provided identifier, is unsafe
*
* @param blockId The block identifier (e.g. {@code minecraft:stone})
* @return {@code true} if the block is on the unsafe blocks list, {@code false} otherwise
*/
boolean isBlockUnsafe(@NotNull String blockId);
/**
* Registers the plugin with bStats metrics