mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
delhome/delwarp all rewrite; add events for bulk-deletes, close #265
This commit is contained in:
1 parent
2402f12536
commit
834fdbfc0e
17 files changed
+379
-51
No files matched your search
@@ -2,6 +2,7 @@ package net.william278.huskhomes.hook;
|
||||
|
||||
import net.william278.huskhomes.HuskHomes;
|
||||
import net.william278.huskhomes.HuskHomesException;
|
||||
import net.william278.huskhomes.player.User;
|
||||
import net.william278.huskhomes.position.Home;
|
||||
import net.william278.huskhomes.position.SavedPosition;
|
||||
import net.william278.huskhomes.position.Warp;
|
||||
@@ -60,6 +61,14 @@ public abstract class MapHook extends PluginHook {
|
||||
*/
|
||||
public abstract CompletableFuture<Void> removeHome(@NotNull Home home);
|
||||
|
||||
/**
|
||||
* Clears homes owned by a player from the map
|
||||
*
|
||||
* @param user the player whose homes to clear
|
||||
* @return a {@link CompletableFuture} that completes when the homes have been cleared
|
||||
*/
|
||||
public abstract CompletableFuture<Void> clearHomes(@NotNull User user);
|
||||
|
||||
/**
|
||||
* Update a warp, adding it to the map if it exists, or updating it on the map if it doesn't
|
||||
*
|
||||
@@ -75,6 +84,13 @@ public abstract class MapHook extends PluginHook {
|
||||
*/
|
||||
public abstract CompletableFuture<Void> removeWarp(@NotNull Warp warp);
|
||||
|
||||
/**
|
||||
* Clears all warps from the map
|
||||
*
|
||||
* @return a {@link CompletableFuture} that completes when the warps have been cleared
|
||||
*/
|
||||
public abstract CompletableFuture<Void> clearWarps();
|
||||
|
||||
/**
|
||||
* Returns if the position is valid to be set on this server
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user