mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 22:17:17 +00:00
Use internal yaml resource for unsafe blocks by key, remove caching, fixes
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user