1.15.2 entity moving wasd

Discussion in 'Spigot Plugin Development' started by songsehen, Feb 22, 2020.

  1. @SuppressWarnings("deprecation")
    public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
    if(cmd.getName().equalsIgnoreCase("test")) {
    if(sender instanceof Player) {
    Player player = ((Player) sender).getPlayer();
    Entity armor = (Entity) player.getWorld().spawnEntity(player.getLocation(), EntityType.ARMOR_STAND);
    armor.setPassenger(player);


    }
    return false;
    }
    return true;
    }





    Is currently my code
    Is there a way to move using wasd?