API: change player class to Connection

This commit is contained in:
Camotoy 2021-11-22 14:52:26 -05:00
parent 5b415cea68
commit 966c2155ad
No known key found for this signature in database
GPG key ID: 7EEFB66FE798081F
394 changed files with 1103 additions and 1114 deletions

View file

@ -31,7 +31,7 @@ import org.geysermc.geyser.command.CommandExecutor;
import org.geysermc.geyser.command.CommandSender;
import org.geysermc.geyser.command.GeyserCommand;
import org.geysermc.geyser.text.ChatColor;
import org.geysermc.geyser.session.GeyserSessionImpl;
import org.geysermc.geyser.session.GeyserSession;
import org.geysermc.geyser.text.GeyserLocale;
import java.util.Arrays;
@ -47,7 +47,7 @@ public class GeyserVelocityCommandExecutor extends CommandExecutor implements Si
@Override
public void execute(Invocation invocation) {
CommandSender sender = new VelocityCommandSender(invocation.source());
GeyserSessionImpl session = getGeyserSession(sender);
GeyserSession session = getGeyserSession(sender);
if (invocation.arguments().length > 0) {
GeyserCommand command = getCommand(invocation.arguments()[0]);