mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Adjust UserManager creation and access
This commit is contained in:
37 files changed
+252
-109
No files matched your search
@@ -23,6 +23,7 @@ import java.nio.file.Path;
|
||||
import java.util.UUID;
|
||||
import net.draycia.carbon.api.channels.ChannelRegistry;
|
||||
import net.draycia.carbon.api.events.CarbonEventHandler;
|
||||
import net.draycia.carbon.api.users.UserManager;
|
||||
import net.kyori.adventure.audience.Audience;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import net.kyori.moonshine.message.IMessageRenderer;
|
||||
@@ -91,6 +92,8 @@ public interface CarbonChat {
|
||||
*/
|
||||
CarbonServer server();
|
||||
|
||||
UserManager<?> userManager();
|
||||
|
||||
/**
|
||||
* The registry that channels are registered to.
|
||||
*
|
||||
|
||||
@@ -55,7 +55,9 @@ public interface CarbonServer extends Audience {
|
||||
*
|
||||
* @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();
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user