mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Remove SaveOnChange & fix checkstyle errors
This commit is contained in:
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);
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user