mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 14:38:49 +00:00
Prefer fetching online players over offline players
This commit is contained in:
1 parent
fb26cc5627
commit
c097d4744a
5 files changed
+27
-2
No files matched your search
@@ -57,7 +57,7 @@ public class CommandManager {
|
||||
});
|
||||
|
||||
commandManager.getCommandContexts().registerContext(ChatUser.class, (context) -> {
|
||||
return carbonChat.getUserService().wrap(Bukkit.getOfflinePlayer(context.popFirstArg()));
|
||||
return carbonChat.getUserService().wrap(context.popFirstArg());
|
||||
});
|
||||
|
||||
commandManager.getCommandConditions().addCondition(ChatChannel.class,"canuse", (context, execution, value) -> {
|
||||
|
||||
Reference in new issue
Block a user