Support Velocity 3.0.0 by default

This commit is contained in:
Camotoy 2021-07-05 21:07:13 -04:00
parent 605f56b895
commit fe1ba5ba5c
No known key found for this signature in database
GPG key ID: 7EEFB66FE798081F
2 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@
<dependency>
<groupId>com.velocitypowered</groupId>
<artifactId>velocity-api</artifactId>
<version>1.1.0</version>
<version>3.0.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>

View file

@ -28,7 +28,7 @@ package org.geysermc.platform.velocity.command;
import com.velocitypowered.api.command.CommandSource;
import com.velocitypowered.api.proxy.ConsoleCommandSource;
import com.velocitypowered.api.proxy.Player;
import net.kyori.text.TextComponent;
import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer;
import org.geysermc.connector.command.CommandSender;
import org.geysermc.connector.utils.LanguageUtils;
@ -56,7 +56,7 @@ public class VelocityCommandSender implements CommandSender {
@Override
public void sendMessage(String message) {
handle.sendMessage(TextComponent.of(message));
handle.sendMessage(LegacyComponentSerializer.legacy('§').deserialize(message));
}
@Override