001package co.aikar.commands; 002 003import java.util.List; 004import java.util.Map; 005 006import com.velocitypowered.api.command.CommandSource; 007import com.velocitypowered.api.proxy.Player; 008 009public class VelocityCommandExecutionContext extends CommandExecutionContext<VelocityCommandExecutionContext, VelocityCommandIssuer> { 010 011 VelocityCommandExecutionContext(RegisteredCommand cmd, CommandParameter param, VelocityCommandIssuer sender, List<String> args, int index, Map<String, Object> passedArgs) { 012 super(cmd, param, sender, args, index, passedArgs); 013 } 014 015 public CommandSource getSender() { 016 return this.issuer.getIssuer(); 017 } 018 019 public Player getPlayer() { 020 return this.issuer.getPlayer(); 021 } 022}