mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 14:38:53 +00:00
v4.5: Bulk delete, regex customization, QoL & API work (#486)
* Improve validator error specificity, fix #481 * Add more sanity-checking to cluster IDs, close #482 * Add bulk/player-delete command, close #484, close #257 * Fix checkstyle formatting in tests * Add missing strings to other locale files * Use morepaperlib for runtime command registration on spigot * api: make creation methods return a future, close #473 * Add name/description restriction regex customization * docs: Update config file with new regex options * bump version number to 4.5 * fix typo, correct command confirmation logic * Make confirmation locales more clear * Fix confirmation checking logic
This commit is contained in:
1 parent
e2c9a52911
commit
6bfd69f232
38 files changed
+1161
-692
No files matched your search
@@ -321,10 +321,11 @@ public abstract class BaseHuskHomesAPI {
|
||||
* @param owner The {@link User} to create the home for
|
||||
* @param name The name of the home
|
||||
* @param position The {@link Position} of the home
|
||||
* @since 4.0
|
||||
* @return a {@link CompletableFuture} that will complete with the created {@link Home}
|
||||
* @since 4.5
|
||||
*/
|
||||
public void createHome(@NotNull User owner, @NotNull String name, @NotNull Position position) {
|
||||
plugin.runAsync(() -> plugin.getManager().homes().createHome(owner, name, position, false, false));
|
||||
public CompletableFuture<Home> createHome(@NotNull User owner, @NotNull String name, @NotNull Position position) {
|
||||
return plugin.supplyAsync(() -> plugin.getManager().homes().createHome(owner, name, position, false, false));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -527,10 +528,11 @@ public abstract class BaseHuskHomesAPI {
|
||||
*
|
||||
* @param name The name of the warp
|
||||
* @param position The {@link Position} of the warp
|
||||
* @since 4.0
|
||||
* @return A {@link CompletableFuture} that will complete with the created {@link Warp}
|
||||
* @since 4.5
|
||||
*/
|
||||
public final void createWarp(@NotNull String name, @NotNull Position position) {
|
||||
plugin.runAsync(() -> plugin.getManager().warps().createWarp(name, position));
|
||||
public final CompletableFuture<Warp> createWarp(@NotNull String name, @NotNull Position position) {
|
||||
return plugin.supplyAsync(() -> plugin.getManager().warps().createWarp(name, position));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user