mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 14:38:51 +00:00
Allow console to use chat with 'console_sender' channel format
This commit is contained in:
1 parent
19d17ce004
commit
2d89dc68c4
7 files changed
+290
-11
No files matched your search
@@ -27,6 +27,7 @@ import java.lang.reflect.Type;
|
||||
import java.util.Map;
|
||||
import net.draycia.carbon.api.util.SourcedAudience;
|
||||
import net.draycia.carbon.common.config.ConfigFactory;
|
||||
import net.draycia.carbon.common.users.ConsoleCarbonPlayer;
|
||||
import net.draycia.carbon.velocity.users.CarbonPlayerVelocity;
|
||||
import net.kyori.adventure.audience.Audience;
|
||||
import net.kyori.adventure.text.Component;
|
||||
@@ -74,6 +75,9 @@ public class VelocityMessageRenderer<T extends Audience> implements IMessageRend
|
||||
if (sourced.recipient() instanceof CarbonPlayerVelocity recipient) {
|
||||
tagResolver.resolver(MiniPlaceholders.getRelationalGlobalPlaceholders(sender, recipient));
|
||||
}
|
||||
} else if (sourced.sender() instanceof ConsoleCarbonPlayer console) {
|
||||
// I don't know if this will ever actually resolve anything, or if anything supports console audience
|
||||
tagResolver.resolver(MiniPlaceholders.getAudiencePlaceholders(console));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user