Remove SaveOnChange & fix checkstyle errors

This commit is contained in:
Draycia committed 2023-03-22 20:34:43 -07:00
1 parent 8d672c829b
commit 0251440600
16 files changed
+27 -511

No files matched your search

@@ -92,6 +92,12 @@ public interface CarbonChat {
*/
CarbonServer server();
/**
* The user manager.
*
* @return the user manager
* @since 2.1.0
*/
UserManager<?> userManager();
/**
@@ -53,9 +53,9 @@ public interface CarbonServer extends Audience {
/**
* Manager used to load/obtain and save {@link CarbonPlayer CarbonPlayers}.
*
* @deprecated Use {@link CarbonChat#userManager} (internal code: inject the UserManager)
* @return the user manager
* @since 2.1.0
* @deprecated Use {@link CarbonChat#userManager} (internal code: inject the UserManager)
*/
@Deprecated(forRemoval = true)
UserManager<? extends CarbonPlayer> userManager();
@@ -48,6 +48,13 @@ public interface UserManager<C extends CarbonPlayer> {
.exceptionally(thr -> new ComponentPlayerResult<>(null, ComponentMessageThrowable.getOrConvertMessage(thr)));
}
/**
* Loads and returns the CarbonPlayer with the corresponding uuid.
*
* @param uuid the player's id
* @return the player
* @since 2.1.0
*/
CompletableFuture<C> user(final UUID uuid);
}