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:
William authored and GitHub committed 2023-08-28 16:31:48 +01:00
1 parent e2c9a52911
commit 6bfd69f232
38 files changed
+1161 -692

No files matched your search

@@ -172,6 +172,13 @@ public abstract class Database {
*/
public abstract Optional<SavedUser> getUserData(@NotNull UUID uuid);
/**
* Delete a {@link SavedUser} from the database.
*
* @param uuid The {@link UUID} of the {@link SavedUser} to delete
*/
public abstract void deleteUserData(@NotNull UUID uuid);
/**
* Get the currently active cooldown of a {@link User} for a specific {@link TransactionResolver.Action}.
*
@@ -414,6 +421,15 @@ public abstract class Database {
*/
public abstract int deleteAllHomes(@NotNull User user);
/**
* Deletes all {@link Home}s on a specific world and server (given by name) from the home table on the database.
*
* @param worldName The name of the world to delete homes from
* @param serverName The name of the server to delete homes from
* @return An integer; the number of deleted homes
*/
public abstract int deleteAllHomes(@NotNull String worldName, @NotNull String serverName);
/**
* Deletes a {@link Warp} by the given unique id from the warp table on the database.
*
@@ -428,6 +444,15 @@ public abstract class Database {
*/
public abstract int deleteAllWarps();
/**
* Deletes all {@link Warp}s on a specific world and server (given by name) from the warp table on the database.
*
* @param worldName The name of the world to delete warps from
* @param serverName The name of the server to delete warps from
* @return An integer; the number of deleted warps
*/
public abstract int deleteAllWarps(@NotNull String worldName, @NotNull String serverName);
/**
* Close any remaining connection to the database source.
*/