geforkt von Mirrors/Velocity
Override correct sendMessage method (#698)
Dieser Commit ist enthalten in:
Ursprung
acc407a6d5
Commit
5ee96606f6
@ -27,6 +27,8 @@ import com.velocitypowered.proxy.VelocityServer;
|
||||
import com.velocitypowered.proxy.util.ClosestLocaleMatcher;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
|
||||
import net.kyori.adventure.audience.MessageType;
|
||||
import net.kyori.adventure.identity.Identity;
|
||||
import net.kyori.adventure.permission.PermissionChecker;
|
||||
import net.kyori.adventure.platform.facet.FacetPointers;
|
||||
@ -65,7 +67,7 @@ public final class VelocityConsole extends SimpleTerminalConsole implements Cons
|
||||
}
|
||||
|
||||
@Override
|
||||
public void sendMessage(@NonNull Identity identity, @NonNull Component message) {
|
||||
public void sendMessage(@NonNull Identity identity, @NonNull Component message, @NonNull MessageType messageType) {
|
||||
Component translated = GlobalTranslator.render(message, ClosestLocaleMatcher.INSTANCE
|
||||
.lookupClosest(Locale.getDefault()));
|
||||
logger.info(LegacyComponentSerializer.legacySection().serialize(translated));
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren